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