summaryrefslogtreecommitdiff
path: root/src/nm-types.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-08-30 11:46:42 +0200
committerThomas Haller <thaller@redhat.com>2017-09-08 11:11:21 +0200
commit77ec302714795f905301d500b9aab6c88001f32e (patch)
tree3e55697d2e25f6b4db765178e11cc0805e4f6a3f /src/nm-types.h
parent0918b4914d03ec14f71b3e56178c44a6ec648b34 (diff)
downloadNetworkManager-77ec302714795f905301d500b9aab6c88001f32e.tar.gz
core: rework handling of default-routes and drop NMDefaultRouteManagerth/platform-route-pt4
Remove NMDefaultRouteManager. Instead, add the default-route to the NMIP4Config/NMIP6Config instance. This basically reverts commit e8824f6a5205ffcf761abd3e0897a22b254c7797. We added NMDefaultRouteManager because we used the corresponding to `ip route replace` when configuring routes. That would replace default-routes on other interfaces so we needed a central manager to coordinate routes. Now, we use the corresponding of `ip route append` to configure routes, and each interface can configure routes indepdentently. In NMDevice, when creating the default-route, ignore @auto_method for external devices. We shall not touch these devices. Especially the code in NMPolicy regarding selection of the best-device seems wrong. It probably needs further adjustments in the future. Especially get_best_ip_config() should be replaced, because this distinction VPN vs. devices seems wrong to me. Thereby, remove the @ignore_never_default argument. It was added by commit bb750260045239ab85574366bae8102eff8058cc, I don't think it's needed anymore. This brings another change. Now that we track default-routes in NMIP4Config/NMIP6Config, they are also exposed on D-Bus like regular routes. I think that makes sense, but it is a change in behavior, as previously such routes were not exposed there.
Diffstat (limited to 'src/nm-types.h')
-rw-r--r--src/nm-types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nm-types.h b/src/nm-types.h
index 64d718b1ac..bd5e249baa 100644
--- a/src/nm-types.h
+++ b/src/nm-types.h
@@ -38,7 +38,6 @@ typedef struct _NMConfigData NMConfigData;
typedef struct _NMArpingManager NMArpingManager;
typedef struct _NMConnectionProvider NMConnectionProvider;
typedef struct _NMConnectivity NMConnectivity;
-typedef struct _NMDefaultRouteManager NMDefaultRouteManager;
typedef struct _NMDevice NMDevice;
typedef struct _NMDhcp4Config NMDhcp4Config;
typedef struct _NMDhcp6Config NMDhcp6Config;