Lines Matching refs:carrier
745 static int link_put_carrier(Link *link, Link *carrier, Hashmap **h) { in link_put_carrier() argument
749 assert(carrier); in link_put_carrier()
751 if (link == carrier) in link_put_carrier()
754 if (hashmap_get(*h, INT_TO_PTR(carrier->ifindex))) in link_put_carrier()
757 r = hashmap_ensure_put(h, NULL, INT_TO_PTR(carrier->ifindex), carrier); in link_put_carrier()
768 Link *carrier; in link_new_bound_by_list() local
776 HASHMAP_FOREACH(carrier, m->links_by_index) { in link_new_bound_by_list()
777 if (!carrier->network) in link_new_bound_by_list()
780 if (strv_isempty(carrier->network->bind_carrier)) in link_new_bound_by_list()
783 if (strv_fnmatch(carrier->network->bind_carrier, link->ifname)) { in link_new_bound_by_list()
784 r = link_put_carrier(link, carrier, &link->bound_by_links); in link_new_bound_by_list()
790 HASHMAP_FOREACH(carrier, link->bound_by_links) { in link_new_bound_by_list()
791 r = link_put_carrier(carrier, link, &carrier->bound_to_links); in link_new_bound_by_list()
801 Link *carrier; in link_new_bound_to_list() local
815 HASHMAP_FOREACH(carrier, m->links_by_index) { in link_new_bound_to_list()
816 if (strv_fnmatch(link->network->bind_carrier, carrier->ifname)) { in link_new_bound_to_list()
817 r = link_put_carrier(link, carrier, &link->bound_to_links); in link_new_bound_to_list()
823 HASHMAP_FOREACH(carrier, link->bound_to_links) { in link_new_bound_to_list()
824 r = link_put_carrier(carrier, link, &carrier->bound_by_links); in link_new_bound_to_list()