summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-06-11 15:16:57 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-06-11 15:34:59 +0200
commit5be69ba79470f35ca2b10f0e189a0a5a3fac6f28 (patch)
tree74443219245bcb63d073a63cf258e3570b0e199e
parenta4c14895072da61ad790551111e770e705897ba5 (diff)
downloadNetworkManager-5be69ba79470f35ca2b10f0e189a0a5a3fac6f28.tar.gz
device: reset cached route tables when starting new activation
The values cached in the device may be stale when we start a new activation because in a disconnected state we might have called ip_config_merge_and_apply() which cached the main table value.
-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 97c6022cfc..8a636a4f1f 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -6456,6 +6456,9 @@ activate_stage1_device_prepare (NMDevice *self)
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
NMActStageReturn ret = NM_ACT_STAGE_RETURN_SUCCESS;
+ priv->v4_route_table_initialized = FALSE;
+ priv->v6_route_table_initialized = FALSE;
+
_set_ip_state (self, AF_INET, NM_DEVICE_IP_STATE_NONE);
_set_ip_state (self, AF_INET6, NM_DEVICE_IP_STATE_NONE);