Chandrashekar M C wrote:
> Later I ran 'ifconfig lo 127.0.0.1'
> Then it started pinging the localhost with the following warning.
> "Warning: unknown ICMP packet received (not echo-reply)"
I have a new theory: the kernel is fine. BusyBox is bonkers.
[root@Linux /root]$ping localhost
PING localhost (127.0.0.1): 56 data bytes
Warning: unknown ICMP packet received (not echo-reply)
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.5 ms
Warning: unknown ICMP packet received (not echo-reply)
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.4 ms
Warning: unknown ICMP packet received (not echo-reply)
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.3 ms
Warning: unknown ICMP packet received (not echo-reply)
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=0.3 ms
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.3/0.5 ms
[root@Linux /root]$realping -v localhost
PING localhost (127.0.0.1): 56 octets data
64 octets from localhost (127.0.0.1): Echo Request
64 octets from 127.0.0.1: icmp_seq=0 ttl=255 time=1.5 ms
64 octets from localhost (127.0.0.1): Echo Request
64 octets from 127.0.0.1: icmp_seq=1 ttl=255 time=1.1 ms
64 octets from localhost (127.0.0.1): Echo Request
64 octets from 127.0.0.1: icmp_seq=2 ttl=255 time=1.1 ms
64 octets from localhost (127.0.0.1): Echo Request
64 octets from 127.0.0.1: icmp_seq=3 ttl=255 time=1.1 ms
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 1.1/1.2/1.5 ms
[root@Linux /root]$realping localhost
PING localhost (127.0.0.1): 56 octets data
64 octets from 127.0.0.1: icmp_seq=0 ttl=255 time=0.4 ms
64 octets from 127.0.0.1: icmp_seq=1 ttl=255 time=0.2 ms
64 octets from 127.0.0.1: icmp_seq=2 ttl=255 time=0.2 ms
64 octets from 127.0.0.1: icmp_seq=3 ttl=255 time=0.2 ms
--- localhost ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.2/0.2/0.4 ms
(`realping' is NetKit ping.)
So essentially, BusyBox ping is telling you that while it had an open
socket for lo, something came in that was not an ICMP "Echo Reply"
message. (Specifically, the something was the ICMP "Echo" message. Given
that the two effectively differ by the value of one field, it really
shouldn't be that much to expect of BusyBox to be able to sort this out.)
I guess I can put the real ping in my ramdisk, to avoid confusion in the
future, though it would be 20K as opposed to a symlink. =(
-jd
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm