Expand description
Support for ICMP Echo messages.
See RFC 792 p14 or RFC 4443 section 4.1.
Note that on Linux, the id
field is overwritten to be the socket’s local port when an Echo
Request message is sent. See crate::platform::icmp_send_overwrite_echo_id_with_local_port
.
Structs§
- EchoId
- Echo message “identifier” field.
- EchoSeq
- Echo message “sequence number” field.
- Icmp
Echo Request - An ICMP “Echo request” message, suitable for use with
crate::socket::IcmpSocket::send_to
.
Functions§
- parse_
echo_ reply - Parse the body of an echo reply message into (
ident
,seq
,data
).