Re: ICMP statistics incomplete (patch)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 20 Aug 1997 01:29:28 +0100 (BST)


> I just noticed that the field icmpOutEchos is never increased. Obviously this
> is because ping sends raw IP and doesn't go through the icmp protocol code.
> Here's a not-very-nice patch to detect ICMP Echo Request packets in
> raw_sendto()

Its inadequate to track those stats. The kernel reports only what it does
directly. (eg the Ip stats dont count SOCK_PACKET hand crafted IP).