From 9326902cf145f3795a00b68b84e7e32a113e222d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sch=C3=BCtz?= Date: Thu, 12 Apr 2018 15:19:20 +0200 Subject: [PATCH] dhcp: don't enforce broadcast flag Requesting broadcast replies from the DHCP server can be problematic in filtered environments like some wireless networks. Don't override the default of using unicast. This matches the behaviour of the external DHCP clients. https://github.com/NetworkManager/NetworkManager/pull/93 --- src/dhcp/nm-dhcp-systemd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dhcp/nm-dhcp-systemd.c b/src/dhcp/nm-dhcp-systemd.c index fc8229f3ec..4f37f0690b 100644 --- a/src/dhcp/nm-dhcp-systemd.c +++ b/src/dhcp/nm-dhcp-systemd.c @@ -630,12 +630,6 @@ ip4_start (NMDhcpClient *client, const char *dhcp_anycast_addr, const char *last goto error; } - r = sd_dhcp_client_set_request_broadcast (priv->client4, true); - if (r < 0) { - _LOGW ("failed to enable broadcast mode (%d)", r); - goto error; - } - dhcp_lease_load (&lease, priv->lease_file); if (last_ip4_address)