From: Yu Watanabe Date: Mon, 6 Dec 2021 16:58:35 +0000 (+0900) Subject: network: state-file: honor dhcp6_use_domains flag X-Git-Tag: v250-rc1~52^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2756fb24ee1f4a91ef05bcd260ea9429481d2202;p=thirdparty%2Fsystemd.git network: state-file: honor dhcp6_use_domains flag --- diff --git a/src/network/networkd-state-file.c b/src/network/networkd-state-file.c index 7a0abc5f5b2..c8b491ac1a9 100644 --- a/src/network/networkd-state-file.c +++ b/src/network/networkd-state-file.c @@ -564,6 +564,9 @@ int link_save(Link *link) { fputs_with_space(f, dhcp_domainname, NULL, &space); if (dhcp_domains) fputstrv(f, dhcp_domains, NULL, &space); + } + + if (link->network->dhcp6_use_domains == DHCP_USE_DOMAINS_YES) { if (dhcp6_domains) fputstrv(f, dhcp6_domains, NULL, &space); } @@ -589,6 +592,9 @@ int link_save(Link *link) { fputs_with_space(f, dhcp_domainname, NULL, &space); if (dhcp_domains) fputstrv(f, dhcp_domains, NULL, &space); + } + + if (link->network->dhcp6_use_domains == DHCP_USE_DOMAINS_ROUTE) { if (dhcp6_domains) fputstrv(f, dhcp6_domains, NULL, &space); }