Lines Matching refs:ifindex

108         int ifindex;
115 return x->ifindex - y->ifindex;
128 int ifindex;
137 r = sd_rtnl_message_link_get_ifindex(i, &ifindex);
153 links[c].ifindex = ifindex;
236 sd_network_link_get_operational_state(links[i].ifindex, &operational_state);
239 sd_network_link_get_setup_state(links[i].ifindex, &setup_state);
242 sprintf(devid, "n%i", links[i].ifindex);
248 links[i].ifindex, links[i].name, strna(t),
296 int ifindex,
305 assert(ifindex >= 0);
310 r = sd_rtnl_message_new_neigh(rtnl, &req, RTM_GETNEIGH, ifindex, family);
358 log_error_errno(r, "could not get ifindex: %m");
362 if (ifindex > 0 && ifi != ifindex)
403 int ifindex) {
407 n = local_gateways(rtnl, ifindex, AF_UNSPEC, &local);
418 r = get_gateway_description(rtnl, hwdb, local[i].ifindex, local[i].family, &local[i].address, &description);
432 if (ifindex <= 0) {
435 if (if_indextoname(local[i].ifindex, name)) {
439 printf(" on %%%i", local[i].ifindex);
451 int ifindex) {
456 n = local_addresses(rtnl, ifindex, AF_UNSPEC, &local);
472 if (ifindex <= 0) {
475 if (if_indextoname(local[i].ifindex, name)) {
479 printf(" on %%%i", local[i].ifindex);
519 int r, ifindex;
526 if (parse_ifindex(name, &ifindex) >= 0)
527 r = sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, ifindex);
543 r = sd_rtnl_message_link_get_ifindex(reply, &ifindex);
572 (void) sd_network_link_get_operational_state(ifindex, &operational_state);
575 (void) sd_network_link_get_setup_state(ifindex, &setup_state);
578 (void) sd_network_link_get_dns(ifindex, &dns);
579 (void) sd_network_link_get_search_domains(ifindex, &search_domains);
580 (void) sd_network_link_get_route_domains(ifindex, &route_domains);
581 (void) sd_network_link_get_ntp(ifindex, &ntp);
583 sprintf(devid, "n%i", ifindex);
603 sd_network_link_get_network_file(ifindex, &network);
605 sd_network_link_get_carrier_bound_to(ifindex, &carrier_bound_to);
606 sd_network_link_get_carrier_bound_by(ifindex, &carrier_bound_by);
608 printf("%s%s%s %i: %s\n", on_color_operational, draw_special_char(DRAW_BLACK_CIRCLE), off_color_operational, ifindex, name);
644 dump_addresses(rtnl, " Address: ", ifindex);
645 dump_gateways(rtnl, hwdb, " Gateway: ", ifindex);
656 (void) sd_network_link_get_timezone(ifindex, &tz);
934 r = sd_network_link_get_lldp(links[i].ifindex, &lldp);