chiark / gitweb /
networkctl: port from libudev to sd-device
[elogind.git] / src / network / networkd-netdev-macvlan.c
index 2e5554a1728606d8fec4fdd7afc63016fa01d27e..5f41f1c8658d9492a928a09ab1745aded9299fae 100644 (file)
@@ -22,9 +22,7 @@
 #include <net/if.h>
 
 #include "networkd-netdev-macvlan.h"
-#include "network-internal.h"
 #include "conf-parser.h"
-#include "list.h"
 
 static const char* const macvlan_mode_table[_NETDEV_MACVLAN_MODE_MAX] = {
         [NETDEV_MACVLAN_MODE_PRIVATE] = "private",
@@ -48,7 +46,7 @@ static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_rtn
         if (m->mode != _NETDEV_MACVLAN_MODE_INVALID) {
         r = sd_rtnl_message_append_u32(req, IFLA_MACVLAN_MODE, m->mode);
         if (r < 0) {
-                log_error_netdev(netdev,
+                log_netdev_error(netdev,
                                  "Could not append IFLA_MACVLAN_MODE attribute: %s",
                                  strerror(-r));
                         return r;