scapy.contrib.automotive.autosar.secoc_canfd
SecOC PDU
- class scapy.contrib.automotive.autosar.secoc_canfd.SecOC_CANFD(_pkt, /, *, flags=<Flag 0 ()>, identifier=0, length=None, fd_flags=<Flag 4 (fd_frame)>, reserved=0, pdu_payload=<Raw |>, tfv=0, tmac=None)[source]
Bases:
CANFD,SecOCMixin- aliastypes
- classmethod dispatch_hook(s: bytes | None = None, *_args: Any, **_kwds: Any) Packet_metaclass[source]
dispatch_hook determines if PDU is protected by SecOC. If PDU is protected, SecOC_PDU will be returned, otherwise AutoSAR PDU will be returned.
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |FLAGS| IDENTIFIER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | LENGTH | FD FLAGS | RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PDU PAYLOAD | TFV | TMAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SecOC_CANFDSecOC_CANFD fields flags
<Flag 0 ()>identifier
XBitField(29 bits)0length
Nonefd_flags
<Flag 4 (fd_frame)>reserved
0pdu_payload
<Raw |>tfv
0tmac
None