summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-11-10 14:23:44 +0100
committerThomas Haller <thaller@redhat.com>2014-11-11 12:21:37 +0100
commit924b7f9157ea241f8ca804cdf765171ec7279419 (patch)
treeafe45e6c1f7e732dbec7eb454bf72db66bbc83bf
parent5f017e96b34d46675af76f84e6b3e1df15fa16dc (diff)
downloadNetworkManager-924b7f9157ea241f8ca804cdf765171ec7279419.tar.gz
platform: add typedef for unions NMPlatformIPXAddress and NMPlatformIPXRoute
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/platform/nm-platform.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index 3514dd084d..34ed384af7 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -175,6 +175,12 @@ struct _NMPlatformIP6Address {
};
G_STATIC_ASSERT (G_STRUCT_OFFSET (NMPlatformIPAddress, address_ptr) == G_STRUCT_OFFSET (NMPlatformIP6Address, address));
+typedef union {
+ NMPlatformIPAddress ax;
+ NMPlatformIP4Address a4;
+ NMPlatformIP6Address a6;
+} NMPlatformIPXAddress;
+
#undef __NMPlatformIPAddress_COMMON
@@ -215,6 +221,12 @@ struct _NMPlatformIP6Route {
};
G_STATIC_ASSERT (G_STRUCT_OFFSET (NMPlatformIPRoute, network_ptr) == G_STRUCT_OFFSET (NMPlatformIP6Route, network));
+typedef union {
+ NMPlatformIPRoute rx;
+ NMPlatformIP4Route r4;
+ NMPlatformIP6Route r6;
+} NMPlatformIPXRoute;
+
#undef __NMPlatformIPRoute_COMMON