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

netconfig: Also set the domains obtained from IPv6

This commit is contained in:
Denis Kenzior 2020-12-02 11:00:12 -06:00
parent 967b7e75e3
commit 278abc66be

View File

@ -698,6 +698,7 @@ static void netconfig_ipv6_ifaddr_add_cmd_cb(int error, uint16_t type,
}
netconfig_set_dns(netconfig);
netconfig_set_domains(netconfig);
}
static void netconfig_ifaddr_del_cmd_cb(int error, uint16_t type,
@ -787,10 +788,12 @@ static void netconfig_dhcp6_event_handler(struct l_dhcp6_client *client,
case L_DHCP6_CLIENT_EVENT_LEASE_OBTAINED:
case L_DHCP6_CLIENT_EVENT_LEASE_RENEWED:
netconfig_set_dns(netconfig);
netconfig_set_domains(netconfig);
break;
case L_DHCP6_CLIENT_EVENT_LEASE_EXPIRED:
l_debug("Lease for interface %u expired", netconfig->ifindex);
netconfig_set_dns(netconfig);
netconfig_set_domains(netconfig);
/* Fall through */
case L_DHCP6_CLIENT_EVENT_NO_LEASE: