Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e91a47ebb130b90790c7a8c625ade4dcea246842
Commit:     e91a47ebb130b90790c7a8c625ade4dcea246842
Parent:     71ff6c0a857d11e70aec0c8f1e0d4ae9a45dd468
Author:     Mitsuru Chinen <[EMAIL PROTECTED]>
AuthorDate: Mon Apr 30 00:45:49 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Apr 30 00:58:22 2007 -0700

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 324e7e0..63ab523 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;
                }
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to