scapy.layers.sctp¶
SCTP (Stream Control Transmission Protocol).
- class scapy.layers.sctp.ChunkParamField(name, default, count_from=None, length_from=None)[source]¶
Bases:
PacketListField
- class scapy.layers.sctp.SCTP(_pkt, /, *, sport=0, dport=0, tag=0, chksum=None)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPORT | DPORT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTP
SCTP fields¶ sport
0
dport
0
tag
0
chksum
None
- class scapy.layers.sctp.SCTPChunkAbort(_pkt, /, *, type=6, reserved=None, TCB=0, len=None, error_causes=b'')[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | RESERVED |T| LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ERROR CAUSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkAbort
SCTPChunkAbort fields¶ type
6
reserved
BitField
(7 bits)None
TCB
BitField
(1 bit)0
len
None
error_causes
b''
- class scapy.layers.sctp.SCTPChunkAddressConf(_pkt, /, *, type=193, flags=None, len=None, seq=0, params=[])[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkAddressConf
SCTPChunkAddressConf fields¶ type
193
flags
None
len
None
seq
0
params
[]
- class scapy.layers.sctp.SCTPChunkAddressConfAck(_pkt, /, *, type=128, flags=None, len=None, seq=0, params=[])[source]¶
Bases:
SCTPChunkAddressConf
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkAddressConfAck
SCTPChunkAddressConfAck fields¶ type
128
flags
None
len
None
seq
0
params
[]
- class scapy.layers.sctp.SCTPChunkAuthentication(_pkt, /, *, type=15, flags=None, len=None, shared_key_id=None, HMAC_function=None, HMAC=b'')[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SHARED KEY ID | HMAC FUNCTION | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HMAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkAuthentication
SCTPChunkAuthentication fields¶ type
15
flags
None
len
None
shared_key_id
None
HMAC_function
None
HMAC
b''
- class scapy.layers.sctp.SCTPChunkCookieAck(_pkt, /, *, type=11, flags=None, len=4)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkCookieAck
SCTPChunkCookieAck fields¶ type
11
flags
None
len
4
- class scapy.layers.sctp.SCTPChunkCookieEcho(_pkt, /, *, type=10, flags=None, len=None, cookie=b'')[source]¶
Bases:
SCTPChunkError
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkCookieEcho
SCTPChunkCookieEcho fields¶ type
10
flags
None
len
None
cookie
b''
- class scapy.layers.sctp.SCTPChunkData(_pkt, /, *, type=0, reserved=None, delay_sack=0, unordered=0, beginning=0, ending=0, len=None, tsn=None, stream_id=None, stream_seq=None, proto_id=None, data=None)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE |RESERVE|D|U|B|E| LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TSN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STREAM ID | STREAM SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PROTO ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkData
SCTPChunkData fields¶ type
0
reserved
BitField
(4 bits)None
delay_sack
BitField
(1 bit)0
unordered
BitField
(1 bit)0
beginning
BitField
(1 bit)0
ending
BitField
(1 bit)0
len
None
tsn
None
stream_id
None
stream_seq
None
proto_id
None
data
None
- class scapy.layers.sctp.SCTPChunkError(_pkt, /, *, type=9, flags=None, len=None, error_causes=b'')[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ERROR CAUSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkError
SCTPChunkError fields¶ type
9
flags
None
len
None
error_causes
b''
- class scapy.layers.sctp.SCTPChunkHeartbeatAck(_pkt, /, *, type=5, flags=None, len=None, params=[])[source]¶
Bases:
SCTPChunkHeartbeatReq
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkHeartbeatAck
SCTPChunkHeartbeatAck fields¶ type
5
flags
None
len
None
params
[]
- class scapy.layers.sctp.SCTPChunkHeartbeatReq(_pkt, /, *, type=4, flags=None, len=None, params=[])[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkHeartbeatReq
SCTPChunkHeartbeatReq fields¶ type
4
flags
None
len
None
params
[]
- class scapy.layers.sctp.SCTPChunkInit(_pkt, /, *, type=1, flags=None, len=None, init_tag=None, a_rwnd=None, n_out_streams=None, n_in_streams=None, init_tsn=None, params=[])[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INIT TAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | A RWND | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | N OUT STREAMS | N IN STREAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INIT TSN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkInit
SCTPChunkInit fields¶ type
1
flags
None
len
None
init_tag
None
a_rwnd
None
n_out_streams
None
n_in_streams
None
init_tsn
None
params
[]
- class scapy.layers.sctp.SCTPChunkInitAck(_pkt, /, *, type=2, flags=None, len=None, init_tag=None, a_rwnd=None, n_out_streams=None, n_in_streams=None, init_tsn=None, params=[])[source]¶
Bases:
SCTPChunkInit
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INIT TAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | A RWND | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | N OUT STREAMS | N IN STREAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INIT TSN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAMS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkInitAck
SCTPChunkInitAck fields¶ type
2
flags
None
len
None
init_tag
None
a_rwnd
None
n_out_streams
None
n_in_streams
None
init_tsn
None
params
[]
- class scapy.layers.sctp.SCTPChunkParamAdaptationLayer(_pkt, /, *, type=49158, len=8, indication=None)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | INDICATION | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamAdaptationLayer
SCTPChunkParamAdaptationLayer fields¶ type
49158
len
8
indication
None
- class scapy.layers.sctp.SCTPChunkParamAddIPAddr(_pkt, /, *, type=49153, len=None, correlation_id=None, addr_type=5, addr_len=None, addr=None)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CORRELATION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR TYPE | ADDR LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamAddIPAddr
SCTPChunkParamAddIPAddr fields¶ type
49153
len
None
correlation_id
None
addr_type
5
addr_len
None
addr
MultipleTypeField
(IPField, IP6Field, StrFixedLenField)b''
- class scapy.layers.sctp.SCTPChunkParamChunkList(_pkt, /, *, type=32771, len=None, chunk_list=[])[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHUNK LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamChunkList
SCTPChunkParamChunkList fields¶ type
32771
len
None
chunk_list
[]
- class scapy.layers.sctp.SCTPChunkParamCookiePreservative(_pkt, /, *, type=9, len=8, sug_cookie_inc=None)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SUG COOKIE INC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamCookiePreservative
SCTPChunkParamCookiePreservative fields¶ type
9
len
8
sug_cookie_inc
None
- class scapy.layers.sctp.SCTPChunkParamDelIPAddr(_pkt, /, *, type=49154, len=None, correlation_id=None, addr_type=5, addr_len=None, addr=None)[source]¶
Bases:
SCTPChunkParamAddIPAddr
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CORRELATION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR TYPE | ADDR LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamDelIPAddr
SCTPChunkParamDelIPAddr fields¶ type
49154
len
None
correlation_id
None
addr_type
5
addr_len
None
addr
MultipleTypeField
(IPField, IP6Field, StrFixedLenField)b''
- class scapy.layers.sctp.SCTPChunkParamECNCapable(_pkt, /, *, type=32768, len=4)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamECNCapable
SCTPChunkParamECNCapable fields¶ type
32768
len
4
- class scapy.layers.sctp.SCTPChunkParamErrorIndication(_pkt, /, *, type=49155, len=None, correlation_id=None, error_causes=b'')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CORRELATION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ERROR CAUSES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamErrorIndication
SCTPChunkParamErrorIndication fields¶ type
49155
len
None
correlation_id
None
error_causes
b''
- class scapy.layers.sctp.SCTPChunkParamFwdTSN(_pkt, /, *, type=49152, len=4)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamFwdTSN
SCTPChunkParamFwdTSN fields¶ type
49152
len
4
- class scapy.layers.sctp.SCTPChunkParamHeartbeatInfo(_pkt, /, *, type=1, len=None, data=b'')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DATA | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamHeartbeatInfo
SCTPChunkParamHeartbeatInfo fields¶ type
1
len
None
data
b''
- class scapy.layers.sctp.SCTPChunkParamHostname(_pkt, /, *, type=11, len=None, hostname=b'')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HOSTNAME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamHostname
SCTPChunkParamHostname fields¶ type
11
len
None
hostname
b''
- class scapy.layers.sctp.SCTPChunkParamIPv4Addr(_pkt, /, *, type=5, len=8, addr='127.0.0.1')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamIPv4Addr
SCTPChunkParamIPv4Addr fields¶ type
5
len
8
addr
'127.0.0.1'
- class scapy.layers.sctp.SCTPChunkParamIPv6Addr(_pkt, /, *, type=6, len=20, addr='::1')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | + + | | + + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamIPv6Addr
SCTPChunkParamIPv6Addr fields¶ type
6
len
20
addr
'::1'
- class scapy.layers.sctp.SCTPChunkParamRandom(_pkt, /, *, type=32770, len=None, random=<RandBin>)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RANDOM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamRandom
SCTPChunkParamRandom fields¶ type
32770
len
None
random
<RandBin>
- class scapy.layers.sctp.SCTPChunkParamRequestedHMACFunctions(_pkt, /, *, type=32772, len=None, HMAC_functions_list=[1])[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HMAC FUNCTIONS LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamRequestedHMACFunctions
SCTPChunkParamRequestedHMACFunctions fields¶ type
32772
len
None
HMAC_functions_list
[1]
- class scapy.layers.sctp.SCTPChunkParamSetPrimaryAddr(_pkt, /, *, type=49156, len=None, correlation_id=None, addr_type=5, addr_len=None, addr=None)[source]¶
Bases:
SCTPChunkParamAddIPAddr
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CORRELATION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR TYPE | ADDR LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamSetPrimaryAddr
SCTPChunkParamSetPrimaryAddr fields¶ type
49156
len
None
correlation_id
None
addr_type
5
addr_len
None
addr
MultipleTypeField
(IPField, IP6Field, StrFixedLenField)b''
- class scapy.layers.sctp.SCTPChunkParamStateCookie(_pkt, /, *, type=7, len=None, cookie=b'')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COOKIE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamStateCookie
SCTPChunkParamStateCookie fields¶ type
7
len
None
cookie
b''
- class scapy.layers.sctp.SCTPChunkParamSuccessIndication(_pkt, /, *, type=49157, len=8, correlation_id=None)[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CORRELATION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamSuccessIndication
SCTPChunkParamSuccessIndication fields¶ type
49157
len
8
correlation_id
None
- class scapy.layers.sctp.SCTPChunkParamSupportedAddrTypes(_pkt, /, *, type=12, len=None, addr_type_list=[5])[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDR TYPE LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamSupportedAddrTypes
SCTPChunkParamSupportedAddrTypes fields¶ type
12
len
None
addr_type_list
[5]
- class scapy.layers.sctp.SCTPChunkParamSupportedExtensions(_pkt, /, *, type=32776, len=None, supported_extensions=[15, 193, 128])[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SUPPORTED EXTENSIONS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamSupportedExtensions
SCTPChunkParamSupportedExtensions fields¶ type
32776
len
None
supported_extensions
[15, 193, 128]
- class scapy.layers.sctp.SCTPChunkParamUnrocognizedParam(_pkt, /, *, type=8, len=None, param=b'')[source]¶
Bases:
_SCTPChunkParam
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PARAM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkParamUnrocognizedParam
SCTPChunkParamUnrocognizedParam fields¶ type
8
len
None
param
b''
- class scapy.layers.sctp.SCTPChunkSACK(_pkt, /, *, type=3, flags=None, len=None, cumul_tsn_ack=None, a_rwnd=None, n_gap_ack=None, n_dup_tsn=None, gap_ack_list=[], dup_tsn_list=[])[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CUMUL TSN ACK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | A RWND | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | N GAP ACK | N DUP TSN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GAP ACK LIST | DUP TSN LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkSACK
SCTPChunkSACK fields¶ type
3
flags
None
len
None
cumul_tsn_ack
None
a_rwnd
None
n_gap_ack
None
n_dup_tsn
None
gap_ack_list
[]
dup_tsn_list
[]
- class scapy.layers.sctp.SCTPChunkShutdown(_pkt, /, *, type=7, flags=None, len=8, cumul_tsn_ack=None)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CUMUL TSN ACK | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkShutdown
SCTPChunkShutdown fields¶ type
7
flags
None
len
8
cumul_tsn_ack
None
- class scapy.layers.sctp.SCTPChunkShutdownAck(_pkt, /, *, type=8, flags=None, len=4)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS | LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkShutdownAck
SCTPChunkShutdownAck fields¶ type
8
flags
None
len
4
- class scapy.layers.sctp.SCTPChunkShutdownComplete(_pkt, /, *, type=14, reserved=None, TCB=0, len=4)[source]¶
Bases:
_SCTPChunkGuessPayload
,Packet
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | RESERVED |T| LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPChunkShutdownComplete
SCTPChunkShutdownComplete fields¶ type
14
reserved
BitField
(7 bits)None
TCB
BitField
(1 bit)0
len
4
- class scapy.layers.sctp.SCTPerror(_pkt, /, *, sport=0, dport=0, tag=0, chksum=None)[source]¶
Bases:
SCTP
- aliastypes¶
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SPORT | DPORT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TAG | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CHKSUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. SCTPerror
SCTPerror fields¶ sport
0
dport
0
tag
0
chksum
None