Module packet_formats::icmp
source · Expand description
Parsing and serialization of Internet Control Message Protocol (ICMP) packets.
This module supports both ICMPv4 and ICMPv6.
The ICMPv4 packet format is defined in RFC 792, and the ICMPv6 packet format is defined in RFC 4443 Section 2.1.
Modules§
- Multicast Listener Discovery Protocol.
- Messages used for NDP (ICMPv6).
Structs§
- Empty message.
- An ICMP Destination Unreachable message.
- An ICMP Echo Reply message.
- An ICMP Echo Request message.
- An ICMP packet.
- A builder for ICMP packets.
- A partially parsed and not yet validated ICMP packet.
- Arguments required to parse an ICMP packet.
- An ICMP Time Exceeded message.
- The type of ICMP codes that are unused.
- An ICMPv4 Parameter Problem message.
- An ICMPv4 Redirect Message.
- An ICMPv4 Timestamp Reply message.
- An ICMPv4 Timestamp Request message.
- An ICMPv6 Packet Too Big message.
- An ICMPv6 Parameter Problem message.
- A thin wrapper around B which implements
MessageBody
.
Enums§
- An ICMPv4 packet with a dynamic message type.
- A raw ICMPv4 packet with a dynamic message type.
- An ICMPv6 packet with a dynamic message type.
- A raw ICMPv6 packet with a dynamic message type.
Traits§
- An extension trait adding ICMP-related functionality to
Ipv4
andIpv6
. - An ICMP message.
- The type of an ICMP message.
- An ICMP or ICMPv6 packet
MessageBody
represents the parsed body of the ICMP packet.
Functions§
- Peek at an ICMP header to see what message type is present.