scapy.layers.sctp

SCTP(流控制传输协议).

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字段

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字段

type

ByteEnumField

6

reserved

BitField (7位)

None

TCB

BitField (1位)

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字段

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字段

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字段

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字段

type

ByteEnumField

11

flags

XByteField

None

len

ShortField

4

class scapy.layers.sctp.SCTPChunkCookieEcho

Bases: scapy.layers.sctp.SCTPChunkError

aliastypes
fields_desc
SCTPChunkCookieEcho字段

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字段

type

ByteEnumField

0

reserved

BitField (4位)

None

delay_sack

BitField (1位)

0

unordered

BitField (1位)

0

beginning

BitField (1位)

0

ending

BitField (1位)

0

len

FieldLenField

None

tsn

XIntField

None

stream_id

XShortField

None

stream_seq

XShortField

None

proto_id

IntEnumField

None

data

PadField

None

payload_guess

可能的子层: DiamG

class scapy.layers.sctp.SCTPChunkError

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

aliastypes
fields_desc
SCTPChunkError字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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
SCTPChunkParamCookie保鲜栏位

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字段

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字段

type

ShortEnumField

32768

len

ShortField

4

class scapy.layers.sctp.SCTPChunkParamErrorIndication

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

aliastypes
fields_desc
SCTPChunkParamErrorIndication字段

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字段

type

ShortEnumField

49152

len

ShortField

4

class scapy.layers.sctp.SCTPChunkParamHearbeatInfo

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

aliastypes
fields_desc
SCTPChunkParamHearbeatInfo字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

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字段

type

ByteEnumField

14

reserved

BitField (7位)

None

TCB

BitField (1位)

0

len

ShortField

4

scapy.layers.sctp.crc32c(buf)