ping: dont increment ICMP_MIB_INERRORS
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 17 Nov 2011 04:40:20 +0000 (04:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 19:38:59 +0000 (14:38 -0500)
commitfb120c0a2775b0d2d095a99ea8432bfb5d444ab2
tree3bbac5493bcb97f2103a405d0f8cb551595d886a
parent282edcece39e08d02c22492d593e4b9b94a65dff
ping: dont increment ICMP_MIB_INERRORS

ping module incorrectly increments ICMP_MIB_INERRORS if feeded with a
frame not belonging to its own sockets.

RFC 2011 states that ICMP_MIB_INERRORS should count "the number of ICMP
messages which the entiry received but determined as having
ICMP-specific errors (bad ICMP checksums, bad length, etc.)."

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c