diff options
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 9b5ebeda20..dec33e88ee 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -540,7 +540,7 @@ static void dhcp_handler(sd_dhcp_client *client, int event, void *userdata) { addr->family = AF_INET; addr->in_addr.in = address; addr->prefixlen = prefixlen; - addr->netmask = netmask; + addr->broadcast.s_addr = address.s_addr | ~netmask.s_addr; r = route_new_dynamic(&rt); if (r < 0) { |