From bd6f42f3008990bbed4c942e8657773bdeaee3d4 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 18 Sep 2019 10:54:13 +0200 Subject: [PATCH] device: reset ip6_mtu on cleanup ip6_mtu contains the MTU received through IPv6 autoconfiguration; it should be reset when the connection is deactivated. https://bugzilla.redhat.com/show_bug.cgi?id=1753128 (cherry picked from commit 353c7c95c1c664c024c4267e67ed2d4b57b44437) (cherry picked from commit f35783c3fba244fea926528bc6d0a2ba4d1c44ad) --- src/devices/nm-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index fb0b7a63f4..9115a06702 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -14575,6 +14575,7 @@ nm_device_cleanup (NMDevice *self, NMDeviceStateReason reason, CleanupType clean } priv->mtu_source = NM_DEVICE_MTU_SOURCE_NONE; + priv->ip6_mtu = 0; if (priv->mtu_initial || priv->ip6_mtu_initial) { ifindex = nm_device_get_ip_ifindex (self);