L2TP Constant Enumerations¶
This module contains all constant enumerations of
L2TP implementations. Available
enumerations include:
L2TP Types |
L2TP Type¶
This module contains the constant enumeration for L2TP Type,
which is automatically generated from pcapkit.vendor.l2tp.type.Type.
- class pcapkit.const.l2tp.type.Type(*values)[source]¶
Bases:
EnumRegistry,IntEnum[Type] L2TP Type
- Data = 0¶
- Control = 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.