mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 14:30:18 +01:00
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.
(cherry picked from commit 5be69ba794)
This commit is contained in:
parent
a7322eaa5d
commit
14cfffa64c
1 changed files with 3 additions and 0 deletions
|
|
@ -6337,6 +6337,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue