Constant Enumerations¶
The constant enumerations of pcapkit, generated by pcapkit.vendor.
Unrecognised Values¶
Nearly every registry below departs from enum in one deliberate way:
looking up a value it does not define does not raise. Its _missing_ override
returns a member-like object named for the unassigned or reserved band the value
falls in. Only a value no band covers, or of the wrong type, raises
ValueError.
That object is usually not installed: the registry does not grow, and a repeat lookup returns an equal but distinct object. The exceptions, of which Minting an Unrecognised Value gives the full split:
CGATypeinstalls a permanent member, so__members__and iteration grow.Flags,CommandTypeand the Mobility Header and radiotap flag registries, such asBindingACKFlag, hand back toaenum’s flag base, which caches the composed object in the value lookup table only: a repeat lookup returns the same object, while__members__and iteration are unchanged.Transport,Type,ManagementSubtype,ExtensionHeader,TLSKeyLabeland the memberlessAppTypebase raiseValueErrorfor any unknown value.
This lets the enumerations decode live captures, where a code assigned after this release was generated is routine, so iterating a registry need not list every value it resolves. Since whether a repeat lookup returns the same object varies by registry, compare unassigned members by value, not identity.
The template in pcapkit.vendor.default emits the override’s common form; the
valid range and band names come from each registry’s source data, so the individual
overrides are not documented per class.
See also
Registry Management covers the other half of extending a registry: once a code exists, registering a parser class, schema or engine against it.
Protocol Numbers¶
Link Layer¶
ARPConstant EnumerationsIEEE802_11Constant EnumerationsL2TPConstant Enumerations- Linux-Specific Constant Enumerations
RadiotapConstant Enumerations- Field Types
- Flags
- Channel Flags
- RX Flags
- TX Flags
- MCS Known Flags
- A-MPDU Status Flags
- VHT Known Flags
- VHT Flags
- VHT Coding Flags
- Timestamp Flags
- HE Data1 Known Flags
- HE Data2 Known Flags
- HE-MU Flags1 Known Flags
- HE-MU Flags2 Known Flags
- HE-MU-other-user Known Flags
- L-SIG Data1 Flags
- S1G Known Flags
- U-SIG Common Known Flags
- EHT Known Flags
VLANConstant Enumerations
Internet Layer¶
ESPConstant EnumerationsHIPConstant Enumerations- HIP Certificate Types
- Cipher IDs
- DI-Types
- ECDSA Curve Label
- ECDSA_LOW Curve Label
- EdDSA Curve Label
- ESP Transform Suite IDs
- Group IDs
- HI Algorithm
- HIT Suite ID
- HIP NAT Traversal Modes
- Notify Message Types
- HIP Packet Types
- HIP Parameter Types
- Registration Failure Types
- Registration Types
- Suite IDs
- HIP Transport Modes
ICMPv4Constant EnumerationsICMPv6Constant EnumerationsIGMPConstant EnumerationsIPv4Constant EnumerationsIPv6Constant EnumerationsIPXConstant EnumerationsMHConstant Enumerations- Access Technology Type Option Type Values
- Pseudo Home Address Acknowledgement Status Codes
- Access Network Information (ANI) Sub-Option Type Values
- Subtype Field of the MN-HA and MN-AAA Authentication Mobility Options
- Binding Acknowledgment Flags
- Binding Revocation Type
- Binding Update Flags
- IPv4 DHCP Support Mode Flags
- Status Codes (DNS Update Mobility Option)
- DSMIP6-TLS Packet Types Registry
- Dual Stack MIPv6 (DSMIPv6) IPv4 Home Address Option Status Codes
- Enumerating Algorithms
- Flow Binding Acknowledgement Status Codes
- Flow Binding Action Values
- Flow Binding Indication Triggers
- Flow Binding Type
- Flow Identification Mobility Option Status Codes
- Flow Identification Sub-Options
- Handoff Indicator Option Type Values
- Handover Acknowledge Flags
- Handover Acknowledge Status Codes
- Handover Initiate Flags
- Handover Initiate Status Codes
- IPv4 Home Address Reply Status Codes
- LMA-Controlled MAG Parameters Sub-Option Type Values
- Mobile Node Group Identifier Type Registry
- Mobile Node Identifier Option Subtypes
- Operator-Identifier Type Registry
- Mobility Options
- Mobility Header Types - for the MH Type Field in the Mobility Header
- Quality-of-Service Attribute Registry
- Binding Revocation Acknowledgement Status Codes
- Revocation Trigger Values
- Status Codes
- Traffic Selector Format
- Update Notification Acknowledgement Status Registry
- Update Notification Reasons Registry
- Link-Layer Address (LLA) Option Code
- CGA Extension Type Tags
- CGA Extension Type Values
- CGA SEC
- Binding Error Status Code