/external/libnl/src/ |
H A D | nl-link-name2ifindex.c | 17 printf("Usage: nl-link-ifindex2name <ifindex>\n"); 25 uint32_t ifindex; local 34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1]))) 38 printf("%u\n", ifindex);
|
H A D | nl-link-ifindex2name.c | 17 printf("Usage: nl-link-ifindex2name <ifindex>\n"); 26 uint32_t ifindex; local 35 ifindex = nl_cli_parse_u32(argv[1]); 37 if (!rtnl_link_i2name(link_cache, ifindex, name, sizeof(name))) 39 ifindex);
|
H A D | nl-cls-list.c | 43 int err, ifindex; local 46 ifindex = rtnl_link_get_ifindex((struct rtnl_link *) obj); 48 ifindex = rtnl_cls_get_ifindex(cls); 50 err = rtnl_cls_alloc_cache(sock, ifindex, rtnl_cls_get_parent(cls),
|
H A D | nl-tctree-list.c | 23 static int ifindex; variable 55 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 74 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 87 ifindex = rtnl_link_get_ifindex(link); 91 if (rtnl_class_alloc_cache(sock, ifindex, &class_cache) < 0) 94 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); 100 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0); 106 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_INGRESS);
|
/external/iproute2/include/linux/tc_act/ |
H A D | tc_mirred.h | 16 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
|
/external/kernel-headers/original/uapi/linux/tc_act/ |
H A D | tc_mirred.h | 16 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
|
/external/iputils/ninfod/ |
H A D | ninfod_addrs.c | 155 unsigned int ifindex = 0; local 177 if (!ifindex && 185 ifindex = p->pktinfo.ipi6_ifindex; 196 if (!ifindex || 197 (p->pktinfo.ipi6_ifindex == ifindex)) 198 ifindex = ifa->ifa_ifindex; 201 if (!ifindex) { 206 *subj_if = ifindex; 208 ifindex = subj_if ? *subj_if : 0; 209 if (ifindex 324 unsigned int ifindex = 0; local [all...] |
/external/android-clat/ |
H A D | getaddr.c | 34 unsigned int ifindex; member in struct:target 53 if(ifa_p->ifa_index != targ_p->ifindex) 107 targ.ifindex = if_nametoindex(interface); 108 if(targ.ifindex == 0) {
|
H A D | setif.c | 134 static int do_anycast_setsockopt(int sock, int what, struct in6_addr *addr, int ifindex) { argument 135 struct ipv6_mreq mreq = { *addr, ifindex }; 162 int ifindex, s, ret; local 164 ifindex = if_nametoindex(ifname); 165 if (!ifindex) { 166 logmsg(ANDROID_LOG_ERROR, "%s: unknown ifindex for interface %s", __func__, ifname); 170 return do_anycast_setsockopt(sock, IPV6_JOIN_ANYCAST, addr, ifindex);
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_wext.h | 21 int ifindex; member in struct:wpa_driver_wext_data
|
H A D | linux_ioctl.c | 163 int ifindex; local 165 ifindex = if_nametoindex(ifname); 166 if (ifindex == 0) 171 ifr.ifr_ifindex = ifindex; 185 int ifindex; local 187 ifindex = if_nametoindex(ifname); 188 if (ifindex == 0) 193 ifr.ifr_ifindex = ifindex;
|
H A D | netlink.c | 169 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex, argument 191 req.ifinfo.ifi_index = ifindex; 216 wpa_printf(MSG_DEBUG, "netlink: Operstate: ifindex=%d linkmode=%d (%s), operstate=%d (%s)", 217 ifindex, linkmode, linkmode_str(linkmode),
|
/external/wpa_supplicant_8/src/drivers/ |
H A D | driver_wext.h | 21 int ifindex; member in struct:wpa_driver_wext_data
|
H A D | linux_ioctl.c | 163 int ifindex; local 165 ifindex = if_nametoindex(ifname); 166 if (ifindex == 0) 171 ifr.ifr_ifindex = ifindex; 185 int ifindex; local 187 ifindex = if_nametoindex(ifname); 188 if (ifindex == 0) 193 ifr.ifr_ifindex = ifindex;
|
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | driver_wext.h | 21 int ifindex; member in struct:wpa_driver_wext_data
|
H A D | linux_ioctl.c | 163 int ifindex; local 165 ifindex = if_nametoindex(ifname); 166 if (ifindex == 0) 171 ifr.ifr_ifindex = ifindex; 185 int ifindex; local 187 ifindex = if_nametoindex(ifname); 188 if (ifindex == 0) 193 ifr.ifr_ifindex = ifindex;
|
/external/libnl/lib/route/ |
H A D | class.c | 224 * @arg ifindex interface index of the link the classes are 232 int rtnl_class_alloc_cache(struct nl_sock *sk, int ifindex, argument 242 cache->c_iarg1 = ifindex; 256 * @arg ifindex interface the class is attached to 260 struct rtnl_class *rtnl_class_get(struct nl_cache *cache, int ifindex, argument 269 if (class->c_handle == handle && class->c_ifindex == ifindex) {
|
H A D | class_obj.c | 218 void rtnl_class_set_ifindex(struct rtnl_class *class, int ifindex) argument 220 tca_set_ifindex((struct rtnl_tca *) class, ifindex);
|
H A D | cls.c | 282 * @arg ifindex interface index of the link the classes are 294 int rtnl_cls_alloc_cache(struct nl_sock *sk, int ifindex, uint32_t parent, struct nl_cache **result) argument 302 cache->c_iarg1 = ifindex;
|
H A D | cls_obj.c | 140 void rtnl_cls_set_ifindex(struct rtnl_cls *f, int ifindex) argument 142 tca_set_ifindex((struct rtnl_tca *) f, ifindex);
|
H A D | qdisc.c | 32 * rtnl_qdisc_set_ifindex(qdisc, ifindex); 63 * rtnl_qdisc_set_ifindex(qdisc, ifindex); 394 * @arg ifindex interface the qdisc is attached to 399 int ifindex, uint32_t parent) 407 if (q->q_parent == parent && q->q_ifindex == ifindex) { 419 * @arg ifindex interface the qdisc is attached to 424 int ifindex, uint32_t handle) 432 if (q->q_handle == handle && q->q_ifindex == ifindex) { 398 rtnl_qdisc_get_by_parent(struct nl_cache *cache, int ifindex, uint32_t parent) argument 423 rtnl_qdisc_get(struct nl_cache *cache, int ifindex, uint32_t handle) argument
|
H A D | qdisc_obj.c | 183 void rtnl_qdisc_set_ifindex(struct rtnl_qdisc *qdisc, int ifindex) argument 185 tca_set_ifindex((struct rtnl_tca *) qdisc, ifindex);
|
/external/libpcap/ |
H A D | pcap-can-linux.c | 79 int ifindex; /* interface index of device we're bound to */ member in struct:pcap_can 183 handlep->ifindex = ifr.ifr_ifindex; 197 addr.can_ifindex = handlep->ifindex; 201 handlep->ifindex, errno, strerror(errno));
|
/external/tcpdump/missing/ |
H A D | getnameinfo.c | 232 unsigned int ifindex = local 236 if ((if_indextoname(ifindex, ep + 1)) == NULL)
|
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | preauth_auth.c | 37 int ifindex; member in struct:rsn_preauth_interface
|