3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

netconfig: Re-start DHCPv6 client

If lease expired or was not obtained initially, re-start the DHCPv6
client.
This commit is contained in:
Denis Kenzior 2020-11-18 10:39:29 -06:00
parent c46a5d7c84
commit dcaf0150b9

View File

@ -1020,10 +1020,12 @@ static void netconfig_dhcp6_event_handler(struct l_dhcp6_client *client,
case L_DHCP6_CLIENT_EVENT_LEASE_EXPIRED: case L_DHCP6_CLIENT_EVENT_LEASE_EXPIRED:
l_debug("Lease for interface %u expired", netconfig->ifindex); l_debug("Lease for interface %u expired", netconfig->ifindex);
netconfig_set_dns(netconfig); netconfig_set_dns(netconfig);
break;
/* Fall through */
case L_DHCP6_CLIENT_EVENT_NO_LEASE: case L_DHCP6_CLIENT_EVENT_NO_LEASE:
l_error("netconfig: Failed to obtain DHCPv6 lease " if (!l_dhcp6_client_start(netconfig->dhcp6_client))
"for interface %u", netconfig->ifindex); l_error("netconfig: Failed to re-start DHCPv6 client "
"for interface %u", netconfig->ifindex);
break; break;
} }
} }