]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/dhcp6: deem DHCPv6 configuration to be finished even if no IA_NA is provided
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Feb 2024 20:52:40 +0000 (05:52 +0900)
committerLuca Boccassi <bluca@debian.org>
Sat, 17 Feb 2024 11:48:25 +0000 (11:48 +0000)
Follow-up for fc4aa64c2d7bf1443bf30b66d334e33addb0d27a.

Otherwise, even if we request no address, Link.dhcp6_configured stuck on
false.

src/network/networkd-dhcp6.c

index de4588c93e0fdd758d88228bc001814288f21fd4..27081e9d310d7ef8b77dd306f8c06f19f5a41a2b 100644 (file)
@@ -102,6 +102,7 @@ int dhcp6_check_ready(Link *link) {
         }
 
         if (link->network->dhcp6_use_address &&
+            sd_dhcp6_lease_has_address(link->dhcp6_lease) &&
             !link_check_addresses_ready(link, NETWORK_CONFIG_SOURCE_DHCP6)) {
                 Address *address;