]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: add LINUX_MIB_IPRPFILTER snmp counter
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 2 Jun 2010 12:05:27 +0000 (12:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2010 10:18:19 +0000 (03:18 -0700)
commit832f67a400b1ef9f5c7564833c3571bf95a4759f
treee7908b1ccf1cfef6bdeb7cac4c83f6d2ad2be54e
parentc625f7ad6f6a7a258482a1e5dc141836fbf1b64e
ipv4: add LINUX_MIB_IPRPFILTER snmp counter

Christoph Lameter mentioned that packets could be dropped in input path
because of rp_filter settings, without any SNMP counter being
incremented. System administrator can have a hard time to track the
problem.

This patch introduces a new counter, LINUX_MIB_IPRPFILTER, incremented
each time we drop a packet because Reverse Path Filter triggers.

(We receive an IPv4 datagram on a given interface, and find the route to
send an answer would use another interface)

netstat -s | grep IPReversePathFilter
    IPReversePathFilter: 21714

Reported-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/snmp.h
net/ipv4/fib_frontend.c
net/ipv4/ip_input.c
net/ipv4/proc.c
net/ipv4/route.c