Expand description
ICMP Extensions Framework (RFC 4884)
ICMP error messages can include extensions that provide additional diagnostic information. The extensions framework defines:
- Extension Header (4 bytes: version, reserved, checksum)
- Extension Objects (variable length: len, classnum, classtype, data)
Common extension classes:
- Class 1: MPLS Label Stack
- Class 2: Interface Information (RFC 5837)
- Class 3: Interface Identification
Modules§
- class_
nums - ICMP Extension class numbers (IANA registry)
- header_
offsets - ICMP Extension Header offsets (RFC 4884)
- object_
offsets - ICMP Extension Object offsets
Structs§
- Interface
Info Flags - Interface Information Object flags (RFC 5837)
- Interface
Information - Parsed Interface Information extension data (RFC 5837)
Enums§
- Afi
- Address Family Identifier (AFI) for interface IP addresses
- IpAddr
- IP address enum for interface information
Constants§
Functions§
- class_
name - Get human-readable name for extension class number
- extension_
offset - Get the offset where ICMP extensions begin in an error message.
- has_
extensions - Check if ICMP extensions are present in an ICMP error message.
- parse_
extension_ header - Parse the ICMP Extension Header
- parse_
extension_ object - Parse an Extension Object header
- parse_
interface_ information - Parse Interface Information extension object (RFC 5837)
- verify_
extension_ checksum - Verify the extension header checksum