Commit 557e92ef authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller

[IPV6] ROUTE: Prefer reachable nexthop only if the caller requests.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent ea73ee23
...@@ -349,9 +349,7 @@ static int rt6_score_route(struct rt6_info *rt, int oif, ...@@ -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; m |= IPV6_DECODE_PREF(IPV6_EXTRACT_PREF(rt->rt6i_flags)) << 2;
#endif #endif
n = rt6_check_neigh(rt); n = rt6_check_neigh(rt);
if (n > 1) if (!n && (strict & RT6_LOOKUP_F_REACHABLE))
m |= 16;
else if (!n && strict & RT6_LOOKUP_F_REACHABLE)
return -1; return -1;
return m; return m;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment