networkd: ndisc - always configure dhcp6 client

The ndisc client may trigger the dhcpv6 client to be started (this is the common case),
so we should allocate the dhcpv6 client whenever we allocate the ndisc one.
This commit is contained in:
Tom Gundersen 2015-11-16 16:47:18 +01:00
parent 63348d13fa
commit 62379e884e
2 changed files with 5 additions and 1 deletions

View File

@ -211,6 +211,9 @@ int dhcp6_configure(Link *link) {
assert(link);
if (link->dhcp6_client)
return 0;
r = sd_dhcp6_client_new(&client);
if (r < 0)
return r;

View File

@ -2089,7 +2089,8 @@ static int link_configure(Link *link) {
return r;
}
if (link_dhcp6_enabled(link)) {
if (link_dhcp6_enabled(link) ||
link_ipv6_accept_ra_enabled(link)) {
r = dhcp6_configure(link);
if (r < 0)
return r;