/systemd/src/network/ |
H A D | networkd-netdev-bridge.c | 25 #include "networkd-netdev-bridge.h" 27 /* callback for brige netdev's parameter set */ 29 _cleanup_netdev_unref_ NetDev *netdev = userdata; local 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) { argument 51 assert(netdev); 53 b = BRIDGE(netdev); 57 r = sd_rtnl_message_new_link(netdev [all...] |
H A D | networkd-netdev-ipvlan.c | 23 #include "networkd-netdev-ipvlan.h" 34 static int netdev_ipvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument 38 assert(netdev); 40 assert(netdev->ifname); 42 m = IPVLAN(netdev); 49 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPVLAN_MODE attribute: %m");
|
H A D | networkd-netdev-vlan.c | 22 #include "networkd-netdev-vlan.h" 24 static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument 28 assert(netdev); 32 v = VLAN(netdev); 39 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VLAN_ID attribute: %m"); 45 static int netdev_vlan_verify(NetDev *netdev, const char *filename) { argument 48 assert(netdev); 51 v = VLAN(netdev); 63 static void vlan_init(NetDev *netdev) { argument 64 VLan *v = VLAN(netdev); [all...] |
H A D | networkd-netdev-macvlan.c | 23 #include "networkd-netdev-macvlan.h" 36 static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) { argument 40 assert(netdev); 42 assert(netdev->ifname); 44 if (netdev->kind == NETDEV_KIND_MACVLAN) 45 m = MACVLAN(netdev); 47 m = MACVTAP(netdev); 54 return log_netdev_error_errno(netdev, r, "Could not append IFLA_MACVLAN_MODE attribute: %m");
|
H A D | networkd-netdev-veth.c | 25 #include "networkd-netdev-veth.h" 27 static int netdev_veth_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument 31 assert(netdev); 35 v = VETH(netdev); 41 return log_netdev_error_errno(netdev, r, "Could not append VETH_INFO_PEER attribute: %m"); 52 return log_netdev_error_errno(netdev, r, "Could not append IFLA_ADDRESS attribute: %m"); 57 return log_netdev_error_errno(netdev, r, "Could not append IFLA_INFO_DATA attribute: %m"); 62 static int netdev_veth_verify(NetDev *netdev, const char *filename) { argument 66 assert(netdev); 69 v = VETH(netdev); [all...] |
H A D | networkd-netdev-tuntap.c | 26 #include "networkd-netdev-tuntap.h" 31 static int netdev_fill_tuntap_message(NetDev *netdev, struct ifreq *ifr) { argument 34 assert(netdev); 35 assert(netdev->ifname); 38 if (netdev->kind == NETDEV_KIND_TAP) { 39 t = TAP(netdev); 42 t = TUN(netdev); 58 strncpy(ifr->ifr_name, netdev->ifname, IFNAMSIZ-1); 63 static int netdev_tuntap_add(NetDev *netdev, struct ifreq *ifr) { argument 72 assert(netdev); 124 netdev_create_tuntap(NetDev *netdev) argument 135 tuntap_done(NetDev *netdev) argument 151 tuntap_verify(NetDev *netdev, const char *filename) argument [all...] |
H A D | networkd-netdev-vxlan.c | 29 #include "networkd-netdev-vxlan.h" 31 static int netdev_vxlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument 35 assert(netdev); 39 v = VXLAN(netdev); 46 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_ID attribute: %m"); 51 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_GROUP attribute: %m"); 55 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_LINK attribute: %m"); 60 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_TTL attribute: %m"); 66 return log_netdev_error_errno(netdev, r, "Could not append IFLA_VXLAN_TOS attribute: %m"); 71 return log_netdev_error_errno(netdev, 256 netdev_vxlan_verify(NetDev *netdev, const char *filename) argument 271 vxlan_init(NetDev *netdev) argument [all...] |
H A D | networkd-netdev-bond.c | 29 #include "networkd-netdev-bond.h" 182 static int netdev_bond_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument 187 assert(netdev); 191 b = BOND(netdev); 199 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BOND_MODE attribute: %m"); 206 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BOND_XMIT_HASH_POLICY attribute: %m"); 213 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BOND_AD_LACP_RATE attribute: %m"); 219 log_netdev_error_errno(netdev, r, "Could not append IFLA_BOND_BOND_MIIMON attribute: %m"); 225 return log_netdev_error_errno(netdev, r, "Could not append IFLA_BOND_DOWNDELAY attribute: %m"); 231 return log_netdev_error_errno(netdev, 391 bond_done(NetDev *netdev) argument 407 bond_init(NetDev *netdev) argument [all...] |
H A D | networkd-netdev-tunnel.c | 31 #include "networkd-netdev-tunnel.h" 49 static int netdev_ipip_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { argument 50 Tunnel *t = IPIP(netdev); 53 assert(netdev); 61 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_LINK attribute: %m"); 65 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_LOCAL attribute: %m"); 69 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_REMOTE attribute: %m"); 73 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_TTL attribute: %m"); 77 return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPTUN_PMTUDISC attribute: %m"); 82 static int netdev_sit_fill_message_create(NetDev *netdev, Lin argument 115 netdev_gre_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument 158 netdev_ip6gre_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument 203 netdev_vti_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument 228 netdev_vti6_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument 253 netdev_ip6tnl_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) argument 319 netdev_tunnel_verify(NetDev *netdev, const char *filename) argument [all...] |
H A D | networkd-netdev.c | 29 #include "networkd-netdev.h" 84 DEFINE_CONFIG_PARSE_ENUM(config_parse_netdev_kind, netdev_kind, NetDevKind, "Failed to parse netdev kind"); 86 static void netdev_cancel_callbacks(NetDev *netdev) { argument 90 if (!netdev) 95 while ((callback = netdev->callbacks)) { 99 assert(netdev->manager); 100 assert(netdev->manager->rtnl); 102 callback->callback(netdev->manager->rtnl, m, callback->link); 105 LIST_REMOVE(callbacks, netdev->callbacks, callback); 111 static void netdev_free(NetDev *netdev) { argument 138 netdev_unref(NetDev *netdev) argument 145 netdev_ref(NetDev *netdev) argument 152 netdev_drop(NetDev *netdev) argument 168 NetDev *netdev; local 185 netdev_enter_failed(NetDev *netdev) argument 193 netdev_enslave_ready(NetDev *netdev, Link* link, sd_netlink_message_handler_t callback) argument 224 netdev_enter_ready(NetDev *netdev) argument 258 _cleanup_netdev_unref_ NetDev *netdev = userdata; local 278 netdev_enslave(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument 316 netdev_set_ifindex(NetDev *netdev, sd_netlink_message *message) argument 454 netdev_create(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument 544 netdev_join(NetDev *netdev, Link *link, sd_netlink_message_handler_t callback) argument 573 _cleanup_netdev_unref_ NetDev *netdev = NULL; local 692 NetDev *netdev; local [all...] |
H A D | networkd-network.c | 209 NetDev *netdev; local 242 HASHMAP_FOREACH(netdev, network->stacked_netdevs, i) { 243 hashmap_remove(network->stacked_netdevs, netdev->ifname); 244 netdev_unref(netdev); 410 NetDev *netdev; local 433 r = netdev_get(network->manager, rvalue, &netdev); 439 if (netdev->kind != kind) { 446 network->bridge = netdev; 450 network->bond = netdev; 458 r = hashmap_put(network->stacked_netdevs, netdev 567 NetDev *netdev; local [all...] |
H A D | networkd-manager.c | 629 NetDev *netdev = NULL; local 671 (void) netdev_get(m, name, &netdev); 684 if (netdev) { 685 /* netdev exists, so make sure the ifindex matches */ 686 r = netdev_set_ifindex(netdev, message); 688 log_warning_errno(r, "Could not set ifindex on netdev: %m"); 701 netdev_drop(netdev); 1048 NetDev *netdev; local 1066 while ((netdev = hashmap_first(m->netdevs))) 1067 netdev_unref(netdev); [all...] |
H A D | networkd-link.c | 32 #include "networkd-netdev.h" 1019 log_link_error_errno(link, r, "Could not join netdev: %m"); 1764 log_link_error_errno(link, r, "Could not join netdev: %m"); 1768 log_link_debug(link, "Joined netdev"); 1777 NetDev *netdev; local 1806 LOG_LINK_MESSAGE(link, "Could not join netdev '%s': %m", link->network->bond->ifname), 1828 LOG_LINK_MESSAGE(link, "Could not join netdev '%s': %m", link->network->bridge->ifname), 1837 HASHMAP_FOREACH(netdev, link->network->stacked_netdevs, i) { 1841 LOG_NETDEV_INTERFACE(netdev), 1842 LOG_LINK_MESSAGE(link, "Enslaving by '%s'", netdev [all...] |