mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 02:20:06 +01:00
device: remove the prefix-delegation IP configuration on cleanup
When a device in IPv6 shared mode obtains a prefix, it adds a new l3cd of type L3_CONFIG_DATA_TYPE_PD_6 for that prefix. However, that l3cd is never removed later and so the address lingers on the interface even after the connection goes down. Remove the l3cd on cleanup.
This commit is contained in:
parent
037b14965e
commit
4a8bedcd89
1 changed files with 2 additions and 0 deletions
|
|
@ -13457,6 +13457,8 @@ _dev_ipsharedx_cleanup(NMDevice *self, int addr_family)
|
|||
nm_clear_l3cd(&priv->ipshared_data_4.v4.l3cd);
|
||||
|
||||
_dev_l3_register_l3cds_set_one(self, L3_CONFIG_DATA_TYPE_SHARED_4, NULL, FALSE);
|
||||
} else {
|
||||
_dev_l3_register_l3cds_set_one(self, L3_CONFIG_DATA_TYPE_PD_6, NULL, FALSE);
|
||||
}
|
||||
|
||||
_dev_ipsharedx_set_state(self, addr_family, NM_DEVICE_IP_STATE_NONE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue