]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/route.c
[IPV4]: Snmpv2 Mib IP counter ipInAddrErrors support
authorDietmar Eggemann <dietmar.eggemann@gmx.de>
Tue, 28 Jun 2005 20:06:23 +0000 (13:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2005 20:06:23 +0000 (13:06 -0700)
commit2c2910a401f1ce2ac9136171e7522e731e1a2a8c
treef7d9bc402481b402539f598cfa20646ec7561efe
parentae9cda5d65f3d8a495241cbdcc2d56f721c83cc3
[IPV4]: Snmpv2 Mib IP counter ipInAddrErrors support

I followed Thomas' proposal to see every martian destination as a case
where the ipInAddrErrors counter has to be incremented. There are
two advantages by doing so: (1) The relation between the ipInReceive
counter and all the other ipInXXX counters is more accurate in the
case the RTN_UNICAST code check fails and (2) it makes the code in
ip_route_input_slow easier.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c
net/ipv4/route.c