Lines Matching refs:ifi
912 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_link_stats() local
915 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), in print_link_stats()
916 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi))); in print_link_stats()
926 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo_brief() local
936 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo_brief()
943 if (pfilter->ifindex && ifi->ifi_index != pfilter->ifindex) in print_linkinfo_brief()
945 if (pfilter->up && !(ifi->ifi_flags&IFF_UP)) in print_linkinfo_brief()
948 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_linkinfo_brief()
950 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo_brief()
1018 ifi->ifi_type, in print_linkinfo_brief()
1024 print_link_flags(fp, ifi->ifi_flags, m_flag); in print_linkinfo_brief()
1057 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo() local
1065 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo()
1069 if (filter.ifindex && ifi->ifi_index != filter.ifindex) in print_linkinfo()
1071 if (filter.up && !(ifi->ifi_flags&IFF_UP)) in print_linkinfo()
1074 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_linkinfo()
1076 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo()
1107 print_int(PRINT_ANY, "ifindex", "%d: ", ifi->ifi_index); in print_linkinfo()
1142 print_link_flags(fp, ifi->ifi_flags, m_flag); in print_linkinfo()
1193 ll_type_n2a(ifi->ifi_type, b1, sizeof(b1))); in print_linkinfo()
1201 ifi->ifi_type, in print_linkinfo()
1205 if (ifi->ifi_flags&IFF_POINTOPOINT) { in print_linkinfo()
1218 ifi->ifi_type, in print_linkinfo()
1687 static int print_selected_addrinfo(struct ifinfomsg *ifi, in print_selected_addrinfo() argument
1701 if (ifa->ifa_index != ifi->ifi_index || in print_selected_addrinfo()
1705 if (filter.up && !(ifi->ifi_flags&IFF_UP)) in print_selected_addrinfo()
1874 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); in ipaddr_filter() local
1883 if (ifa->ifa_index != ifi->ifi_index) in ipaddr_filter()
2212 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); in ipaddr_list_flush_or_save() local
2219 print_selected_addrinfo(ifi, in ipaddr_list_flush_or_save()
2225 print_selected_addrinfo(ifi, in ipaddr_list_flush_or_save()
2269 struct ifinfomsg *ifi; in ipaddr_get_vf_rate() local
2284 ifi = NLMSG_DATA(n); in ipaddr_get_vf_rate()
2286 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in ipaddr_get_vf_rate()
2287 if (len < 0 || (idx && idx != ifi->ifi_index)) in ipaddr_get_vf_rate()
2290 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in ipaddr_get_vf_rate()