/systemd-251/src/network/tc/ |
D | qdisc.c | 45 static int qdisc_new(QDiscKind kind, QDisc **ret) { in qdisc_new() argument 49 if (kind == _QDISC_KIND_INVALID) { in qdisc_new() 56 .kind = kind, in qdisc_new() 59 assert(kind >= 0 && kind < _QDISC_KIND_MAX); in qdisc_new() 60 qdisc = malloc0(qdisc_vtable[kind]->object_size); in qdisc_new() 65 qdisc->kind = kind; in qdisc_new() 79 int qdisc_new_static(QDiscKind kind, Network *network, const char *filename, unsigned section_line,… in qdisc_new_static() argument 96 if (existing->kind != _QDISC_KIND_INVALID && in qdisc_new_static() 97 kind != _QDISC_KIND_INVALID && in qdisc_new_static() 98 existing->kind != kind) in qdisc_new_static() [all …]
|
D | qdisc.h | 49 QDiscKind kind; member 63 #define QDISC_VTABLE(q) ((q)->kind != _QDISC_KIND_INVALID ? qdisc_vtable[(q)->kind] : NULL) 68 if (_unlikely_(!q || q->kind != QDISC_KIND_##UPPERCASE)) \ 77 int qdisc_new_static(QDiscKind kind, Network *network, const char *filename, unsigned section_line,… 79 int link_find_qdisc(Link *link, uint32_t handle, uint32_t parent, const char *kind, QDisc **qdisc);
|
D | tclass.h | 30 TClassKind kind; member 45 #define TCLASS_VTABLE(t) ((t)->kind != _TCLASS_KIND_INVALID ? tclass_vtable[(t)->kind] : NULL) 50 if (_unlikely_(!t || t->kind != TCLASS_KIND_##UPPERCASE)) \ 59 int tclass_new_static(TClassKind kind, Network *network, const char *filename, unsigned section_lin…
|
D | tclass.c | 27 static int tclass_new(TClassKind kind, TClass **ret) { in tclass_new() argument 31 if (kind == _TCLASS_KIND_INVALID) { in tclass_new() 38 .kind = kind, in tclass_new() 41 assert(kind >= 0 && kind < _TCLASS_KIND_MAX); in tclass_new() 42 tclass = malloc0(tclass_vtable[kind]->object_size); in tclass_new() 47 tclass->kind = kind; in tclass_new() 61 int tclass_new_static(TClassKind kind, Network *network, const char *filename, unsigned section_lin… in tclass_new_static() argument 78 if (existing->kind != kind) in tclass_new_static() 85 r = tclass_new(kind, &tclass); in tclass_new_static()
|
D | fifo.c | 21 switch (qdisc->kind) { in fifo_fill_message() 74 switch (qdisc->kind) { in config_parse_pfifo_size()
|
/systemd-251/src/network/netdev/ |
D | netdev.c | 150 switch (netdev->kind) { in netdev_is_stacked_and_independent() 309 const char *kind; in netdev_set_ifindex() local 370 if (netdev->kind == NETDEV_KIND_TAP) in netdev_set_ifindex() 372 kind = "tun"; in netdev_set_ifindex() 374 kind = netdev_kind_to_string(netdev->kind); in netdev_set_ifindex() 375 if (!kind) { in netdev_set_ifindex() 382 if (!streq(kind, received_kind)) { in netdev_set_ifindex() 384 received_kind, kind); in netdev_set_ifindex() 521 … = sd_netlink_message_open_container_union(m, IFLA_INFO_DATA, netdev_kind_to_string(netdev->kind)); in netdev_create_message() 533 … r = sd_netlink_message_append_string(m, IFLA_INFO_KIND, netdev_kind_to_string(netdev->kind)); in netdev_create_message() [all …]
|
D | tuntap.c | 26 if (netdev->kind == NETDEV_KIND_TAP) { in netdev_fill_tuntap_message() 67 if (netdev->kind == NETDEV_KIND_TAP) in netdev_tuntap_add() 119 if (netdev->kind == NETDEV_KIND_TUN) in tuntap_done() 137 netdev_kind_to_string(netdev->kind), filename); in tuntap_verify() 143 netdev_kind_to_string(netdev->kind), filename); in tuntap_verify()
|
D | tunnel.c | 210 if (netdev->kind == NETDEV_KIND_IPIP) in netdev_ipip_sit_fill_message_create() 266 if (netdev->kind == NETDEV_KIND_SIT) { in netdev_ipip_sit_fill_message_create() 306 switch (netdev->kind) { in netdev_gre_erspan_fill_message_create() 337 if (netdev->kind == NETDEV_KIND_ERSPAN) { in netdev_gre_erspan_fill_message_create() 436 if (netdev->kind == NETDEV_KIND_IP6GRE) in netdev_ip6gre_fill_message_create() 528 if (netdev->kind == NETDEV_KIND_VTI) in netdev_vti_fill_message_create() 682 if (netdev->kind == NETDEV_KIND_IP6TNL && in netdev_tunnel_verify() 688 if (IN_SET(netdev->kind, NETDEV_KIND_VTI, NETDEV_KIND_VTI6)) in netdev_tunnel_verify() 699 … if (IN_SET(netdev->kind, NETDEV_KIND_VTI, NETDEV_KIND_IPIP, NETDEV_KIND_SIT, NETDEV_KIND_GRE) && in netdev_tunnel_verify() 704 if (IN_SET(netdev->kind, NETDEV_KIND_GRETAP, NETDEV_KIND_ERSPAN) && in netdev_tunnel_verify() [all …]
|
D | netdev.h | 123 NetDevKind kind; member 179 #define NETDEV_VTABLE(n) ((n)->kind != _NETDEV_KIND_INVALID ? netdev_vtable[(n)->kind] : NULL) 185 n->kind != NETDEV_KIND_##UPPERCASE) || \
|
D | macvlan.c | 24 if (netdev->kind == NETDEV_KIND_MACVLAN) in netdev_macvlan_fill_message_create() 125 if (n->kind == NETDEV_KIND_MACVLAN) in macvlan_done() 140 if (n->kind == NETDEV_KIND_MACVLAN) in macvlan_init()
|
D | ipvlan.c | 24 if (netdev->kind == NETDEV_KIND_IPVLAN) in netdev_ipvlan_fill_message_create() 51 if (n->kind == NETDEV_KIND_IPVLAN) in ipvlan_init()
|
D | tunnel.h | 84 switch (netdev->kind) { in TUNNEL()
|
/systemd-251/src/shared/ |
D | net-condition.c | 25 match->kind = strv_free(match->kind); in net_match_clear() 42 strv_isempty(match->kind) && in net_match_is_empty() 127 const char *kind, in net_match_config() argument 162 if (!net_condition_test_strv(match->kind, kind)) in net_match_config()
|
D | net-condition.h | 19 char **kind; /* IFLA_INFO_KIND attribute, e.g. gre, gretap, erspan. */ member 37 const char *kind,
|
/systemd-251/src/network/ |
D | networkd-network.c | 50 static int network_resolve_netdev_one(Network *network, const char *name, NetDevKind kind, NetDev *… in network_resolve_netdev_one() argument 64 if (kind == _NETDEV_KIND_TUNNEL) in network_resolve_netdev_one() 67 kind_string = netdev_kind_to_string(kind); in network_resolve_netdev_one() 79 if (netdev->kind != kind && !(kind == _NETDEV_KIND_TUNNEL && in network_resolve_netdev_one() 80 IN_SET(netdev->kind, in network_resolve_netdev_one() 100 void *name, *kind; in network_resolve_stacked_netdevs() local 105 HASHMAP_FOREACH_KEY(kind, name, network->stacked_netdev_names) { in network_resolve_stacked_netdevs() 108 if (network_resolve_netdev_one(network, name, PTR_TO_INT(kind), &netdev) <= 0) in network_resolve_stacked_netdevs() 212 if (netdev->kind == NETDEV_KIND_MACVLAN) in network_verify() 214 else if (netdev->kind == NETDEV_KIND_MACVTAP) in network_verify() [all …]
|
D | networkd-setlink.c | 479 … if (link->network->keep_master && link->master_ifindex <= 0 && !streq_ptr(link->kind, "bridge")) in link_is_ready_to_set_link() 658 if (!streq_ptr(master->kind, "bond")) in link_request_to_set_bond() 679 if (!streq_ptr(master->kind, "bridge")) in link_request_to_set_bridge() 695 if (!link->network->bridge && !streq_ptr(link->kind, "bridge")) { in link_request_to_set_bridge_vlan() 704 if (!streq_ptr(master->kind, "bridge")) in link_request_to_set_bridge_vlan() 720 if (!streq_ptr(link->kind, "can")) in link_request_to_set_can() 866 return streq_ptr(link->kind, "macsec"); in link_reduces_vlan_mtu() 874 if (dev->kind == NETDEV_KIND_VLAN && dev->mtu > 0) in link_get_requested_mtu_by_stacked_netdevs() 878 else if (dev->kind == NETDEV_KIND_MACVLAN && dev->mtu > mtu) in link_get_requested_mtu_by_stacked_netdevs()
|
D | networkd-lldp-tx.c | 28 if (link->kind && STR_IN_SET(link->kind, "bridge", "bond")) in link_lldp_tx_enabled()
|
D | networkd-lldp-rx.c | 45 if (link->kind && STR_IN_SET(link->kind, "bridge", "bond")) in link_lldp_rx_enabled()
|
D | networkd-bridge-mdb.c | 91 if (r == -EINVAL && streq_ptr(link->kind, "bridge") && link->master_ifindex <= 0) { in bridge_mdb_configure_handler() 176 if (link->master_ifindex <= 0 && streq_ptr(link->kind, "bridge")) in bridge_mdb_is_ready_to_configure() 182 if (!streq_ptr(master->kind, "bridge")) in bridge_mdb_is_ready_to_configure()
|
D | networkd-ipv6ll.c | 32 if (STRPTR_IN_SET(link->kind, "vrf", "wireguard", "ipip", "gre", "sit", "vti", "nlmon")) in link_ipv6ll_enabled() 59 if (streq_ptr(link->kind, "wireguard")) { in link_may_have_ipv6ll()
|
D | networkd-link.c | 94 if (streq_ptr(link->kind, "vrf")) in link_ipv4ll_enabled() 222 free(link->kind); in link_free() 1168 link->kind, in link_get_network() 2167 if (r == -EEXIST && streq_ptr(link->kind, "bond")) in link_update_hardware_address() 2454 …_cleanup_free_ char *ifname = NULL, *kind = NULL, *state_file = NULL, *lease_file = NULL, *lldp_fi… in link_new() local 2480 r = sd_netlink_message_read_string_strdup(message, IFLA_INFO_KIND, &kind); in link_new() 2511 .kind = TAKE_PTR(kind), in link_new() 2538 … link->ifindex, strna(arphrd_to_name(link->iftype)), link->iftype, strna(link->kind)); in link_new()
|
/systemd-251/src/network/generator/ |
D | network-generator.c | 216 free(netdev->kind); in netdev_free() 224 _cleanup_free_ char *kind = NULL, *ifname = NULL; in netdev_new() local 232 kind = strdup(_kind); in netdev_new() 233 if (!kind) in netdev_new() 245 .kind = TAKE_PTR(kind), in netdev_new() 1190 netdev->kind, in netdev_dump()
|
D | network-generator.h | 79 char *kind; member
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 375 _cleanup_free_ char *kind = NULL; in rtnl_get_link_info() local 417 r = sd_netlink_message_read_string_strdup(reply, IFLA_INFO_KIND, &kind); in rtnl_get_link_info() 444 *ret_kind = TAKE_PTR(kind); in rtnl_get_link_info()
|
/systemd-251/src/udev/net/ |
D | link-config.h | 35 char *kind; member
|