OSPFv1 Constant Enumerations

OSPFv1_Authentication

OSPFv1 Authentication Types [*]

OSPFv1_Packet

OSPFv1 Packet Types [†]

Added in version 1.8.1.

OSPFv1 Authentication Types

Generated from pcapkit.vendor.ospfv1.authentication.Authentication. Its source is RFC 1131, published as PostScript alone, so the crawler reads its module’s DATA mapping instead of fetching a URL.

class pcapkit.const.ospfv1.authentication.Authentication(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Authentication] OSPFv1 Authentication Types

No_authentication = 0

No authentication [RFC 1131]

Simple_password = 1

Simple password [RFC 1131]

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:

Authentication

OSPFv1 Packet Types

Generated from pcapkit.vendor.ospfv1.packet.Packet, from the DATA mapping of its module as well.

class pcapkit.const.ospfv1.packet.Packet(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Packet] OSPFv1 Packet Types

Hello = 1

Hello [RFC 1131]

Database_Description = 2

Database Description [RFC 1131]

Link State Request [RFC 1131]

Link State Update [RFC 1131]

Link State Ack [RFC 1131]

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:

Packet

Footnotes