MCPcopy Index your code
hub / github.com/secdev/scapy / SCTPChunkParamRandom

Class SCTPChunkParamRandom

scapy/layers/sctp.py:464–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464class SCTPChunkParamRandom(_SCTPChunkParam, Packet):
465 fields_desc = [ShortEnumField("type", 0x8002, sctpchunkparamtypes),
466 FieldLenField("len", None, length_of="random",
467 adjust=lambda pkt, x:x + 4),
468 PadField(StrLenField("random", RandBin(32),
469 length_from=lambda pkt: pkt.len - 4),
470 4, padwith=b"\x00"), ]
471
472
473class SCTPChunkParamChunkList(_SCTPChunkParam, Packet):

Callers

nothing calls this directly

Calls 5

ShortEnumFieldClass · 0.90
FieldLenFieldClass · 0.90
PadFieldClass · 0.90
StrLenFieldClass · 0.90
RandBinClass · 0.90

Tested by

no test coverage detected