PPP LCP (ppp_lcp)
- Layer: L2 (data link)
- Header: variable length
- Notes: L2 control protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ppp | protocol | 49185 (0xc021) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
code | enum(8) | 1 (configure_request) | PPP control-protocol code (Configure-Request / Ack / Nak / …). | |
identifier | uint(8) | 0 | PPP control-protocol request identifier. | |
length | uint(16) | Length of the header and payload in octets | Length of the PPP control-protocol packet, in octets (Auto). | |
options | tlv — length - 4 octets | PPP control-protocol options (8-bit type / length TLVs). |
code
| Value | Name |
|---|---|
| 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.
| Type | Name | Value fields | Description |
|---|---|---|---|
| 1 (0x01) | mru | mru | |
| 2 (0x02) | async_control_char_map | map | |
| 3 (0x03) | authentication_protocol | ||
| 4 (0x04) | quality_protocol | ||
| 5 (0x05) | magic_number | magic | |
| 7 (0x07) | protocol_field_compression | ||
| 8 (0x08) | address_control_compression |
options › mru
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
mru | uint(16) |
options › async_control_char_map
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
map | uint(32) |
options › magic_number
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
magic | uint(32) |
Sample templates
- pppoe-ppp-lcp —
templates/protocols/l2/pppoe-ppp-lcp.wpg.yaml