Skip to content

Commit

Permalink
[IPV6] ROUTE: Prefer reachable nexthop only if the caller requests.
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Nov 22, 2006
1 parent ea73ee2 commit 557e92e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/ipv6/route.c
Original file line number Diff line number Diff line change
@@ -349,9 +349,7 @@ static int rt6_score_route(struct rt6_info *rt, int oif,
m |= IPV6_DECODE_PREF(IPV6_EXTRACT_PREF(rt->rt6i_flags)) << 2;
#endif
n = rt6_check_neigh(rt);
if (n > 1)
m |= 16;
else if (!n && strict & RT6_LOOKUP_F_REACHABLE)
if (!n && (strict & RT6_LOOKUP_F_REACHABLE))
return -1;
return m;
}

0 comments on commit 557e92e

Please sign in to comment.