Linux-Specific Constant Enumerations¶
This module contains all constant enumerations of the Linux-specific
encapsulations, e.g. LinuxSLL.
Available enumerations include:
Linux ARP Hardware Types [*] |
ARP Hardware Types¶
This module contains the constant enumeration for Linux ARP Hardware Types,
which is automatically generated from pcapkit.vendor.linux.arphrd.ARPHRD.
- class pcapkit.const.linux.arphrd.ARPHRD(*values)[source]¶
Bases:
EnumRegistry,aenum.IntEnum[ARPHRD] Linux ARP hardware types [
<linux/if_arp.h>]- __proto_dest__ = (('pcapkit.protocols.link.linux_sll', 'LinuxSLL'),)¶
Protocol class(es) owning the
__proto__dispatch registry keyed by this enumeration, read byregister_protocol_code()to resolve a bare member of it into its destination(s). The classes are named as lazyModuleDescriptorreferences rather than imported, becausepcapkit.constsits belowpcapkit.protocolsand importing one from here would be circular.
- NETROM = 0¶
NET/ROM pseudo.
- FRAD = 770¶
Frame Relay Access Device
- IPGRE = 778¶
GRE over IP
- IEEE80211_RADIOTAP = 803¶
IEEE 802.11 with radiotap header
- IP6GRE = 823¶
GRE over IPv6
- NETLINK = 824¶
Kernel Netlink socket
- 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