diff options
-rw-r--r-- | src/network/networkd-link.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 6e6fb8393e..3653426891 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -75,6 +75,10 @@ static int link_new(Manager *manager, sd_rtnl_message *message, Link **ret) { if (!link->ifname) return -ENOMEM; + r = sd_rtnl_message_read_ether_addr(message, IFLA_ADDRESS, &link->mac); + if (r < 0) + return r; + r = asprintf(&link->state_file, "/run/systemd/netif/links/%"PRIu64, link->ifindex); if (r < 0) |