projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e965d6a
)
networkd-radv: Set DNSSL information on Router Advertisement enabling
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 21 Aug 2017 10:44:25 +0000
(13:44 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 15 Sep 2017 07:34:57 +0000
(10:34 +0300)
src/network/networkd-radv.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-radv.c
b/src/network/networkd-radv.c
index
d47a2fd
..
6768208
100644
(file)
--- a/
src/network/networkd-radv.c
+++ b/
src/network/networkd-radv.c
@@
-85,5
+85,14
@@
int radv_configure(Link *link) {
return r;
}
+ if (link->network->router_search_domains) {
+ r = sd_radv_set_dnssl(link->radv,
+ DIV_ROUND_UP(link->network->router_dns_lifetime_usec,
+ USEC_PER_SEC),
+ link->network->router_search_domains);
+ if (r < 0)
+ return r;
+ }
+
return 0;
}