aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
authorMitsuru Chinen <mitch@linux.vnet.ibm.com>2007-12-06 01:31:47 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-12-07 04:06:30 -0500
commitca46f9c834913fc5d5c196d70673375cdaba6b56 (patch)
treef073198141ef0df8bbc4d460755cead5a1b50447 /net/ipv6/ip6_output.c
parent73afc9069289bdb77cf0c81cb9775dcb63894bbe (diff)
[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 <mitch@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 86e1835ce4e4..6338a9c1aa14 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,
933 return 0; 933 return 0;
934 934
935out_err_release: 935out_err_release:
936 if (err == -ENETUNREACH)
937 IP6_INC_STATS_BH(NULL, IPSTATS_MIB_OUTNOROUTES);
936 dst_release(*dst); 938 dst_release(*dst);
937 *dst = NULL; 939 *dst = NULL;
938 return err; 940 return err;