]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/route.c
[IPV6] ROUTE: Try to use router which is not known unreachable.
[net-next-2.6.git] / net / ipv6 / route.c
index c953466b7afdbde3c77e6494c3f24a46908d9097..5132821e89aa3aa8fb9622ed60990c547bb043c2 100644 (file)
@@ -330,6 +330,8 @@ static int inline rt6_check_neigh(struct rt6_info *rt)
                read_lock_bh(&neigh->lock);
                if (neigh->nud_state & NUD_VALID)
                        m = 2;
+               else if (!(neigh->nud_state & NUD_FAILED))
+                       m = 1;
                read_unlock_bh(&neigh->lock);
        }
        return m;