Skip to main content

send_trace

Function send_trace 

Source
pub fn send_trace(
    config: &OutboundConfig,
    trace_task: &Trace,
    socket: &Socket,
) -> (u32, u32)
Expand description

Sends a traceroute probe based on the provided trace task, protocol, and configuration.

Supports ICMP, UDP (Paris), and TCP (Paris) traceroute.

  • ICMP: identifier (worker_hi + timestamp) + sequence (TTL + worker_lo)
  • UDP (Paris): IP identification/flow label (worker_hi + timestamp) + UDP checksum (TTL + worker_lo)
  • TCP (Paris): seq number (worker_id + TTL + timestamp)

ยงArguments

  • config - The outbound configuration (worker, measurement, origin, and protocol details).
  • trace_task - The traceroute task containing destination and TTL information.
  • socket - The socket to send the packet on.