scapy.contrib.automotive.someip_sd

class scapy.contrib.automotive.someip_sd.SD

Bases: scapy.contrib.automotive.someip_sd._SDPacketBase

SD Packet

NOTEwhen adding ‘entries’ or ‘options’, do not use list.append()

method but create a new list

e.g.p = SD()

p.option_array = [SDOption_Config(),SDOption_IP6_EndPoint()]

FLAGSDEF = {'REBOOT': Flag(mask=128, offset=7), 'UNICAST': Flag(mask=64, offset=6)}
SOMEIP_IFACE_VER = 1
SOMEIP_MSGID_EVENTID = 256
SOMEIP_MSGID_SRVID = 65535
SOMEIP_MSGID_SUBID = 1
SOMEIP_MSG_TYPE = 2
SOMEIP_PROTO_VER = 1
aliastypes
fields_desc
SD fields

flags

ByteField

0

res

X3BytesField

0

len_entry_array

FieldLenField

None

entry_array

PacketListField

[]

len_option_array

FieldLenField

None

option_array

PacketListField

[]

get_flag(name)
get_someip(stacked=False)
set_entryArray(entry_list)
set_flag(name, value)
set_optionArray(option_list)
class scapy.contrib.automotive.someip_sd.SDEntry_EventGroup

Bases: scapy.contrib.automotive.someip_sd._SDEntry

aliastypes
fields_desc
SDEntry_EventGroup fields

type

ByteField

0

index_1

ByteField

0

index_2

ByteField

0

n_opt_1

BitField (4 bits)

0

n_opt_2

BitField (4 bits)

0

srv_id

ShortField

0

inst_id

ShortField

0

major_ver

ByteField

0

ttl

X3BytesField

0

res

BitField (12 bits)

0

cnt

BitField (4 bits)

0

eventgroup_id

ShortField

0

class scapy.contrib.automotive.someip_sd.SDEntry_Service

Bases: scapy.contrib.automotive.someip_sd._SDEntry

aliastypes
fields_desc
SDEntry_Service fields

type

ByteField

0

index_1

ByteField

0

index_2

ByteField

0

n_opt_1

BitField (4 bits)

0

n_opt_2

BitField (4 bits)

0

srv_id

ShortField

0

inst_id

ShortField

0

major_ver

ByteField

0

ttl

X3BytesField

0

minor_ver

IntField

0

class scapy.contrib.automotive.someip_sd.SDOption_Config

Bases: scapy.contrib.automotive.someip_sd._SDOption

LEN_OFFSET = 1
aliastypes
fields_desc
SDOption_Config fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

cfg_str

StrField

b''

post_build(pkt, pay)
class scapy.contrib.automotive.someip_sd.SDOption_IP4_EndPoint

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP4

aliastypes
fields_desc
SDOption_IP4_EndPoint fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IPField

'0.0.0.0'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_IP4_Multicast

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP4

aliastypes
fields_desc
SDOption_IP4_Multicast fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IPField

'0.0.0.0'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_IP4_SD_EndPoint

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP4

aliastypes
fields_desc
SDOption_IP4_SD_EndPoint fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IPField

'0.0.0.0'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_IP6_EndPoint

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP6

aliastypes
fields_desc
SDOption_IP6_EndPoint fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IP6Field

'2001:cdba::3257:9652'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_IP6_Multicast

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP6

aliastypes
fields_desc
SDOption_IP6_Multicast fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IP6Field

'2001:cdba::3257:9652'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_IP6_SD_EndPoint

Bases: scapy.contrib.automotive.someip_sd._SDOption_IP6

aliastypes
fields_desc
SDOption_IP6_SD_EndPoint fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

addr

IP6Field

'2001:cdba::3257:9652'

res_tail

ByteField

0

l4_proto

ByteEnumField

6

port

ShortField

0

class scapy.contrib.automotive.someip_sd.SDOption_LoadBalance

Bases: scapy.contrib.automotive.someip_sd._SDOption

aliastypes
fields_desc
SDOption_LoadBalance fields

len

ShortField

None

type

ByteField

0

res_hdr

ByteField

0

priority

ShortField

0

weight

ShortField

0