mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
network: route: mask lower bits of destination or source prefix
Let's gracefully handle user's misconfiguration, e.g. Destination=192.168.0.1/24
This commit is contained in:
@@ -2124,6 +2124,8 @@ int config_parse_destination(
|
||||
return 0;
|
||||
}
|
||||
|
||||
(void) in_addr_mask(n->family, buffer, *prefixlen);
|
||||
|
||||
TAKE_PTR(n);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user