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:
parent
e9c6da3868
commit
f1eca3774d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user