diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-07-13 21:56:07 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-07-13 23:51:59 +0200 |
commit | 8f4f6307313ccad0b068697bb054a105e5a50e92 (patch) | |
tree | 72311404f38873be3ec18d0e7404abdf90cb3359 /src/network/networkd-dhcp4.c | |
parent | Do not fail EFI build with newer binutils (diff) | |
download | systemd-8f4f6307313ccad0b068697bb054a105e5a50e92.tar.xz systemd-8f4f6307313ccad0b068697bb054a105e5a50e92.zip |
Revert "network: configure DHCP clients after MAC address is assigned"
This reverts commit f42d41cc5f9cd8cac538a1c30fda04d346b5bae2.
DHCPv6 client does not require MAC address.
DHCPv4 client will be handled in a different way in a later commit.
Partially fixes #23546.
Diffstat (limited to 'src/network/networkd-dhcp4.c')
-rw-r--r-- | src/network/networkd-dhcp4.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index 5770b48767..20db4f5f83 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -1545,11 +1545,6 @@ static int dhcp4_process_request(Request *req, Link *link, void *userdata) { if (!IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) return 0; - if (!IN_SET(link->hw_addr.length, ETH_ALEN, INFINIBAND_ALEN) || - hw_addr_is_null(&link->hw_addr)) - /* No MAC address is assigned to the hardware, or non-supported MAC address length. */ - return 0; - r = dhcp4_configure_duid(link); if (r <= 0) return r; |