mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-05-02 14:17:24 +02: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)
|
if (!netconfig)
|
||||||
return false;
|
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);
|
netconfig_destroy(netconfig);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user