Lines Matching defs:ifi
603 struct ifinfomsg *ifi = NLMSG_DATA(n);
606 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi),
607 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)));
616 struct ifinfomsg *ifi = NLMSG_DATA(n);
626 len -= NLMSG_LENGTH(sizeof(*ifi));
630 if (filter.ifindex && ifi->ifi_index != filter.ifindex)
632 if (filter.up && !(ifi->ifi_flags&IFF_UP))
635 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);
637 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index);
699 ifi->ifi_type,
705 print_link_flags(fp, ifi->ifi_flags, m_flag);
717 struct ifinfomsg *ifi = NLMSG_DATA(n);
725 len -= NLMSG_LENGTH(sizeof(*ifi));
729 if (filter.ifindex && ifi->ifi_index != filter.ifindex)
731 if (filter.up && !(ifi->ifi_flags&IFF_UP))
734 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);
736 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index);
771 fprintf(fp, "%d: ", ifi->ifi_index);
792 print_link_flags(fp, ifi->ifi_flags, m_flag);
837 fprintf(fp, " link/%s ", ll_type_n2a(ifi->ifi_type, b1, sizeof(b1)));
843 ifi->ifi_type,
847 if (ifi->ifi_flags&IFF_POINTOPOINT)
853 ifi->ifi_type,
1173 static int print_selected_addrinfo(struct ifinfomsg *ifi,
1186 if (ifa->ifa_index != ifi->ifi_index ||
1190 if (filter.up && !(ifi->ifi_flags&IFF_UP))
1341 struct ifinfomsg *ifi = NLMSG_DATA(&l->h);
1350 if (ifa->ifa_index != ifi->ifi_index)
1644 struct ifinfomsg *ifi = NLMSG_DATA(&l->h);
1649 print_selected_addrinfo(ifi,
1655 print_selected_addrinfo(ifi,
1696 struct ifinfomsg *ifi;
1711 ifi = NLMSG_DATA(n);
1713 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi));
1714 if (len < 0 || (idx && idx != ifi->ifi_index))
1717 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);