Commit:     ca46f9c834913fc5d5c196d70673375cdaba6b56
Parent:     73afc9069289bdb77cf0c81cb9775dcb63894bbe
Author:     Mitsuru Chinen <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 5 22:31:47 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Fri Dec 7 01:06:30 2007 -0800

    [IPv6] SNMP: Increment OutNoRoutes when connecting to unreachable network
    IPv6 stack doesn't increment OutNoRoutes counter when IP datagrams
    is being discarded because no route could be found to transmit them
    to their destination. IPv6 stack should increment the counter.
    Incidentally, IPv4 stack increments that counter in such situation.
    Signed-off-by: Mitsuru Chinen <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/ipv6/ip6_output.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 86e1835..6338a9c 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -933,6 +933,8 @@ static int ip6_dst_lookup_tail(struct sock *sk,
        return 0;
+       if (err == -ENETUNREACH)
        *dst = NULL;
        return err;
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

Reply via email to