Lines Matching defs:netdev

25 #include "networkd-netdev-bridge.h"
27 /* callback for brige netdev's parameter set */
29 _cleanup_netdev_unref_ NetDev *netdev = userdata;
32 assert(netdev);
37 log_netdev_warning_errno(netdev, r, "Bridge parameters could not be set: %m");
41 log_netdev_debug(netdev, "Bridge parametres set success");
46 static int netdev_bridge_post_create(NetDev *netdev, Link *link, sd_netlink_message *m) {
51 assert(netdev);
53 b = BRIDGE(netdev);
57 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &req, RTM_NEWLINK, netdev->ifindex);
59 return log_netdev_error_errno(netdev, r, "Could not allocate RTM_SETLINK message: %m");
67 return log_netdev_error_errno(netdev, r, "Could not append IFLA_PROTINFO attribute: %m");
69 r = sd_netlink_message_open_container_union(req, IFLA_INFO_DATA, netdev_kind_to_string(netdev->kind));
71 return log_netdev_error_errno(netdev, r, "Could not append IFLA_INFO_DATA attribute: %m");
77 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BR_FORWARD_DELAY attribute: %m");
83 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BR_HELLO_TIME attribute: %m");
89 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BR_MAX_AGE attribute: %m");
94 return log_netdev_error_errno(netdev, r, "Could not append IFLA_LINKINFO attribute: %m");
98 return log_netdev_error_errno(netdev, r, "Could not append IFLA_INFO_DATA attribute: %m");
100 r = sd_netlink_call_async(netdev->manager->rtnl, req, netdev_bridge_set_handler, netdev, 0, NULL);
102 return log_netdev_error_errno(netdev, r, "Could not send rtnetlink message: %m");
104 netdev_ref(netdev);