1
1
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:
Patrik Flykt 2017-08-21 13:44:25 +03:00
parent e965d6aba3
commit 5e35aa815b

View File

@ -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;
}