scapy.layers.sctp

SCTP (Stream Control Transmission Protocol).

class scapy.layers.sctp.ChunkParamField(name, default, count_from=None, length_from=None)

Bases: scapy.fields.PacketListField

m2i(p, m)
class scapy.layers.sctp.GapAckField(name, default)

Bases: scapy.fields.Field

any2i(pkt, x)
i2m(pkt, x)
m2i(pkt, x)
class scapy.layers.sctp.SCTP

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
answers(other)
fields_desc
SCTP fields

sport

ShortField

None

dport

ShortField

None

tag

XIntField

None

chksum

XIntField

None

post_build(p, pay)
class scapy.layers.sctp.SCTPChunkAbort

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkAbort fields

type

ByteEnumField

6

reserved

BitField (7 bits)

None

TCB

BitField (1 bit)

0

len

FieldLenField

None

error_causes

PadField

b''

class scapy.layers.sctp.SCTPChunkAddressConf

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkAddressConf fields

type

ByteEnumField

193

flags

XByteField

None

len

FieldLenField

None

seq

IntField

0

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkAddressConfAck

Bases: scapy.layers.sctp.SCTPChunkAddressConf

aliastypes
fields_desc
SCTPChunkAddressConfAck fields

type

ByteEnumField

128

flags

XByteField

None

len

FieldLenField

None

seq

IntField

0

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkAuthentication

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkAuthentication fields

type

ByteEnumField

15

flags

XByteField

None

len

FieldLenField

None

shared_key_id

ShortField

None

HMAC_function

ShortField

None

HMAC

PadField

b''

class scapy.layers.sctp.SCTPChunkCookieAck

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkCookieAck fields

type

ByteEnumField

11

flags

XByteField

None

len

ShortField

4

class scapy.layers.sctp.SCTPChunkCookieEcho

Bases: scapy.layers.sctp.SCTPChunkError

aliastypes
fields_desc
SCTPChunkCookieEcho fields

type

ByteEnumField

10

flags

XByteField

None

len

FieldLenField

None

cookie

PadField

b''

class scapy.layers.sctp.SCTPChunkData

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkData fields

type

ByteEnumField

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

FieldLenField

None

tsn

XIntField

None

stream_id

XShortField

None

stream_seq

XShortField

None

proto_id

IntEnumField

None

data

PadField

None

payload_guess

Possible sublayers: DiamG

class scapy.layers.sctp.SCTPChunkError

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkError fields

type

ByteEnumField

9

flags

XByteField

None

len

FieldLenField

None

error_causes

PadField

b''

class scapy.layers.sctp.SCTPChunkHeartbeatAck

Bases: scapy.layers.sctp.SCTPChunkHeartbeatReq

aliastypes
fields_desc
SCTPChunkHeartbeatAck fields

type

ByteEnumField

5

flags

XByteField

None

len

FieldLenField

None

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkHeartbeatReq

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkHeartbeatReq fields

type

ByteEnumField

4

flags

XByteField

None

len

FieldLenField

None

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkInit

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkInit fields

type

ByteEnumField

1

flags

XByteField

None

len

FieldLenField

None

init_tag

XIntField

None

a_rwnd

IntField

None

n_out_streams

ShortField

None

n_in_streams

ShortField

None

init_tsn

XIntField

None

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkInitAck

Bases: scapy.layers.sctp.SCTPChunkInit

aliastypes
fields_desc
SCTPChunkInitAck fields

type

ByteEnumField

2

flags

XByteField

None

len

FieldLenField

None

init_tag

XIntField

None

a_rwnd

IntField

None

n_out_streams

ShortField

None

n_in_streams

ShortField

None

init_tsn

XIntField

None

params

ChunkParamField

[]

class scapy.layers.sctp.SCTPChunkParamAdaptationLayer

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamAdaptationLayer fields

type

ShortEnumField

49158

len

ShortField

8

indication

XIntField

None

class scapy.layers.sctp.SCTPChunkParamAddIPAddr

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamAddIPAddr fields

type

ShortEnumField

49153

len

FieldLenField

None

correlation_id

XIntField

None

addr_type

ShortEnumField

5

addr_len

FieldLenField

None

addr

IPField (Cond)

'127.0.0.1'

addr

IP6Field (Cond)

'::1'

class scapy.layers.sctp.SCTPChunkParamChunkList

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamChunkList fields

type

ShortEnumField

32771

len

FieldLenField

None

chunk_list

PadField

[]

class scapy.layers.sctp.SCTPChunkParamCookiePreservative

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamCookiePreservative fields

type

ShortEnumField

9

len

ShortField

8

sug_cookie_inc

XIntField

None

class scapy.layers.sctp.SCTPChunkParamDelIPAddr

Bases: scapy.layers.sctp.SCTPChunkParamAddIPAddr

