TCP Constant Enumerations

This module contains all constant enumerations of TCP implementations. Available enumerations include:

TCP_Checksum

TCP Checksum [*]

TCP_MPTCPOption

Multipath TCP options []

TCP_Option

TCP Option Kind Numbers []

TCP_Flags

TCP Header Flags [§]

TCP Checksum

This module contains the constant enumeration for TCP Checksum, which is automatically generated from pcapkit.vendor.tcp.checksum.Checksum.

class pcapkit.const.tcp.checksum.Checksum(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[Checksum] TCP Checksum [RFC 1146]

TCP_checksum = 0
Checksum_8_bit_Fletcher_s_algorithm = 1
Checksum_16_bit_Fletcher_s_algorithm = 2
Redundant_Checksum_Avoidance = 3
classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Checksum

Multipath TCP options

This module contains the constant enumeration for Multipath TCP options, which is automatically generated from pcapkit.vendor.tcp.mp_tcp_option.MPTCPOption.

class pcapkit.const.tcp.mp_tcp_option.MPTCPOption(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[MPTCPOption] Multipath TCP options [RFC 6824]

MP_CAPABLE = 0

Multipath Capable [RFC 8684#3.1]

MP_JOIN = 1

Join Connection [RFC 8684#3.2]

DSS = 2

Data Sequence Signal (Data ACK and Data Sequence Mapping) [RFC 8684#3.3]

ADD_ADDR = 3

Add Address [RFC 8684#3.4.1]

REMOVE_ADDR = 4

Remove Address [RFC 8684#3.4.2]

MP_PRIO = 5

Change Subflow Priority [RFC 8684#3.3.8]

MP_FAIL = 6

Fallback [RFC 8684#3.7]

MP_FASTCLOSE = 7

Fast Close [RFC 8684#3.5]

MP_TCPRST = 8

Subflow Reset [RFC 8684#3.6]

Reserved_for_Private_Use = 15

[RFC 8684]

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

MPTCPOption

TCP Option Kind Numbers

This module contains the constant enumeration for TCP Option Kind Numbers, which is automatically generated from pcapkit.vendor.tcp.option.Option.

class pcapkit.const.tcp.option.Option(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

[Option] TCP Option Kind Numbers

End_of_Option_List = 0

End of Option List [RFC 9293]

No_Operation = 1

No-Operation [RFC 9293]

Maximum_Segment_Size = 2

Maximum Segment Size [RFC 9293]

Window_Scale = 3

Window Scale [RFC 7323]

SACK_Permitted = 4

SACK Permitted [RFC 2018]

SACK = 5

SACK [RFC 2018]

Echo = 6

Echo (obsoleted by option 8) [RFC 1072][RFC 6247]

Echo_Reply = 7

Echo Reply (obsoleted by option 8) [RFC 1072][RFC 6247]

Timestamps = 8

Timestamps [RFC 7323]

Partial_Order_Connection_Permitted = 9

Partial Order Connection Permitted (obsolete) [RFC 1693][RFC 6247]

Partial_Order_Service_Profile = 10

Partial Order Service Profile (obsolete) [RFC 1693][RFC 6247]

CC = 11

CC (obsolete) [RFC 1644][RFC 6247]

CC_NEW = 12

CC.NEW (obsolete) [RFC 1644][RFC 6247]

CC_ECHO = 13

CC.ECHO (obsolete) [RFC 1644][RFC 6247]

TCP_Alternate_Checksum_Request = 14

TCP Alternate Checksum Request (obsolete) [RFC 1146][RFC 6247]

TCP_Alternate_Checksum_Data = 15

TCP Alternate Checksum Data (obsolete) [RFC 1146][RFC 6247]

Skeeter = 16

Skeeter [Stev Knowles]

Bubba = 17

Bubba [Stev Knowles]

Trailer_Checksum_Option = 18

Trailer Checksum Option [Subbu Subramaniam][Monroe Bridges]

MD5_Signature_Option = 19

MD5 Signature Option (obsoleted by option 29) [RFC 2385]

SCPS_Capabilities = 20

SCPS Capabilities [Keith Scott]

Selective_Negative_Acknowledgements = 21

Selective Negative Acknowledgements [Keith Scott]

Record_Boundaries = 22

Record Boundaries [Keith Scott]

Corruption_experienced = 23

Corruption experienced [Keith Scott]

SNAP = 24

SNAP [Vladimir Sukonnik]

Unassigned_25 = 25

Unassigned (released 2000-12-18)

TCP_Compression_Filter = 26

TCP Compression Filter [Steve Bellovin]

Quick_Start_Response = 27

Quick-Start Response [RFC 4782]

User_Timeout_Option = 28

User Timeout Option (also, other known unauthorized use) [RFC 5482]

TCP_Authentication_Option = 29

TCP Authentication Option (TCP-AO) [RFC 5925]

Multipath_TCP = 30

Multipath TCP (MPTCP) [RFC 8684]

Reserved_31 = 31

Reserved (known unauthorized use without proper IANA assignment)

Reserved_32 = 32

Reserved (known unauthorized use without proper IANA assignment)

Reserved_33 = 33

Reserved (known unauthorized use without proper IANA assignment)

TCP Fast Open Cookie [RFC 7413]

Encryption_Negotiation = 69

Encryption Negotiation (TCP-ENO) [RFC 8547]

Reserved_70 = 70

Reserved (known unauthorized use without proper IANA assignment)

Reserved_76 = 76

Reserved (known unauthorized use without proper IANA assignment)

Reserved_77 = 77

Reserved (known unauthorized use without proper IANA assignment)

Reserved_78 = 78

Reserved (known unauthorized use without proper IANA assignment)

Accurate_ECN_Order_0 = 172

Accurate ECN Order 0 (AccECN0) (TEMPORARY - registered 2022-08-03, extension registered 2024-07-11, expires 2025-08-03) [draft-ietf-tcpm-accurate-ecn-20]

Reserved_173 = 173

Reserved

Accurate_ECN_Order_1 = 174

Accurate ECN Order 1 (AccECN1) (TEMPORARY - registered 2022-08-03, extension registered 2024-07-11, expires 2025-08-03) [draft-ietf-tcpm-accurate-ecn-20]

RFC3692_style_Experiment_1 = 253

RFC3692-style Experiment 1 (also improperly used for shipping products) [RFC 4727]

RFC3692_style_Experiment_2 = 254

RFC3692-style Experiment 2 (also improperly used for shipping products) [RFC 4727]

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Option

TCP Header Flags

This module contains the constant enumeration for TCP Header Flags, which is automatically generated from pcapkit.vendor.tcp.flags.Flags.

class pcapkit.const.tcp.flags.Flags(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntFlag

[Flags] TCP Header Flags

Reserved_4 = 16

Reserved for future use [RFC 9293]

Reserved_5 = 32

Reserved for future use [RFC 9293]

Reserved_6 = 64

Reserved for future use [RFC 9293]

Reserved_7 = 128

Reserved for future use [RFC 8311]

CWR = 256

CWR (Congestion Window Reduced) [RFC 3168]

ECE = 512

ECE (ECN-Echo) [RFC 3168]

URG = 1024

Urgent Pointer field is significant (URG) [RFC 9293]

ACK = 2048

Acknowledgment field is significant (ACK) [RFC 9293]

PSH = 4096

Push Function (PSH) [RFC 9293]

RST = 8192

Reset the connection (RST) [RFC 9293]

SYN = 16384

Synchronize sequence numbers (SYN) [RFC 9293]

FIN = 32768

No more data from sender (FIN) [RFC 9293]

Footnotes