Loading...
Searching...
No Matches

Header of a PPP packet. More...

Detailed Description

Header of a PPP packet.

A PPP packet is transmitted as a payload of an HDLC packet. PPP packets only carry information about control protocol of a PPP stack (Link Control Protocol, IP Control Protocol, etc). IP packets encapsulated in HDLC frame are not considered PPP packet.

The format of PPP header plus payload is:

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload ... +-+-+-+-+

See also
RFC 1661, section 5

Definition at line 55 of file hdr.h.

#include <hdr.h>

Data Fields

uint8_t code
 Code of PPP packet.
 
uint8_t id
 Identifier PPP of packet.
 
network_uint16_t length
 Length of PPP packet including payload.
 

Field Documentation

◆ code

uint8_t ppp_hdr_t::code

Code of PPP packet.

Definition at line 56 of file hdr.h.

◆ id

uint8_t ppp_hdr_t::id

Identifier PPP of packet.

Definition at line 57 of file hdr.h.

◆ length

network_uint16_t ppp_hdr_t::length

Length of PPP packet including payload.

Definition at line 58 of file hdr.h.


The documentation for this struct was generated from the following file: