Module icmp
Available on crate feature
net only.Expand description
ICMP forwarding errors without a socket or routing-table dependency.
Structs§
- Icmpv6
Echo - A borrowed ICMPv6 echo message, independent of transport or probe tracking.
- IpPacket
Quote - Addresses and protocol from a possibly truncated ICMP quotation.
Enums§
- Icmp
Error Kind - A forwarding error that can be returned to the source of an IP packet.
- Icmpv6
Echo Kind - 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.