Skip to main content

drain_icmp_errors

Function drain_icmp_errors 

Source
pub fn drain_icmp_errors(fd: RawFd) -> Vec<(IpAddr, Vec<u8>)>
Expand description

Drain the socket’s error queue, returning, for each ICMP TimeExceeded found, the offending router address and the bytes of the original probe it expired (so the caller can read back the TTL it stamped and match the per-hop RTT). Linux only.