3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-03 10:32:33 +01:00

netconfig: Uninstall addresses on interface removal

This commit is contained in:
Tim Kourt 2019-08-16 11:25:37 -07:00 committed by Denis Kenzior
parent e3921193f9
commit 894548dfd4

View File

@ -742,6 +742,14 @@ bool netconfig_ifindex_remove(uint32_t ifindex)
if (!netconfig)
return false;
if (netconfig->station_state != STATION_STATE_DISCONNECTED) {
netconfig_ipv4_select_and_uninstall(netconfig);
/* TODO Uninstall IPv6 addresses. */
resolve_remove(netconfig->ifindex);
}
netconfig_destroy(netconfig);
return true;