summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-05-20 13:14:05 +0200
committerThomas Haller <thaller@redhat.com>2016-05-24 16:01:59 +0200
commit82f2fbf78d1406078432c4a3a1cf61f816018b58 (patch)
tree100c612919f4869530b4a699a700c44fada3e1c6
parenta4a75b638f5cecbfae3f9809f9b535e1f9eaa9a5 (diff)
downloadNetworkManager-82f2fbf78d1406078432c4a3a1cf61f816018b58.tar.gz
platform: reuse nm_ip_addr_zero for a all-zero ethernet MAC address
-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 88cedeffa1..a5cca8ba75 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -96,6 +96,11 @@ typedef struct {
guint8 addr_ptr[1];
in_addr_t addr4;
struct in6_addr addr6;
+
+ /* NMIPAddr is really a union for IP addresses.
+ * However, as ethernet addresses fit in here nicely, ruse
+ * it also for an ethernet MAC address. */
+ guint8 addr_eth[6 /*ETH_ALEN*/];
};
} NMIPAddr;