Subject: | bug |
Date: | Tue, 25 Feb 2020 16:36:58 +0000 |
To: | "bug-Net-Traceroute-PurePerl [...] rt.cpan.org" <bug-Net-Traceroute-PurePerl [...] rt.cpan.org> |
From: | Ken Cornetet <Ken.Cornetet [...] kimballelectronics.com> |
The code uses the process ID ($$) for an identifier in the ICMP packets to insure that the received packet matches the sent packet. The sending routine stores $$ in two bytes of the packet, and the receiving routine extracts these two bytes and compares to $$. The trouble is that $$ can be larger than a 2 byte integer which causes the receive check to fail if $$ is greater than 0xffff.