scapy.contrib.automotive.someip

class scapy.contrib.automotive.someip.SOMEIP

Bases: scapy.packet.Packet

SOME/IP Packet.

INTERFACE_VERSION = 1
LEN_OFFSET = 8
LEN_OFFSET_TP = 12
PROTOCOL_VERSION = 1
RET_E_MALFORMED_MSG = 9
RET_E_NOT_OK = 1
RET_E_NOT_REACHABLE = 5
RET_E_NOT_READY = 4
RET_E_OK = 0
RET_E_TIMEOUT = 6
RET_E_UNKNOWN_METHOD = 3
RET_E_UNKNOWN_SERVICE = 2
RET_E_WRONG_INTERFACE_V = 8
RET_E_WRONG_MESSAGE_TYPE = 10
RET_E_WRONG_PROTOCOL_V = 7
TYPE_ERROR = 129
TYPE_ERROR_ACK = 193
TYPE_NOTIFICATION = 2
TYPE_NOTIFICATION_ACK = 66
TYPE_REQUEST = 0
TYPE_REQUEST_ACK = 64
TYPE_REQUEST_NORET_ACK = 65
TYPE_REQUEST_NO_RET = 1
TYPE_RESPONSE = 128
TYPE_RESPONSE_ACK = 192
TYPE_TP_ERROR = 36
TYPE_TP_NOTIFICATION = 34
TYPE_TP_REQUEST = 32
TYPE_TP_REQUEST_NO_RET = 33
TYPE_TP_RESPONSE = 35
aliastypes
answers(other)
fields_desc
SOMEIP fields

msg_id

PacketField

<_SOMEIP_MessageId  |>

len

IntField

None

req_id

PacketField

<_SOMEIP_RequestId  |>

proto_ver

ByteField

1

iface_ver

ByteField

1

msg_type

ByteEnumField

0

retcode

ByteEnumField

0

offset

BitField (Cond) (28 bits)

0

res

BitField (Cond) (3 bits)

0

more_seg

BitField (Cond) (1 bit)

0

fragment(fragsize=1392)

Fragment SOME/IP-TP

post_build(pkt, pay)