Searched refs:ifname (Results 1 - 22 of 22) sorted by relevance

/systemd/src/network/
H A Dnetworkd-wait-online-link.c27 int link_new(Manager *m, Link **ret, int ifindex, const char *ifname) { argument
48 l->ifname = strdup(ifname);
49 if (!l->ifname)
52 r = hashmap_put(m->links_by_name, l->ifname, l);
76 hashmap_remove(l->manager->links_by_name, l->ifname);
79 free(l->ifname);
85 const char *ifname; local
96 r = sd_netlink_message_read_string(m, IFLA_IFNAME, &ifname);
100 if (!streq(l->ifname, ifnam
[all...]
H A Dnetworkd-wait-online-link.h31 char *ifname; member in struct:Link
38 int link_new(Manager *m, Link **ret, int ifindex, const char *ifname);
H A Dnetworkd-wait-online-manager.c43 if (m->interfaces && !strv_contains(m->interfaces, link->ifname))
48 if (fnmatch(*ignore, link->ifname, 0) == 0)
57 char **ifname; local
61 STRV_FOREACH(ifname, m->interfaces) {
62 l = hashmap_get(m->links_by_name, *ifname);
64 log_debug("still waiting for %s", *ifname);
73 log_info("ignoring: %s", l->ifname);
79 l->ifname);
85 l->ifname);
103 const char *ifname; local
[all...]
H A Dnetworkd-netdev.c117 if (netdev->ifname)
118 hashmap_remove(netdev->manager->netdevs, netdev->ifname);
123 free(netdev->ifname);
219 log_netdev_debug(netdev, "Enslaving link '%s'", link->ifname);
229 assert(netdev->ifname);
310 log_netdev_debug(netdev, "Will enslave '%s', when ready", link->ifname);
361 if (!streq(netdev->ifname, received_name)) {
410 int netdev_get_mac(const char *ifname, struct ether_addr **ret) { argument
417 assert(ifname);
424 l = strlen(ifname);
[all...]
H A Dnetworkd-netdev-ipvlan.c40 assert(netdev->ifname);
H A Dnetworkd-netdev.h96 char *ifname; member in struct:NetDev
198 int netdev_get_mac(const char *ifname, struct ether_addr **ret);
214 _n ? log_object_internal(level, error, __FILE__, __LINE__, __func__, "INTERFACE=", _n->ifname, ##__VA_ARGS__) : \
230 #define LOG_NETDEV_MESSAGE(netdev, fmt, ...) "MESSAGE=%s: " fmt, (netdev)->ifname, ##__VA_ARGS__
231 #define LOG_NETDEV_INTERFACE(netdev) "INTERFACE=%s", (netdev)->ifname
H A Dnetworkd-link.h67 char *ifname; member in struct:Link
185 _l ? log_object_internal(level, error, __FILE__, __LINE__, __func__, "INTERFACE=", _l->ifname, ##__VA_ARGS__) : \
201 #define LOG_LINK_MESSAGE(link, fmt, ...) "MESSAGE=%s: " fmt, (link)->ifname, ##__VA_ARGS__
202 #define LOG_LINK_INTERFACE(link) "INTERFACE=%s", (link)->ifname
H A Dnetworkd-netdev-macvlan.c42 assert(netdev->ifname);
H A Dnetworkd-link.c301 const char *ifname; local
320 r = sd_netlink_message_read_string(message, IFLA_IFNAME, &ifname);
333 link->ifname = strdup(ifname);
334 if (!link->ifname)
415 free(link->ifname);
702 assert(link->ifname);
721 assert(link->ifname);
750 log_debug("Copying DNS server information from %s", link->ifname);
798 log_debug("Copying NTP server information from %s", link->ifname);
2568 const char *ifname; local
[all...]
H A Dnetworkd-netdev-tuntap.c35 assert(netdev->ifname);
58 strncpy(ifr->ifr_name, netdev->ifname, IFNAMSIZ-1);
H A Dnetworkd-network.c243 hashmap_remove(network->stacked_netdevs, netdev->ifname);
302 const char *ifname, const struct ether_addr *address,
330 devtype, ifname)) {
340 log_warning("%s: found matching network '%s', based on potentially unpredictable ifname",
341 ifname, network->filename);
343 log_debug("%s: found matching network '%s'", ifname, network->filename);
345 log_debug("%s: found matching network '%s'", ifname, network->filename);
458 r = hashmap_put(network->stacked_netdevs, netdev->ifname, netdev);
596 r = hashmap_put(network->stacked_netdevs, netdev->ifname, netdev);
301 network_get(Manager *manager, struct udev_device *device, const char *ifname, const struct ether_addr *address, Network **ret) argument
H A Dnetworkd-network.h168 int network_get(Manager *manager, struct udev_device *device, const char *ifname, const struct ether_addr *mac, Network **ret);
/systemd/src/udev/net/
H A Dethtool-util.h43 int ethtool_get_driver(int *fd, const char *ifname, char **ret);
44 int ethtool_set_speed(int *fd, const char *ifname, unsigned int speed, Duplex duplex);
45 int ethtool_set_wol(int *fd, const char *ifname, WakeOnLan wol);
H A Dethtool-util.c63 int ethtool_get_driver(int *fd, const char *ifname, char **ret) { argument
79 strscpy(ifr.ifr_name, IFNAMSIZ, ifname);
93 int ethtool_set_speed(int *fd, const char *ifname, unsigned int speed, Duplex duplex) { argument
112 strscpy(ifr.ifr_name, IFNAMSIZ, ifname);
151 int ethtool_set_wol(int *fd, const char *ifname, WakeOnLan wol) { argument
170 strscpy(ifr.ifr_name, IFNAMSIZ, ifname);
/systemd/src/libsystemd-network/
H A Dlldp-port.c81 free(p->ifname);
86 const char *ifname,
93 assert_return(ifname, -EINVAL);
103 p->ifname = strdup(ifname);
104 if (!p->ifname)
85 lldp_port_new(int ifindex, const char *ifname, const struct ether_addr *addr, void *userdata, lldp_port **ret) argument
H A Dlldp-port.h44 char *ifname; member in struct:lldp_port
59 const char *ifname,
H A Dtest-acd.c75 static int test_acd(const char *ifname, const char *address) { argument
91 assert_se(sd_netlink_message_append_string(m, IFLA_IFNAME, ifname) >= 0);
111 "\t %s <ifname> <IPv4 address>", program_invocation_short_name);
H A Dtest-ipv4ll-manual.c90 static int test_ll(const char *ifname, const char *seed) { argument
103 assert_se(sd_netlink_message_append_string(m, IFLA_IFNAME, ifname) >= 0);
125 "\t %s <ifname> [<seed>]", program_invocation_short_name);
H A Dsd-lldp.c161 log_lldp("Port: %s is disabled. Dropping.", lldp->port->ifname);
605 lldp->port->ifname,
690 const char *ifname,
698 assert_return(ifname, -EINVAL);
705 r = lldp_port_new(ifindex, ifname, mac, lldp, &lldp->port);
689 sd_lldp_new(int ifindex, const char *ifname, const struct ether_addr *mac, sd_lldp **ret) argument
/systemd/src/resolve/
H A Dresolve-tool.c87 char ifname[IF_NAMESIZE] = ""; local
95 if (arg_ifindex > 0 && !if_indextoname(arg_ifindex, ifname))
98 log_debug("Resolving %s (family %s, interface %s).", name, af_to_name(arg_family) ?: "*", isempty(ifname) ? "*" : ifname);
156 ifname[0] = 0;
157 if (ifindex > 0 && !if_indextoname(ifindex, ifname))
167 isempty(ifname) ? "" : "%", ifname);
201 char ifname[IF_NAMESIZE] = ""; local
218 if (ifindex > 0 && !if_indextoname(ifindex, ifname))
334 char ifname[IF_NAMESIZE] = ""; local
569 char ifname[IF_NAMESIZE] = ""; local
[all...]
/systemd/src/libsystemd/sd-netlink/
H A Dtest-netlink.c193 char *ifname = userdata; local
199 log_info("got link info about %s", ifname);
200 free(ifname);
212 char *ifname; local
214 ifname = strdup("lo2");
215 assert_se(ifname);
220 assert_se(sd_netlink_call_async(rtnl, m, &link_handler, ifname, 0, NULL) >= 0);
252 char *ifname; local
254 ifname = strdup("lo");
255 assert_se(ifname);
[all...]
/systemd/src/systemd/
H A Dsd-lldp.h48 int sd_lldp_new(int ifindex, const char *ifname, const struct ether_addr *mac, sd_lldp **ret);

Completed in 2779 milliseconds