1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

networkd-radv: Set RDNSS information on Router Advertisement enabling

This commit is contained in:
Patrik Flykt 2017-08-14 12:53:12 +03:00
parent e9c6da3868
commit f1eca3774d

View File

@ -75,5 +75,15 @@ int radv_configure(Link *link) {
return r;
}
if (link->network->router_dns) {
r = sd_radv_set_rdnss(link->radv,
DIV_ROUND_UP(link->network->router_dns_lifetime_usec,
USEC_PER_SEC),
link->network->router_dns,
link->network->n_router_dns);
if (r < 0)
return r;
}
return 0;
}