From 999987d1572ad4384b1a352efbb6815f94e5ebd6 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Mon, 3 Oct 2022 14:21:12 +0200 Subject: [PATCH] Correct comment about ICMP ID --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 06a08db..161077d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,8 +60,8 @@ fn main() -> ExitCode { } }; - // The identifier field in ICMP is only 4 bytes - // so take the last 4 bytes of the PID as the ID + // The identifier field in ICMP is only 2 bytes + // so take the last 2 bytes of the PID as the ID let id = (process::id() & 0xFFFF) as u16; // Create data structures shared by different threads