You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ipv6: reuse rt6_need_strict
Move the whole rt6_need_strict as static inline into ip6_route.h, so that it can be reused Signed-off-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4aa956d801
commit
60ea37f7a5
@@ -374,12 +374,6 @@ static bool rt6_check_expired(const struct rt6_info *rt)
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool rt6_need_strict(const struct in6_addr *daddr)
|
||||
{
|
||||
return ipv6_addr_type(daddr) &
|
||||
(IPV6_ADDR_MULTICAST | IPV6_ADDR_LINKLOCAL | IPV6_ADDR_LOOPBACK);
|
||||
}
|
||||
|
||||
/* Multipath route selection:
|
||||
* Hash based function using packet header and flowlabel.
|
||||
* Adapted from fib_info_hashfn()
|
||||
|
||||
Reference in New Issue
Block a user