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 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
MP_JOIN = 1
DSS = 2
ADD_ADDR = 3
REMOVE_ADDR = 4
MP_PRIO = 5
MP_FAIL = 6
MP_FASTCLOSE = 7
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-ietf-tcpm-rfc793bis-28]

No_Operation = 1

No-Operation [RFC-ietf-tcpm-rfc793bis-28]

Maximum_Segment_Size = 2

Maximum Segment Size [RFC-ietf-tcpm-rfc793bis-28]

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) [***][1] [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) [**]

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


*

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