TCP Constant Enumerations¶
TCP Checksum¶
Generated from pcapkit.vendor.tcp.checksum.Checksum.
- class pcapkit.const.tcp.checksum.Checksum(*values)[source]¶
Bases:
EnumRegistry,aenum.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 _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
Multipath TCP Options¶
Generated from pcapkit.vendor.tcp.mp_tcp_option.MPTCPOption.
- class pcapkit.const.tcp.mp_tcp_option.MPTCPOption(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[MPTCPOption] Multipath TCP options [RFC 8684]
- MP_CAPABLE = 0¶
Multipath Capable [RFC 8684 Section 3.1]
- MP_JOIN = 1¶
Join Connection [RFC 8684 Section 3.2]
- DSS = 2¶
Data Sequence Signal (Data ACK and Data Sequence Mapping) [RFC 8684 Section 3.3]
- ADD_ADDR = 3¶
Add Address [RFC 8684 Section 3.4.1]
- REMOVE_ADDR = 4¶
Remove Address [RFC 8684 Section 3.4.2]
- MP_PRIO = 5¶
Change Subflow Priority [RFC 8684 Section 3.3.8]
- MP_FAIL = 6¶
Fallback [RFC 8684 Section 3.7]
- MP_FASTCLOSE = 7¶
Fast Close [RFC 8684 Section 3.5]
- MP_TCPRST = 8¶
Subflow Reset [RFC 8684 Section 3.6]
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
TCP Option Kind Numbers¶
Generated from pcapkit.vendor.tcp.option.Option.
- class pcapkit.const.tcp.option.Option(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[Option] TCP Option Kind Numbers
- Partial_Order_Connection_Permitted = 9¶
Partial Order Connection Permitted (obsolete) [RFC 1693][RFC 6247]
- Skeeter = 16¶
Skeeter [Stev Knowles]
- Bubba = 17¶
Bubba [Stev Knowles]
- Trailer_Checksum_Option = 18¶
Trailer Checksum Option [Subbu Subramaniam][Monroe Bridges]
- 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]
- 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)
- 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)
- Reserved_173 = 173¶
Reserved
- 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 _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
TCP Header Flags¶
Generated from pcapkit.vendor.tcp.flags.Flags.
Changed in version 1.5.0: A value outside 0-0xFFF, the flag bits of their 16-bit header word,
raises ValueError, where
aenum composed a pseudo-member for any integer.
- class pcapkit.const.tcp.flags.Flags(*values)[source]¶
Bases:
EnumRegistry,aenum.IntFlag[Flags] TCP Header Flags
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
Footnotes