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:
parent
e944711fba
commit
72fa19239d
@ -2124,6 +2124,8 @@ int config_parse_destination(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(void) in_addr_mask(n->family, buffer, *prefixlen);
|
||||||
|
|
||||||
TAKE_PTR(n);
|
TAKE_PTR(n);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user