projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ff6c0
)
[IPV4] SNMP: Support InNoRoutes
author
Mitsuru Chinen
<mitch@linux.vnet.ibm.com>
Mon, 30 Apr 2007 07:45:49 +0000
(
00:45
-0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 30 Apr 2007 07:58:22 +0000
(
00:58
-0700)
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>
net/ipv4/ip_input.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ip_input.c
b/net/ipv4/ip_input.c
index 324e7e0fdb2aa506f9dcb1c80afb374dae7cab0d..63ab5230c6117ba4315c599b816105f395416ecd 100644
(file)
--- 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;
}
}