L2TP Constant Enumerations

L2TP_Type

L2TP Types

L2TP Type

Generated from pcapkit.vendor.l2tp.type.Type.

class pcapkit.const.l2tp.type.Type(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Type] L2TP Type

Data = 0
Control = 1
classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Type