Correct comment about ICMP ID
This commit is contained in:
1 parent
2dae569088
commit
999987d157
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user