Home
last modified time | relevance | path

Searched refs:ifi_index (Results 1 – 25 of 35) sorted by relevance

12

/external/iproute2/bridge/
Dvlan.c86 req.ifm.ifi_index = ll_name_to_index(d); in vlan_modify()
87 if (req.ifm.ifi_index == 0) { in vlan_modify()
164 if (filter_index && filter_index != ifm->ifi_index) in print_vlan()
171 fprintf(fp, "%s\tNone\n", ll_index_to_name(ifm->ifi_index)); in print_vlan()
177 fprintf(fp, "%s", ll_index_to_name(ifm->ifi_index)); in print_vlan()
Dlink.c117 if (filter_index && filter_index != ifi->ifi_index) in print_linkinfo()
130 fprintf(fp, "%d: %s ", ifi->ifi_index, in print_linkinfo()
361 req.ifm.ifi_index = ll_name_to_index(d); in brlink_modify()
362 if (req.ifm.ifi_index == 0) { in brlink_modify()
Dfdb.c219 req.ifm.ifi_index = filter_index; in fdb_show()
/external/iproute2/ip/
Diptoken.c65 if (ifi->ifi_index == 0) in print_token()
67 if (ifindex > 0 && ifi->ifi_index != ifindex) in print_token()
87 fprintf(fp, "dev %s ", ll_index_to_name(ifi->ifi_index)); in print_token()
148 if ((req.ifi.ifi_index = in iptoken_set()
Dlink_vti.c72 req.i.ifi_index = ifi->ifi_index; in vti_parse_opt()
Dlink_vti6.c68 req.i.ifi_index = ifi->ifi_index; in vti6_parse_opt()
Dlink_veth.c74 peer_ifm->ifi_index = index; in veth_parse_opt()
Dlink_ip6tnl.c90 req.i.ifi_index = ifi->ifi_index; in ip6tunnel_parse_opt()
Diplink.c714 req.i.ifi_index = 0; in iplink_modify()
734 req.i.ifi_index = ll_name_to_index(dev); in iplink_modify()
735 if (req.i.ifi_index == 0) { in iplink_modify()
757 req.i.ifi_index = 0; in iplink_modify()
759 req.i.ifi_index = index; in iplink_modify()
Dlink_gre6.c92 req.i.ifi_index = ifi->ifi_index; in gre_parse_opt()
Dipaddress.c630 if (filter.ifindex && ifi->ifi_index != filter.ifindex) in print_linkinfo_brief()
637 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo_brief()
729 if (filter.ifindex && ifi->ifi_index != filter.ifindex) in print_linkinfo()
736 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo()
771 fprintf(fp, "%d: ", ifi->ifi_index); in print_linkinfo()
1186 if (ifa->ifa_index != ifi->ifi_index || in print_selected_addrinfo()
1350 if (ifa->ifa_index != ifi->ifi_index) in ipaddr_filter()
1714 if (len < 0 || (idx && idx != ifi->ifi_index)) in ipaddr_get_vf_rate()
Dlink_iptnl.c92 req.i.ifi_index = ifi->ifi_index; in iptunnel_parse_opt()
Dlink_gre.c86 req.i.ifi_index = ifi->ifi_index; in gre_parse_opt()
/external/libnfnetlink/src/
Diftable.c71 hash = ifi_msg->ifi_index & 0xF; in iftable_add()
73 if (this->index == ifi_msg->ifi_index) { in iftable_add()
84 this->index = ifi_msg->ifi_index; in iftable_add()
130 hash = ifi_msg->ifi_index & 0xF; in iftable_del()
132 if (this->index == ifi_msg->ifi_index) { in iftable_del()
/external/iproute2/lib/
Dll_map.c96 im = ll_get_by_index(ifi->ifi_index); in ll_remember_index()
127 im->index = ifi->ifi_index; in ll_remember_index()
132 h = ifi->ifi_index & (IDXMAP_SIZE - 1); in ll_remember_index()
/external/libnl/lib/route/link/
Dveth.c62 peer->l_index = ifi->ifi_index; in veth_parse()
126 ifi.ifi_index = peer->l_index; in veth_put_attrs()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c170 ifi->ifi_index = index; in get_ifi_info_linuxv6()
324 ifi->ifi_index = if_nametoindex(ifr->ifr_name); in get_ifi_info()
329 ifi->ifi_index = ifrcopy.ifr_index; in get_ifi_info()
332 ifi->ifi_index = index++; /* SIOCGIFINDEX is broken on Solaris 2.5ish, so fake it */ in get_ifi_info()
DmDNSUNP.h91 int ifi_index; /* interface index */ member
DmDNSPosix.c975 if (SetupOneInterface(m, i->ifi_addr, i->ifi_netmask, i->ifi_name, i->ifi_index) == 0) in SetupInterfaceList()
989 …Loopback->ifi_addr, firstLoopback->ifi_netmask, firstLoopback->ifi_name, firstLoopback->ifi_index); in SetupInterfaceList()
1043 pIfInfo->ifi_type, pIfInfo->ifi_index, pIfInfo->ifi_flags, pIfInfo->ifi_change); in PrintNetLinkMsg()
1099 result |= 1 << ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index; in ProcessRoutingNotification()
/external/ltp/testcases/kernel/containers/share/
Dns_ifmove.c108 req.ifi.ifi_index = intf_index; in main()
/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h98 int ifi_index; member
Dnetlink.c191 req.ifinfo.ifi_index = ifindex; in netlink_send_oper_ifla()
/external/android-clat/
Dsetif.c107 if (!(ifi.ifi_index = if_nametoindex(ifname))) { in if_up()
/external/libnl/lib/route/
Dlink.c504 link->l_index = ifi->ifi_index; in link_msg_parser()
1134 ifi.ifi_index = ifindex; in rtnl_link_build_get_request()
1381 .ifi_index = link->l_index, in rtnl_link_build_add_request()
1443 .ifi_index = orig->l_index, in rtnl_link_build_change_request()
1555 .ifi_index = link->l_index, in rtnl_link_build_delete_request()
/external/libnl/include/linux-private/linux/
Drtnetlink.h427 int ifi_index; /* Link index */ member

12