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

PPP LCP (ppp_lcp)

Reached from

Lower layerSelectorValue
pppprotocol49185 (0xc021)

Fields

FieldTypeDefaultAutoDescription
codeenum(8)1 (configure_request)PPP control-protocol code (Configure-Request / Ack / Nak / …).
identifieruint(8)0PPP control-protocol request identifier.
lengthuint(16)Length of the header and payload in octetsLength of the PPP control-protocol packet, in octets (Auto).
optionstlv — length - 4 octetsPPP control-protocol options (8-bit type / length TLVs).

code

ValueName
1 (0x01)configure_request
2 (0x02)configure_ack
3 (0x03)configure_nak
4 (0x04)configure_reject
5 (0x05)terminate_request
6 (0x06)terminate_ack
7 (0x07)code_reject
8 (0x08)protocol_reject
9 (0x09)echo_request
10 (0x0a)echo_reply
11 (0x0b)discard_request

options

  • Type 8 bits, length 8 bits.
  • The length counts the type and length fields too.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
1 (0x01)mrumru
2 (0x02)async_control_char_mapmap
3 (0x03)authentication_protocol
4 (0x04)quality_protocol
5 (0x05)magic_numbermagic
7 (0x07)protocol_field_compression
8 (0x08)address_control_compression

options › mru

FieldTypeDefaultAutoDescription
mruuint(16)

options › async_control_char_map

FieldTypeDefaultAutoDescription
mapuint(32)

options › magic_number

FieldTypeDefaultAutoDescription
magicuint(32)

Sample templates

  • pppoe-ppp-lcp — templates/protocols/l2/pppoe-ppp-lcp.wpg.yaml