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:
parent
e3921193f9
commit
894548dfd4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user