Skip to main content

Crate packet_dissector_ppp

Crate packet_dissector_ppp 

Source
Expand description

PPP (Point-to-Point Protocol) frame dissector and sub-protocol parsers.

Provides a PppDissector for PPP frame dissection (RFC 1661 Section 2) as well as sub-protocol parsers commonly carried inside 3GPP Protocol Configuration Options (PCO) and PPPoE sessions:

The sub-protocol parsers accept raw PPP packet bytes (starting with the Code field) and push fields directly into a DissectBuffer.

§References

Modules§

chap
CHAP (Challenge Handshake Authentication Protocol) parser.
ipcp
IPCP (Internet Protocol Control Protocol) parser.
lcp
LCP (Link Control Protocol) parser.
pap
PAP (Password Authentication Protocol) parser.

Structs§

PppDissector
PPP frame dissector.

Constants§

PPP_HEADER_SIZE
Minimum PPP packet header size (Code + Identifier + Length).

Functions§

chap_code_name
Returns the human-readable name for a CHAP Code value.
code_name
Returns the human-readable name for a PPP Code value common to LCP, IPCP and other NCPs (codes 1..=7).
lcp_code_name
Returns the human-readable name for an LCP Code value (codes 1..=11).
pap_code_name
Returns the human-readable name for a PAP Code value.
parse_header
Parse the common PPP packet header (Code, Identifier, Length) into a DissectBuffer.
parse_protocol
Dispatch a PPP sub-protocol payload to the appropriate parser.