aliastypes
fields_desc
SCTPChunkParamDelIPAddr fields

type

ShortEnumField

49154

len

FieldLenField

None

correlation_id

XIntField

None

addr_type

ShortEnumField

5

addr_len

FieldLenField

None

addr

IPField (Cond)

'127.0.0.1'

addr

IP6Field (Cond)

'::1'

class scapy.layers.sctp.SCTPChunkParamECNCapable

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamECNCapable fields

type

ShortEnumField

32768

len

ShortField

4

class scapy.layers.sctp.SCTPChunkParamErrorIndication

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamErrorIndication fields

type

ShortEnumField

49155

len

FieldLenField

None

correlation_id

XIntField

None

error_causes

PadField

b''

class scapy.layers.sctp.SCTPChunkParamFwdTSN

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamFwdTSN fields

type

ShortEnumField

49152

len

ShortField

4

class scapy.layers.sctp.SCTPChunkParamHearbeatInfo

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamHearbeatInfo fields

type

ShortEnumField

1

len

FieldLenField

None

data

PadField

b''

class scapy.layers.sctp.SCTPChunkParamHostname

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamHostname fields

type

ShortEnumField

11

len

FieldLenField

None

hostname

PadField

b''

class scapy.layers.sctp.SCTPChunkParamIPv4Addr

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamIPv4Addr fields

type

ShortEnumField

5

len

ShortField

8

addr

IPField

'127.0.0.1'

class scapy.layers.sctp.SCTPChunkParamIPv6Addr

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamIPv6Addr fields

type

ShortEnumField

6

len

ShortField

20

addr

IP6Field

'::1'

class scapy.layers.sctp.SCTPChunkParamRandom

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamRandom fields

type

ShortEnumField

32770

len

FieldLenField

None

random

PadField

<RandBin>

class scapy.layers.sctp.SCTPChunkParamRequestedHMACFunctions

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamRequestedHMACFunctions fields

type

ShortEnumField

32772

len

FieldLenField

None

HMAC_functions_list

PadField

[1]

class scapy.layers.sctp.SCTPChunkParamSetPrimaryAddr

Bases: scapy.layers.sctp.SCTPChunkParamAddIPAddr

aliastypes
fields_desc
SCTPChunkParamSetPrimaryAddr fields

type

ShortEnumField

49156

len

FieldLenField

None

correlation_id

XIntField

None

addr_type

ShortEnumField

5

addr_len

FieldLenField

None

addr

IPField (Cond)

'127.0.0.1'

addr

IP6Field (Cond)

'::1'

class scapy.layers.sctp.SCTPChunkParamStateCookie

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamStateCookie fields

type

ShortEnumField

7

len

FieldLenField

None

cookie

PadField

b''

class scapy.layers.sctp.SCTPChunkParamSuccessIndication

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamSuccessIndication fields

type

ShortEnumField

49157

len

ShortField

8

correlation_id

XIntField

None

class scapy.layers.sctp.SCTPChunkParamSupportedAddrTypes

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamSupportedAddrTypes fields

type

ShortEnumField

12

len

FieldLenField

None

addr_type_list

PadField

[5]

class scapy.layers.sctp.SCTPChunkParamSupportedExtensions

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamSupportedExtensions fields

type

ShortEnumField

32776

len

FieldLenField

None

supported_extensions

PadField

[15, 193, 128]

class scapy.layers.sctp.SCTPChunkParamUnrocognizedParam

Bases: scapy.layers.sctp._SCTPChunkParam, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkParamUnrocognizedParam fields

type

ShortEnumField

8

len

FieldLenField

None

param

PadField

b''

class scapy.layers.sctp.SCTPChunkSACK

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkSACK fields

type

ByteEnumField

3

flags

XByteField

None

len

ShortField

None

cumul_tsn_ack

XIntField

None

a_rwnd

IntField

None

n_gap_ack

FieldLenField

None

n_dup_tsn

FieldLenField

None

gap_ack_list

FieldListField

[]

dup_tsn_list

FieldListField

[]

post_build(p, pay)
class scapy.layers.sctp.SCTPChunkShutdown

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkShutdown fields

type

ByteEnumField

7

flags

XByteField

None

len

ShortField

8

cumul_tsn_ack

XIntField

None

class scapy.layers.sctp.SCTPChunkShutdownAck

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkShutdownAck fields

type

ByteEnumField

8

flags

XByteField

None

len

ShortField

4

class scapy.layers.sctp.SCTPChunkShutdownComplete

Bases: scapy.layers.sctp._SCTPChunkGuessPayload, scapy.packet.Packet

aliastypes
fields_desc
SCTPChunkShutdownComplete fields

type

ByteEnumField

14

reserved

BitField (7 bits)

None

TCB

BitField (1 bit)

0

len

ShortField

4

scapy.layers.sctp.crc32c(buf)