Module icmp

Source
Expand description

An ICMP packet abstraction.

Modules§

destination_unreachable
abstraction for “destination unreachable” ICMP packets.
echo_reply
abstraction for ICMP “echo reply” packets.
echo_request
abstraction for “echo request” ICMP packets.
time_exceeded
abstraction for “time exceeded” ICMP packets.

Structs§

Icmp
Represents a generic ICMP packet.
IcmpCode
Represents the “ICMP code” header field.
IcmpHeader
Represents the ICMPv4 header.
IcmpIterable
Used to iterate over a slice of IcmpPackets
IcmpPacket
A structure enabling manipulation of on the wire packets
MutableIcmpPacket
A structure enabling manipulation of on the wire packets

Enums§

IcmpType
Represents the “ICMP type” header field.

Constants§

ICMPV4_HEADER_LEN
ICMPv4 Header Length.
ICMPV4_IP_PACKET_LEN
ICMPv4 IP Packet Length.
ICMPV4_PACKET_LEN
ICMPv4 Minimum Packet Length.

Functions§

checksum
Calculates a checksum of an ICMP packet.