[IPv6] SNMP: Increment OutNoRoutes when connecting to unreachable network
[safe/jmp/linux-2.6] / net / ipv6 / ip6_output.c
index 86e1835..6338a9c 100644 (file)
@@ -933,6 +933,8 @@ static int ip6_dst_lookup_tail(struct sock *sk,
        return 0;
 
 out_err_release:
+       if (err == -ENETUNREACH)
+               IP6_INC_STATS_BH(NULL, IPSTATS_MIB_OUTNOROUTES);
        dst_release(*dst);
        *dst = NULL;
        return err;