network/ndisc: NDisc Route option with 0 prefixlength is valid
Fixes #31606.
This commit is contained in:
@@ -877,11 +877,6 @@ static int ndisc_router_process_route(Link *link, sd_ndisc_router *rt) {
|
||||
if (r < 0)
|
||||
return log_link_warning_errno(link, r, "Failed to get route prefix length: %m");
|
||||
|
||||
if (in6_addr_is_null(&dst) && prefixlen == 0) {
|
||||
log_link_debug(link, "Route prefix is ::/0, ignoring");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (in6_prefix_is_filtered(&dst, prefixlen,
|
||||
link->network->ndisc_allow_listed_route_prefix,
|
||||
link->network->ndisc_deny_listed_route_prefix)) {
|
||||
|
||||
Reference in New Issue
Block a user