TCP Constant Enumerations

TCP Checksum *

class pcapkit.const.tcp.checksum.Checksum(*args, **kwds)[source]

Bases: aenum.IntEnum

[Checksum] TCP Checksum [RFC 1146]

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

16_bit_Fletcher_s_Algorithm = 2
8_bit_Fletcher_s_Algorithm = 1
Redundant_Checksum_Avoidance = 3
TCP_Checksum = 0

TCP Option Kind Numbers

class pcapkit.const.tcp.option.Option(*args, **kwds)[source]

Bases: aenum.IntEnum

[Option] TCP Option Kind Numbers

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

AO = 29
Bubba = 17
CC = 11
CCECHO = 13
CCNEW = 12
CHKREQ = 14
CHKSUM = 15
Corruption_Experienced = 23
ECHO = 6
ECHORE = 7
EOOL = 0
Encryption_Negotiation = 69
FASTOPEN = 34
MP = 30
MSS = 2
NOP = 1
POC = 9
POCSP = 10
QS = 27
RFC3692_style_Experiment_1 = 253
RFC3692_style_Experiment_2 = 254
Record_Boundaries = 22
Reserved_31 = 31
Reserved_32 = 32
Reserved_33 = 33
Reserved_70 = 70
Reserved_76 = 76
Reserved_77 = 77
Reserved_78 = 78
SACK = 5
SACKPMT = 4
SCPS_Capabilities = 20
SIG = 19
SNAP = 24
Selective_Negative_Acknowledgements = 21
Skeeter = 16
TCP_Compression_Filter = 26
TIMEOUT = 28
TS = 8
Trailer_Checksum_Option = 18
Unassigned = 25
WS = 3

*

https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-2

https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-1