Skip to main content

Module icmp

Module icmp 

Available on crate feature net only.
Expand description

ICMP forwarding errors without a socket or routing-table dependency.

Structs§

Icmpv6Echo
A borrowed ICMPv6 echo message, independent of transport or probe tracking.
IpPacketQuote
Addresses and protocol from a possibly truncated ICMP quotation.

Enums§

IcmpErrorKind
A forwarding error that can be returned to the source of an IP packet.
Icmpv6EchoKind
The two ICMPv6 echo message kinds used by link-MTU verification.

Functions§

encode_icmp_error
Encode an IP packet carrying an ICMP error and a bounded quotation of invoking.
icmpv6_checksum
ICMPv6 checksum including the IPv6 pseudo-header (RFC 4443 §2.3).
is_icmp_error
Whether a packet carries an ICMP error (rather than an informational message). Returns false if fragmentation prevents inspecting the type.