Lines Matching refs:carrier
181 /* if we have carrier, check what addresses we have */
378 Link *carrier;
422 HASHMAP_FOREACH (carrier, link->bound_to_links, i)
423 hashmap_remove(link->bound_to_links, INT_TO_PTR(carrier->ifindex));
426 HASHMAP_FOREACH (carrier, link->bound_by_links, i)
427 hashmap_remove(link->bound_by_links, INT_TO_PTR(carrier->ifindex));
1527 static int link_put_carrier(Link *link, Link *carrier, Hashmap **h) {
1531 assert(carrier);
1533 if (link == carrier)
1536 if (hashmap_get(*h, INT_TO_PTR(carrier->ifindex)))
1543 r = hashmap_put(*h, INT_TO_PTR(carrier->ifindex), carrier);
1552 Link *carrier;
1562 HASHMAP_FOREACH (carrier, m->links, i) {
1563 if (!carrier->network)
1566 if (strv_isempty(carrier->network->bind_carrier))
1569 if (strv_fnmatch(carrier->network->bind_carrier, link->ifname, 0)) {
1570 r = link_put_carrier(link, carrier, &link->bound_by_links);
1581 HASHMAP_FOREACH (carrier, link->bound_by_links, i) {
1582 r = link_put_carrier(carrier, link, &carrier->bound_to_links);
1586 link_dirty(carrier);
1594 Link *carrier;
1610 HASHMAP_FOREACH (carrier, m->links, i) {
1611 if (strv_fnmatch(link->network->bind_carrier, carrier->ifname, 0)) {
1612 r = link_put_carrier(link, carrier, &link->bound_to_links);
1623 HASHMAP_FOREACH (carrier, link->bound_to_links, i) {
1624 r = link_put_carrier(carrier, link, &carrier->bound_by_links);
1628 link_dirty(carrier);
2559 log_link_info(link, "Reset carrier");
2675 log_link_info(link, "Gained carrier");
2681 log_link_info(link, "Lost carrier");
2891 Link *carrier;
2895 HASHMAP_FOREACH(carrier, link->bound_to_links, i)
2896 fputs_with_space(f, carrier->ifname, NULL, &space);
2902 Link *carrier;
2906 HASHMAP_FOREACH(carrier, link->bound_by_links, i)
2907 fputs_with_space(f, carrier->ifname, NULL, &space);
3025 [LINK_OPERSTATE_NO_CARRIER] = "no-carrier",
3027 [LINK_OPERSTATE_CARRIER] = "carrier",