PPPoE Constant Enumerations

PPPoE_Code

PPPoE Active Discovery Code Fields [*]

PPPoE_Tag

PPPoE TAG Values [†]

PPPoE Active Discovery Code Fields

Generated from pcapkit.vendor.pppoe.code.Code.

class pcapkit.const.pppoe.code.Code(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Code] PPPoE Active Discovery Code Fields

PPP_Session_Stage = 0

PPP Session Stage [RFC 2516]

PADO_Offer = 7

PADO, Offer [RFC 2516]

Unassigned_0x08 = 8

Unassigned

PADI_Initiation = 9

PADI, Initiation [RFC 2516]

PADG_Session_Grant = 10

PADG, Session-Grant [RFC 5578]

PADC_Session_Credit_Response = 11

PADC, Session-Credit Response [RFC 5578]

PADQ_Quality = 12

PADQ, Quality [RFC 5578]

PADR_Request = 25

PADR, Request [RFC 2516]

PADS_Session_confirmation = 101

PADS, Session-confirmation [RFC 2516]

PADT_Terminate = 167

PADT, Terminate [RFC 2516]

PADM_Message = 211

PADM, Message [Carrel D., Simone D., Ho C., Stoner T., “Extensions to a Method for Transmitting PPP Over Ethernet (PPPoE)”, work in progress.]

PADN_Network = 212

PADN, Network [Carrel D., Simone D., Ho C., Stoner T., “Extensions to a Method for Transmitting PPP Over Ethernet (PPPoE)”, work in progress.]

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:

Code

PPPoE TAG Values

Generated from pcapkit.vendor.pppoe.tag.Tag.

class pcapkit.const.pppoe.tag.Tag(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Tag] PPPoE TAG Values

End_Of_List = 0

End-Of-List [RFC 2516]

Service_Name = 257

Service-Name [RFC 2516]

AC_Name = 258

AC-Name [RFC 2516]

Host_Uniq = 259

Host-Uniq [RFC 2516]

AC-Cookie [RFC 2516]

Vendor_Specific = 261

Vendor-Specific [RFC 2516]

Credits = 262

Credits [RFC 5578]

Metrics = 263

Metrics [RFC 5578]

Sequence_Number = 264

Sequence Number [RFC 5578]

Credit_Scale_Factor = 265

Credit Scale Factor [RFC 5578]

Relay_Session_Id = 272

Relay-Session-Id [RFC 2516]

HURL = 273

HURL [Carrel D., Simone D., Ho C., Stoner T., “Extensions to a Method for Transmitting PPP Over Ethernet (PPPoE)”, work in progress.]

MOTM = 274

MOTM [Carrel D., Simone D., Ho C., Stoner T., “Extensions to a Method for Transmitting PPP Over Ethernet (PPPoE)”, work in progress.]

PPP_Max_Payload = 288

PPP-Max-Payload [RFC 4638]

IP_Route_Add = 289

IP_Route_Add [Carrel D., Simone D., Ho C., Stoner T., “Extensions to a Method for Transmitting PPP Over Ethernet (PPPoE)”, work in progress.]

Service_Name_Error = 513

Service-Name-Error [RFC 2516]

AC_System_Error = 514

AC-System-Error [RFC 2516]

Generic_Error = 515

Generic-Error [RFC 2516]

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:

Tag

Footnotes