mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
network: dhcp4: also apply RouteMetric= setting in [DHCPv4] to prefix route
This commit is contained in:
parent
c4ff0629dd
commit
415deef9c3
@ -893,6 +893,7 @@ static int dhcp4_update_address(Link *link, bool announce) {
|
||||
if (prefixlen <= 30)
|
||||
addr->broadcast.s_addr = address.s_addr | ~netmask.s_addr;
|
||||
SET_FLAG(addr->flags, IFA_F_NOPREFIXROUTE, !link_prefixroute(link));
|
||||
addr->route_metric = link->network->dhcp_route_metric;
|
||||
|
||||
/* allow reusing an existing address and simply update its lifetime
|
||||
* in case it already exists */
|
||||
|
Loading…
x
Reference in New Issue
Block a user