From afe403f273997dd309af82d5f6df4a765ea29e1b Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 5 Aug 2026 10:42:53 +0200 Subject: Remove TTL reply --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d5e1588..a5996d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,9 +74,9 @@ async fn main() { match rx.try_recv() { // Update the state of the received packet Ok(result) => match result { - PingResult::Ping { rtt, ttl, id } => { + PingResult::Ping { rtt, id } => { if (id as usize) < states.len() { - states[id as usize] = State::Received { rtt, ttl }; + states[id as usize] = State::Received { rtt }; } } PingResult::NoPingErr { id } => { -- cgit v1.3-2-g11bf