network: radv: mask unnecessary part of specified addresses
This commit is contained in:
@@ -731,6 +731,8 @@ int config_parse_prefix(
|
||||
"Prefix is invalid, ignoring assignment: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
(void) in6_addr_mask(&a.in6, p->prefixlen);
|
||||
p->prefix = a.in6;
|
||||
|
||||
TAKE_PTR(p);
|
||||
@@ -940,6 +942,8 @@ int config_parse_route_prefix(
|
||||
"Route prefix is invalid, ignoring assignment: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
(void) in6_addr_mask(&a.in6, p->prefixlen);
|
||||
p->prefix = a.in6;
|
||||
|
||||
TAKE_PTR(p);
|
||||
|
||||
Reference in New Issue
Block a user