summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp6.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-04-08 02:29:52 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-04-09 08:15:34 +0200
commit8cd37e4354a5993c8bc600f481c4c0cc6c61eb91 (patch)
tree60319afe3ab49525b050e8d2f30b0796ea6a4d14 /src/network/networkd-dhcp6.c
parent708b299203b4723616ae28a9dec4f77fb06543f7 (diff)
downloadsystemd-8cd37e4354a5993c8bc600f481c4c0cc6c61eb91.tar.gz
network: do not require DHCPv6 addresses when UseAddress=no
Follow-up for 1536b7b2d00819615bf8eba194de7ccd20c3689f. Fixes #19196.
Diffstat (limited to 'src/network/networkd-dhcp6.c')
-rw-r--r--src/network/networkd-dhcp6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c
index 72bb46b186..aa077d6219 100644
--- a/src/network/networkd-dhcp6.c
+++ b/src/network/networkd-dhcp6.c
@@ -25,6 +25,13 @@
#include "radv-internal.h"
#include "web-util.h"
+bool link_dhcp6_with_address_enabled(Link *link) {
+ if (!link_dhcp6_enabled(link))
+ return false;
+
+ return link->network->dhcp6_use_address;
+}
+
bool link_dhcp6_pd_is_enabled(Link *link) {
assert(link);