summaryrefslogtreecommitdiff
path: root/src/devices/nm-device.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2020-05-26 19:05:31 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2020-05-28 18:38:27 +0200
commit49305559dc2a1244a3c9c80e9cec2a0d0c25960d (patch)
tree457aaa9f5cd0d2b5a4150784646f97bc74b0c113 /src/devices/nm-device.c
parent1d6b9953ad3b7cbfe593da06aac435c95e562a30 (diff)
downloadNetworkManager-49305559dc2a1244a3c9c80e9cec2a0d0c25960d.tar.gz
core: clear IPv6 kernel token when deactivating a devicebg/ipv6-kernel-token-rh1819680
Clear the IPv6 kernel token when deactivating a device.
Diffstat (limited to 'src/devices/nm-device.c')
-rw-r--r--src/devices/nm-device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 1a3efaefec..9b018ccc8c 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -15730,11 +15730,13 @@ nm_device_cleanup (NMDevice *self, NMDeviceStateReason reason, CleanupType clean
/* Take out any entries in the routing table and any IP address the device had. */
if (ifindex > 0) {
NMPlatform *platform = nm_device_get_platform (self);
+ NMUtilsIPv6IfaceId iid = { };
nm_platform_ip_route_flush (platform, AF_UNSPEC, ifindex);
nm_platform_ip_address_flush (platform, AF_UNSPEC, ifindex);
nm_platform_tfilter_sync (platform, ifindex, NULL);
nm_platform_qdisc_sync (platform, ifindex, NULL);
+ set_ipv6_token (self, iid, "::");
}
}