Home
last modified time | relevance | path

Searched refs:altnames (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/udev/net/
Dlink-config.c798 _cleanup_strv_free_ char **altnames = NULL, **current_altnames = NULL; in link_apply_alternative_names() local
812 altnames = strv_copy(config->alternative_names); in link_apply_alternative_names()
813 if (!altnames) in link_apply_alternative_names()
841 r = strv_extend(&altnames, n); in link_apply_alternative_names()
848 strv_remove(altnames, link->new_name); in link_apply_alternative_names()
849 strv_remove(altnames, link->ifname); in link_apply_alternative_names()
856 strv_remove(altnames, *p); in link_apply_alternative_names()
858 strv_uniq(altnames); in link_apply_alternative_names()
859 strv_sort(altnames); in link_apply_alternative_names()
860 r = rtnl_set_link_alternative_names(rtnl, link->ifindex, altnames); in link_apply_alternative_names()
/systemd-251/src/network/
Dnetworkd-link.c2275 _cleanup_strv_free_ char **altnames = NULL; in link_update_alternative_names() local
2281 r = sd_netlink_message_read_strv(message, IFLA_PROP_LIST, IFLA_ALT_IFNAME, &altnames); in link_update_alternative_names()
2289 if (strv_equal(altnames, link->alternative_names)) in link_update_alternative_names()
2295 strv_free_and_replace(link->alternative_names, altnames); in link_update_alternative_names()
Dnetworkctl.c491 _cleanup_strv_free_ char **altnames = NULL; in decode_link() local
514 r = sd_netlink_message_read_strv(m, IFLA_PROP_LIST, IFLA_ALT_IFNAME, &altnames); in decode_link()
529 STRV_FOREACH(p, altnames) in decode_link()
547 info->alternative_names = TAKE_PTR(altnames); in decode_link()