1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-08 21:17:47 +03: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:
Yu Watanabe 2021-12-09 07:01:47 +09:00
parent e944711fba
commit 72fa19239d

View File

@ -2124,6 +2124,8 @@ int config_parse_destination(
return 0;
}
(void) in_addr_mask(n->family, buffer, *prefixlen);
TAKE_PTR(n);
return 0;
}