Module echo_request

Source
Expand description

abstraction for “echo request” ICMP packets.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     Type      |     Code      |          Checksum             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           Identifier          |        Sequence Number        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     Data ...
+-+-+-+-+-

Modules§

IcmpCodes
Enumeration of available ICMP codes for “echo reply” ICMP packets. There is actually only one, since the only valid ICMP code is 0.

Structs§

EchoRequest
Represents an “echo request” ICMP packet.
EchoRequestIterable
Used to iterate over a slice of EchoRequestPackets
EchoRequestPacket
A structure enabling manipulation of on the wire packets
Identifier
Represents the identifier field.
MutableEchoRequestPacket
A structure enabling manipulation of on the wire packets
SequenceNumber
Represents the sequence number field.