PPP IPCP (ppp_ipcp)
- Layer: L2 (data link)
- Header: variable length
- Notes: L2 control protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ppp | protocol | 32801 (0x8021) |
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 |
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 |
|---|---|---|---|
| 2 (0x02) | ip_compression_protocol | ||
| 3 (0x03) | ip_address | address | |
| 129 (0x81) | primary_dns | address | |
| 131 (0x83) | secondary_dns | address |
options › ip_address
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
address | ipv4 |
options › primary_dns
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
address | ipv4 |
options › secondary_dns
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
address | ipv4 |
Sample templates
- pppoe-ppp-ipcp —
templates/protocols/l2/pppoe-ppp-ipcp.wpg.yaml