mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-27 03:21:32 +03:00
networkd-radv: Set DNSSL information on Router Advertisement enabling
This commit is contained in:
parent
e965d6aba3
commit
5e35aa815b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user