summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2020-06-26 11:37:01 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2020-06-28 16:57:38 +0200
commit071104124b1159bf2e82ac62b9f0b03de64eb38d (patch)
tree5213165b94095feb753221f555a36586171730cb
parentcfe349b971411c144da610c0b7674c507dbd8c4d (diff)
downloadNetworkManager-071104124b1159bf2e82ac62b9f0b03de64eb38d.tar.gz
device: clean up exported IP6 config when flushing addresses
After flushing addresses and routes, it's also necessary to update the exported IP6 configuration. https://bugzilla.redhat.com/show_bug.cgi?id=1848888 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/551 Fixes: e302f5ff77a9 ('device: flush IP configuration of slaves during activation')
-rw-r--r--src/devices/nm-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 99b3c5f68c..90178b68fe 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -10862,8 +10862,11 @@ act_stage3_ip_config_start (NMDevice *self,
platform = nm_device_get_platform (self);
if (ifindex > 0) {
+ gs_unref_object NMIP6Config *config = nm_device_ip6_config_new (self);
+
nm_platform_ip_route_flush (platform, AF_INET6, ifindex);
nm_platform_ip_address_flush (platform, AF_INET6, ifindex);
+ nm_device_set_ip_config (self, AF_INET6, (NMIPConfig *) config, FALSE, NULL);
}
} else {
gboolean ipv6ll_handle_old = priv->ipv6ll_handle;