goto ERROR;
}
- // XXX Set common things like MAC address, etc.
+ // XXX Set common things like MTU, etc.
+
+ // Set MAC address
+ r = sd_netlink_message_append_ether_addr(m, IFLA_ADDRESS, &port->address);
+ if (r < 0) {
+ ERROR("Could not set MAC address: %s\n", strerror(-r));
+ goto ERROR;
+ }
// Fetch the parent link
link = nw_port_get_parent_link(port);