Skip to main content

parse_echo_reply

Function parse_echo_reply 

Source
pub fn parse_echo_reply(data: &[u8]) -> Option<(u16, u16)>
Expand description

Extract identifier and sequence number from an ICMP Echo Reply packet.

The echo reply has the same layout as echo request: [type(1), code(1), checksum(2), identifier(2), sequence(2), …]