Lines Matching defs:ifname
117 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) {
417 assert(ifname);
424 l = strlen(ifname);
435 memcpy(v + sizeof(sd_id128_t), ifname, l);
477 r = sd_netlink_message_append_string(m, IFLA_IFNAME, netdev->ifname);
623 if (!netdev_raw->ifname) {
636 netdev->ifname = netdev_raw->ifname;
660 r = netdev_get_mac(netdev->ifname, &netdev->mac);
662 return log_error_errno(r, "Failed to generate predictable MAC address for %s: %m", netdev->ifname);
665 r = hashmap_put(netdev->manager->netdevs, netdev->ifname, netdev);