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§
Macros§
- icmpv4_
dispatch - Dispatches expressions to the type-safe variants of
Icmpv4Packet
orIcmpv4PacketRaw
. - icmpv6_
dispatch - Dispatches expressions to the type-safe variants of
Icmpv6Packet
orIcmpv6PacketRaw
.
Structs§
- Empty
Message - Empty message.
- Icmp
Dest Unreachable - An ICMP Destination Unreachable message.
- Icmp
Echo Reply - An ICMP Echo Reply message.
- Icmp
Echo Request - An ICMP Echo Request message.
- Icmp
Packet - An ICMP packet.
- Icmp
Packet Builder - A builder for ICMP packets.
- Icmp
Packet Raw - A partially parsed and not yet validated ICMP packet.
- Icmp
Parse Args - Arguments required to parse an ICMP packet.
- Icmp
Sender Zero Code - An ICMP code that is zero on serialization, but ignored on parsing.
- Icmp
Time Exceeded - An ICMP Time Exceeded message.
- Icmp
Zero Code - An ICMP code that must be zero.
- Icmpv4
Parameter Problem - An ICMPv4 Parameter Problem message.
- Icmpv4
Redirect - An ICMPv4 Redirect Message.
- Icmpv4
Timestamp Reply - An ICMPv4 Timestamp Reply message.
- Icmpv4
Timestamp Request - An ICMPv4 Timestamp Request message.
- Icmpv6
Packet TooBig - An ICMPv6 Packet Too Big message.
- Icmpv6
Parameter Problem - An ICMPv6 Parameter Problem message.
- Original
Packet - A thin wrapper around B which implements
MessageBody
.
Enums§
- Icmpv4
Dest Unreachable Code - Icmpv4
Message Type - Icmpv4
Packet - An ICMPv4 packet with a dynamic message type.
- Icmpv4
Packet Raw - A raw ICMPv4 packet with a dynamic message type.
- Icmpv4
Parameter Problem Code - Icmpv4
Redirect Code - Icmpv4
Time Exceeded Code - Icmpv6
Dest Unreachable Code - Icmpv6
Message Type - Icmpv6
Packet - An ICMPv6 packet with a dynamic message type.
- Icmpv6
Packet Raw - A raw ICMPv6 packet with a dynamic message type.
- Icmpv6
Parameter Problem Code - Icmpv6
Time Exceeded Code
Traits§
- Icmp
IpExt - An extension trait adding ICMP-related functionality to
Ipv4
andIpv6
. - Icmp
Message - An ICMP message.
- Icmp
Message Type - The type of an ICMP message.
- Icmp
Packet Type Raw - An ICMP or ICMPv6 packet
- Message
Body MessageBody
represents the parsed body of the ICMP packet.
Functions§
- peek_
message_ type - Peek at an ICMP header to see what message type is present.