diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-11-06 12:45:45 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-21 19:16:24 -0500 |
commit | 557e92efd44878beccd08d5dd54ed343be0e5819 (patch) | |
tree | e0a2d87e3140e29f6c8ad0f533efa1bc1ffb867e | |
parent | ea73ee23c43d6eb75f88c4fc9e1230b44673c0d2 (diff) |
[IPV6] ROUTE: Prefer reachable nexthop only if the caller requests.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
-rw-r--r-- | net/ipv6/route.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 5132821e89aa..a972a6641ed5 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -349,9 +349,7 @@ static int rt6_score_route(struct rt6_info *rt, int oif, | |||
349 | m |= IPV6_DECODE_PREF(IPV6_EXTRACT_PREF(rt->rt6i_flags)) << 2; | 349 | m |= IPV6_DECODE_PREF(IPV6_EXTRACT_PREF(rt->rt6i_flags)) << 2; |
350 | #endif | 350 | #endif |
351 | n = rt6_check_neigh(rt); | 351 | n = rt6_check_neigh(rt); |
352 | if (n > 1) | 352 | if (!n && (strict & RT6_LOOKUP_F_REACHABLE)) |
353 | m |= 16; | ||
354 | else if (!n && strict & RT6_LOOKUP_F_REACHABLE) | ||
355 | return -1; | 353 | return -1; |
356 | return m; | 354 | return m; |
357 | } | 355 | } |