Lines Matching refs:links
712 _cleanup_(link_info_array_freep) LinkInfo *links = NULL; in acquire_link_info()
740 if (!GREEDY_REALLOC0(links, c + 2)) /* We keep one trailing one as marker */ in acquire_link_info()
743 r = decode_link(i, links + c, patterns, matched_patterns); in acquire_link_info()
749 links[c].needs_freeing = true; in acquire_link_info()
751 (void) sd_device_new_from_ifindex(&links[c].sd_device, links[c].ifindex); in acquire_link_info()
753 acquire_ether_link_info(&fd, &links[c]); in acquire_link_info()
754 acquire_wlan_link_info(&links[c]); in acquire_link_info()
773 typesafe_qsort(links, c, link_info_compare); in acquire_link_info()
777 (void) acquire_link_bitrates(bus, links + j); in acquire_link_info()
779 *ret = TAKE_PTR(links); in acquire_link_info()
790 _cleanup_(link_info_array_freep) LinkInfo *links = NULL; in list_links()
806 c = acquire_link_info(NULL, rtnl, argc > 1 ? argv + 1 : NULL, &links); in list_links()
837 (void) sd_network_link_get_operational_state(links[i].ifindex, &operational_state); in list_links()
838 … operational_state_to_color(links[i].name, operational_state, &on_color_operational, NULL); in list_links()
840 r = sd_network_link_get_setup_state(links[i].ifindex, &setup_state); in list_links()
845 r = net_get_type_string(links[i].sd_device, links[i].iftype, &t); in list_links()
850 TABLE_INT, links[i].ifindex, in list_links()
851 TABLE_STRING, links[i].name, in list_links()
2386 _cleanup_(link_info_array_freep) LinkInfo *links = NULL; in link_status()
2407 c = acquire_link_info(bus, rtnl, NULL, &links); in link_status()
2411 c = acquire_link_info(bus, rtnl, argv + 1, &links); in link_status()
2419 link_status_one(bus, rtnl, hwdb, links + i); in link_status()
2477 _cleanup_(link_info_array_freep) LinkInfo *links = NULL; in link_lldp_status()
2487 c = acquire_link_info(NULL, rtnl, argc > 1 ? argv + 1 : NULL, &links); in link_lldp_status()
2513 r = open_lldp_neighbors(links[i].ifindex, &f); in link_lldp_status()
2517 … log_warning_errno(r, "Failed to open LLDP data for %i, ignoring: %m", links[i].ifindex); in link_lldp_status()
2546 TABLE_STRING, links[i].name, in link_lldp_status()