Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PPPoE Discovery (pppoe_discovery)

Reached from

Lower layerSelectorValue
ethernet2ethertype34915 (0x8863)

Fields

FieldTypeDefaultAutoDescription
versionuint(4)1PPPoE protocol version (1).
typeuint(4)1PPPoE type (1).
codeenum(8)9 (padi)PPPoE code (PADI / PADO / PADR / PADS / PADT, 0 = session data).
session_iduint(16)0PPPoE session identifier.
lengthuint(16)Length of the header in octets (-6)Length of the PPPoE payload, in octets (Auto).
tagstlv — length octetsPPPoE discovery TAGs (16-bit type, 16-bit length).

code

ValueName
0 (0x00)session_data
9 (0x09)padi
7 (0x07)pado
25 (0x19)padr
101 (0x65)pads
167 (0xa7)padt

tags

  • Type 16 bits, length 16 bits.
  • The length counts the value only.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
0 (0x0000)end_of_list
257 (0x0101)service_name
258 (0x0102)ac_name
259 (0x0103)host_uniq
260 (0x0104)ac_cookie
261 (0x0105)vendor_specific
272 (0x0110)relay_session_id
513 (0x0201)service_name_error
514 (0x0202)ac_system_error
515 (0x0203)generic_error

Sample templates