OSPF Constant Enumerations

OSPF_Authentication

Authentication Codes [*]

OSPF_Packet

OSPF Packet Types [†]

Authentication Types

Generated from pcapkit.vendor.ospf.authentication.Authentication.

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

Bases: EnumRegistry, aenum.IntEnum

[Authentication] Authentication Types

No_Authentication = 0

No Authentication [RFC 1583]

Simple_Password_Authentication = 1

Simple Password Authentication [RFC 1583]

Cryptographic_authentication = 2

Cryptographic authentication [RFC 2328][RFC 5709]

Cryptographic_Authentication_with_Extended_Sequence_Numbers = 3

Cryptographic Authentication with Extended Sequence Numbers [RFC 7474]

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

OSPF Packet Types

Generated from pcapkit.vendor.ospf.packet.Packet.

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

Bases: EnumRegistry, aenum.IntEnum

[Packet] OSPF Packet Types

Reserved_0 = 0

Reserved

Hello = 1

Hello [RFC 2328]

Database_Description = 2

Database Description [RFC 2328]

Link State Request [RFC 2328]

Link State Update [RFC 2328]

Link State Ack [RFC 2328]

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