scapy.contrib.automotive.xcp.utils module

class scapy.contrib.automotive.xcp.utils.StrVarLenField(name: str, default: bytes, length_from: Callable[[Packet], int] | None = None, max_length: Any | None = None)[source]

Bases: StrLenField

randval()[source]
class scapy.contrib.automotive.xcp.utils.XCPEndiannessField(fld)[source]

Bases: object

Field which changes the endianness of a sub-field

addfield(pkt, s, val)[source]
fld
getfield(pkt, s)[source]
set_endianness()[source]

Add the endianness to the format

scapy.contrib.automotive.xcp.utils.get_ag()[source]
scapy.contrib.automotive.xcp.utils.get_daq_data_field_length()[source]
scapy.contrib.automotive.xcp.utils.get_daq_length()[source]
scapy.contrib.automotive.xcp.utils.get_max_cto()[source]
scapy.contrib.automotive.xcp.utils.get_max_dto()[source]
scapy.contrib.automotive.xcp.utils.get_timestamp_length()[source]
scapy.contrib.automotive.xcp.utils.identification_field_needs_alignment()[source]