From 9bc7278da369d9dd69cc7687a5d050dfea793faa Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 16 May 2022 17:53:51 +0200 Subject: [PATCH] device: don't require a hardware address for DHCPv6 DHCPv4 requires a hardware address, while DHCPv6 does not. Anyway, the DHCP manager already checks that an address is available when needed, so drop the check here. Fixes: 58287cbcc0c8 ('core: rework IP configuration in NetworkManager using layer 3 configuration') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1228 --- src/core/devices/nm-device.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index f4171630a2..cc83c046fd 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -10185,13 +10185,6 @@ _dev_ipdhcpx_start(NMDevice *self, int addr_family) hwaddr = nmp_link_address_get_as_bytes(&pllink->l_address); - if (!IS_IPv4) { - if (!hwaddr) { - fail_reason = "interface has no MAC address to start DHCPv6"; - goto out_fail; - } - } - request_broadcast = FALSE; if (pllink) { str = nmp_object_link_udev_device_get_property_value(NMP_OBJECT_UP_CAST(pllink),