sd-dhcp-client: make request broadcasts opt-in

System Internals / systemd - Tom Gundersen [jklm.no] - 15 July 2014 11:55 UTC

It appears there is no good way to decide whether or not broadcasts should be enabled, there is hardware that must have broadcast, and there are networks that only allow unicast. So we give up and make this configurable.

By default, unicast is used, but if the kernel were to inform us abotu certain interfaces requiring broadcast, we could change this to opt-in by default in those cases.

f5de5b0 sd-dhcp-client: make request broadcasts opt-in
man/systemd.network.xml | 11 ++++++++++-
src/libsystemd-network/sd-dhcp-client.c | 18 ++++++++++++++++--
src/network/networkd-link.c | 4 ++++
src/network/networkd-network-gperf.gperf | 1 +
src/network/networkd.h | 1 +
src/systemd/sd-dhcp-client.h | 1 +
6 files changed, 33 insertions(+), 3 deletions(-)

Upstream: github.com


  • Share