Correct comment about ICMP ID

This commit is contained in:
Nils Andreas Svee committed 2022-10-03 14:21:12 +02:00
1 parent 2dae569088
commit 999987d157
1 file changed
+2 -2
+2 -2
View File
@@ -60,8 +60,8 @@ fn main() -> ExitCode {
} }
}; };
// The identifier field in ICMP is only 4 bytes // The identifier field in ICMP is only 2 bytes
// so take the last 4 bytes of the PID as the ID // so take the last 2 bytes of the PID as the ID
let id = (process::id() & 0xFFFF) as u16; let id = (process::id() & 0xFFFF) as u16;
// Create data structures shared by different threads // Create data structures shared by different threads