summaryrefslogtreecommitdiff
path: root/src/platform/nm-platform.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-07-19 13:03:28 +0200
committerThomas Haller <thaller@redhat.com>2017-08-03 18:32:59 +0200
commit88da13f0b22a7c3b7203f4acb77a81007190998d (patch)
tree5d6f83093aaedff18fbba891e6ef2a3a2c8ee42f /src/platform/nm-platform.h
parenta041e431dac5ddcdb5946634082cb626f3c67340 (diff)
downloadNetworkManager-88da13f0b22a7c3b7203f4acb77a81007190998d.tar.gz
platform: use correct gateway for deleting route
Routes may only differ by their gateway. When deleting a route, we must specify the exact gateway to delete.
Diffstat (limited to 'src/platform/nm-platform.h')
-rw-r--r--src/platform/nm-platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index 326abcdf21..3eb21a41bf 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -377,6 +377,8 @@ typedef struct {
struct _NMPlatformIP4Route {
__NMPlatformIPRoute_COMMON;
in_addr_t network;
+
+ /* RTA_GATEWAY. The gateway is part of the primary key for a route */
in_addr_t gateway;
/* RTA_PREFSRC/rtnl_route_get_pref_src(). A value of zero means that
@@ -400,7 +402,10 @@ struct _NMPlatformIP4Route {
struct _NMPlatformIP6Route {
__NMPlatformIPRoute_COMMON;
struct in6_addr network;
+
+ /* RTA_GATEWAY. The gateway is part of the primary key for a route */
struct in6_addr gateway;
+
struct in6_addr pref_src;
struct in6_addr src;
guint8 src_plen;