IPv6 Constant Enumerations¶
This module contains all constant enumerations of
IPv6 implementations. Available
enumerations include:
IPv6 Extension Header Types [*] |
|
Destination Options and Hop-by-Hop Options [†] |
|
Option Actions [‡] |
|
IPv6 QS Functions |
|
IPv6 Router Alert Option Values [§] |
|
Routing Types [¶] |
|
Seed-ID Types |
|
Simplified Multicast Forwarding Duplicate Packet Detection ( |
|
Tagger-ID Types [#] |
IPv6 Extension Header Types¶
This module contains the constant enumeration for IPv6 Extension Header Types,
which is automatically generated from pcapkit.vendor.ipv6.extension_header.ExtensionHeader.
- class pcapkit.const.ipv6.extension_header.ExtensionHeader(*values)[source]¶
Bases:
EnumRegistry,IntEnum[ExtensionHeader] IPv6 Extension Header Types
Changed in version 1.5.0: Generated from IANA’s IPv6 Extension Header Types registry, where it was generated from the protocol-numbers registry (#925).
- Use_for_experimentation_and_testing_253 = 253¶
- Use_for_experimentation_and_testing_254 = 254¶
- classmethod _validate_value(value)[source]¶
Reject
valueunless it fits the 8-bit Next Header field.Overrides
_validate_value()so thatregister()refuses a value no extension header can carry, asget()does, in the same words (#1816). There is no_missing_here to take a range from – the constructor refuses every value no member carries – so the range is that of the Next Header field an extension header type is sent in (RFC 8200 Section 3), and an unassigned type within it may still be minted.- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valueis not anintin0-255. AValueError, so anexcept ValueErrorcaller is unaffected.
Option Actions¶
This module contains the constant enumeration for Option Actions,
which is automatically generated from pcapkit.vendor.ipv6.option_action.OptionAction.
- class pcapkit.const.ipv6.option_action.OptionAction(*values)[source]¶
Bases:
EnumRegistry,IntEnum[OptionAction] Option Actions
- skip = 0¶
- discard = 1¶
- discard_icmp_any = 2¶
- discard_icmp_unicast = 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.
Destination Options and Hop-by-Hop Options¶
This module contains the constant enumeration for Destination Options and Hop-by-Hop Options,
which is automatically generated from pcapkit.vendor.ipv6.option.Option.
- class pcapkit.const.ipv6.option.Option(*values)[source]¶
Bases:
EnumRegistry,IntEnum[Option] Destination Options and Hop-by-Hop Options
- Endpoint_Identification = 138¶
Endpoint Identification (DEPRECATED) [CHARLES LYNN]
- IOAM_Destination_Option_and_IOAM_Hop_by_Hop_Option_0x11 = 17¶
IOAM Destination Option and IOAM Hop-by-Hop Option [RFC 9486]
- IOAM_Destination_Option_and_IOAM_Hop_by_Hop_Option_0x31 = 49¶
IOAM Destination Option and IOAM Hop-by-Hop Option [RFC 9486]
- 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.
QS Functions¶
This module contains the constant enumeration for QS Functions,
which is automatically generated from pcapkit.vendor.ipv6.qs_function.QSFunction.
- class pcapkit.const.ipv6.qs_function.QSFunction(*values)[source]¶
Bases:
EnumRegistry,IntEnum[QSFunction] QS Functions
- Quick_Start_Request = 0¶
- Report_of_Approved_Rate = 8¶
- 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.
IPv6 Router Alert Option Values¶
This module contains the constant enumeration for IPv6 Router Alert Option Values,
which is automatically generated from pcapkit.vendor.ipv6.router_alert.RouterAlert.
- class pcapkit.const.ipv6.router_alert.RouterAlert(*values)[source]¶
Bases:
EnumRegistry,IntEnum[RouterAlert] IPv6 Router Alert Option Values
- Datagram_contains_a_Multicast_Listener_Discovery_message = 0¶
Datagram contains a Multicast Listener Discovery message [RFC 2710]
- Datagram_contains_an_Active_Networks_message = 2¶
Datagram contains an Active Networks message [RFC 2711]
- Reserved_65535 = 65535¶
Reserved [The Internet Assigned Numbers Authority]
- 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.
IPv6 Routing Types¶
This module contains the constant enumeration for IPv6 Routing Types,
which is automatically generated from pcapkit.vendor.ipv6.routing.Routing.
- class pcapkit.const.ipv6.routing.Routing(*values)[source]¶
Bases:
EnumRegistry,IntEnum[Routing] IPv6 Routing Types
- Nimrod = 1¶
Nimrod (DEPRECATED 2009-05-06)
- Reserved_255 = 255¶
Reserved
- 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.
Seed-ID Types¶
This module contains the constant enumeration for Seed-ID Types,
which is automatically generated from pcapkit.vendor.ipv6.seed_id.SeedID.
- class pcapkit.const.ipv6.seed_id.SeedID(*values)[source]¶
Bases:
EnumRegistry,IntEnum[SeedID] Seed-ID Types
- IPV6_SOURCE_ADDRESS = 0¶
- SEEDID_16_BIT_UNSIGNED_INTEGER = 1¶
- SEEDID_64_BIT_UNSIGNED_INTEGER = 2¶
- SEEDID_128_BIT_UNSIGNED_INTEGER = 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.
Simplified Multicast Forwarding Duplicate Packet Detection (SMF_DPD) Options¶
This module contains the constant enumeration for Simplified Multicast Forwarding Duplicate Packet Detection (SMF_DPD) Options,
which is automatically generated from pcapkit.vendor.ipv6.smf_dpd_mode.SMFDPDMode.
- class pcapkit.const.ipv6.smf_dpd_mode.SMFDPDMode(*values)[source]¶
Bases:
EnumRegistry,IntEnum[SMFDPDMode] Simplified Multicast Forwarding Duplicate Packet Detection (
SMF_DPD) Options- I_DPD = 0¶
- H_DPD = 1¶
- 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.
TaggerID Types¶
This module contains the constant enumeration for TaggerID Types,
which is automatically generated from pcapkit.vendor.ipv6.tagger_id.TaggerID.
- class pcapkit.const.ipv6.tagger_id.TaggerID(*values)[source]¶
Bases:
EnumRegistry,IntEnum[TaggerID] TaggerID Types
- 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