diff options
author | Mitsuru Chinen <mitch@linux.vnet.ibm.com> | 2007-04-30 11:45:49 +0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-30 11:58:22 +0400 |
commit | e91a47ebb130b90790c7a8c625ade4dcea246842 (patch) | |
tree | 1a9bff48b866c13c4b506ec3e18b3d2d5397fb27 /net/ipv4/ip_input.c | |
parent | 71ff6c0a857d11e70aec0c8f1e0d4ae9a45dd468 (diff) | |
download | linux-e91a47ebb130b90790c7a8c625ade4dcea246842.tar.xz |
[IPV4] SNMP: Support InNoRoutes
An IP datagram which is being discarded because of no routes in the
forwarding path should be counted as InNoRoutes.
Signed-off-by: Mitsuru Chinen <mitch@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 324e7e0fdb2a..63ab5230c611 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c @@ -340,6 +340,8 @@ static inline int ip_rcv_finish(struct sk_buff *skb) if (unlikely(err)) { if (err == -EHOSTUNREACH) IP_INC_STATS_BH(IPSTATS_MIB_INADDRERRORS); + else if (err == -ENETUNREACH) + IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES); goto drop; } } |