summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-10-26 18:07:49 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2020-10-28 14:44:43 +0100
commitb8162cd200c69be509475b8f2184a5ac651fc2b0 (patch)
treea6b07641f3794fd3b204e7a9c2f2a8a26e163ba1 /src/network/networkd-link.h
parentsd-netlink: introduce netlink_message_{read,append}_hw_addr (diff)
downloadsystemd-b8162cd200c69be509475b8f2184a5ac651fc2b0.tar.xz
systemd-b8162cd200c69be509475b8f2184a5ac651fc2b0.zip
network: store full hardware address in Link struct
This passes the legacy ethernet address to functions in a lot of places, which all will need migrated to handle arbitrary size hardware addresses eventually.
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index a7ae2645f9..bdeee0fe85 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -16,6 +16,7 @@
#include "sd-radv.h"
#include "sd-netlink.h"
+#include "ether-addr-util.h"
#include "log-link.h"
#include "network-util.h"
#include "networkd-util.h"
@@ -52,7 +53,7 @@ typedef struct Link {
char *kind;
unsigned short iftype;
char *state_file;
- struct ether_addr mac;
+ hw_addr_data hw_addr;
struct ether_addr permanent_mac;
struct in6_addr ipv6ll_address;
uint32_t mtu;