]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8aa5156f0557f95e6d25546da47a6d7fc6dd033c
treef7d9bc402481b402539f598cfa20646ec7561efe
parentb6c07e761dbc08eac1bbd558459fe7c275658816
[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