]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-network.c
network: enable DHCP broadcast flag if required by interface 19346/head
authorViktor Mihajlovski <mihajlov@linux.ibm.com>
Wed, 14 Apr 2021 11:01:35 +0000 (13:01 +0200)
committerViktor Mihajlovski <mihajlov@linux.ibm.com>
Wed, 21 Apr 2021 16:11:18 +0000 (18:11 +0200)
commite70eca9b48df906a3e2d9f36d3acd4b5cb9ae553
tree158f5af06f773e2b4e36b4c5a658af55a56f6718
parent5c9f1c68f032287da3fa7f5c4c08dfb0bf340c0b
network: enable DHCP broadcast flag if required by interface

Some interfaces require that the DHCPOFFER message is sent via broadcast
if they can't receive unicast messages before they've been configured
with an IP address.

E.g., s390 ccwgroup network interfaces operating in layer3 mode face
this limitation. This can prevent the interfaces from receiving an
IP address via DHCP, if the have been configured for layer3.

To allow DHCP over such interfaces, we're introducing a new device
property ID_NET_DHCP_BROADCAST which can be set for those.
The networkd DHCP client will check whether this property is set
for an interface, and if so will set the broadcast flag, unless
the network configuration for the interface has an explicit
RequestBroadcast setting.

Besides that, we're adding a udev rule to set this device property
for ccwgroup devices operating in layer3 mode, which is the case
if the ID_NET_DRIVER property is qeth_l3.

Supercedes #18829
rules.d/81-net-dhcp.rules [new file with mode: 0644]
rules.d/meson.build
src/network/networkd-dhcp4.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h