Skip to main content

attach_traceroute_filter

Function attach_traceroute_filter 

Source
pub(crate) fn attach_traceroute_filter(
    socket: &Socket,
    is_ipv6: bool,
) -> Result<()>
Expand description

Attach a filter to a raw ICMP socket for traceroute measurements: deliver ICMP Time Exceeded (intermediate hops), Destination Unreachable (destination reached for UDP traceroute), and Echo Reply (destination reached for ICMP traceroute), dropping all other ICMP traffic.

ยงArguments

  • socket - the raw ICMP socket to attach the filter to
  • is_ipv6 - whether this is an IPv6 (ICMPv6) socket