mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
[IPV6] ROUTE: Prefer reachable nexthop only if the caller requests.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
parent
ea73ee23c4
commit
557e92efd4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue