]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-netdev-vlan.c
sd-netlink: rename from sd-rtnl
[thirdparty/systemd.git] / src / network / networkd-netdev-vlan.c
index 13c44567331565cdf72841697109ed8c9785c976..d53e7beaac53f43c7e039f9162e4d722b83e05ba 100644 (file)
 #include <net/if.h>
 
 #include "networkd-netdev-vlan.h"
-#include "network-internal.h"
-#include "list.h"
 
-static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_message *req) {
+static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) {
         VLan *v = VLAN(netdev);
         int r;
 
@@ -35,9 +33,9 @@ static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_rtnl_m
         assert(req);
 
         if (v->id <= VLANID_MAX) {
-                r = sd_rtnl_message_append_u16(req, IFLA_VLAN_ID, v->id);
+                r = sd_netlink_message_append_u16(req, IFLA_VLAN_ID, v->id);
                 if (r < 0) {
-                        log_error_netdev(netdev,
+                        log_netdev_error(netdev,
                                          "Could not append IFLA_VLAN_ID attribute: %s",
                                          strerror(-r));
                         return r;