diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 7b9c82de11cc9388b070992af610e5fd14b66333..5e26d61867b21d1fed237c5e23b25a1feedb6123 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -234,6 +234,7 @@ static inline bool ipv6_anycast_destination(const struct dst_entry *dst, return rt->rt6i_flags & RTF_ANYCAST || (rt->rt6i_dst.plen < 127 && + !(rt->rt6i_flags & (RTF_GATEWAY | RTF_NONEXTHOP)) && ipv6_addr_equal(&rt->rt6i_dst.addr, daddr)); }