projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5896a9e
)
network: state-file: honor dhcp6_use_domains flag
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 16:58:35 +0000
(
01:58
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 16:58:35 +0000
(
01:58
+0900)
src/network/networkd-state-file.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-state-file.c
b/src/network/networkd-state-file.c
index 7a0abc5f5b2ac535ef0f6c49f03cf6db145a4378..c8b491ac1a949d7bd570a6171b4ca5e3e7148213 100644
(file)
--- 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);
}