Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Jan 22, 2025
1 parent 0eef856 commit fae0900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions leak-checker/src/traceroute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const LEAK_TIMEOUT: Duration = Duration::from_secs(5);
const SEND_TIMEOUT: Duration = Duration::from_secs(1);

/// Timeout of receiving additional probe packets after the first one
#[cfg(not(target_os = "windows"))]
const RECV_GRACE_TIME: Duration = Duration::from_millis(220);

/// Time in-between send of each probe packet.
Expand Down
1 change: 1 addition & 0 deletions leak-checker/src/traceroute/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub trait AsyncIcmpSocket: Sized {
async fn send_to(&self, packet: &[u8], destination: impl Into<IpAddr>) -> io::Result<usize>;

/// Receive an ICMP packet.
#[cfg_attr(target_os = "linux", allow(dead_code))]
async fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, IpAddr)>;

/// Try to read ICMP/TimeExceeded error packets to see if probe packets leaked.
Expand Down

0 comments on commit fae0900

Please sign in to comment.