Searched refs:if_index (Results 1 – 9 of 9) sorted by relevance
/external/wpa_supplicant_8/src/ap/ |
D | vlan_init.c | 195 int if_index; in br_delif() local 204 if_index = if_nametoindex(if_name); in br_delif() 206 if (if_index == 0) { in br_delif() 215 args[1] = if_index; in br_delif() 246 int if_index; in br_addif() local 255 if_index = if_nametoindex(if_name); in br_addif() 257 if (if_index == 0) { in br_addif() 266 args[1] = if_index; in br_addif()
|
/external/dnsmasq/src/ |
D | tftp.c | 50 int is_err = 1, if_index = 0, mtu = 0; in tftp_request() local 103 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in tftp_request() 111 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in tftp_request() 119 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in tftp_request() 123 if (!indextoname(listen->tftpfd, if_index, name) || in tftp_request() 125 !iface_check(AF_INET, (struct all_addr *)&addr.sin_addr, name, &if_index)) in tftp_request()
|
D | forward.c | 583 int if_index = 0; in receive_query() local 655 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in receive_query() 665 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in receive_query() 667 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in receive_query() 679 if_index =((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_ifindex; in receive_query() 686 if (!indextoname(listen->fd, if_index, ifr.ifr_name) || in receive_query() 687 !iface_check(listen->family, &dst_addr, ifr.ifr_name, &if_index)) in receive_query() 719 m, &source_addr, &dst_addr, if_index); in receive_query() 722 else if (forward_query(listen->fd, &source_addr, &dst_addr, if_index, in receive_query()
|
D | network.c | 118 static int iface_allowed(struct irec **irecp, int if_index, in iface_allowed() argument 134 !indextoname(fd, if_index, ifr.ifr_name) || in iface_allowed() 208 int scope, int if_index, void *vparam) in iface_allowed_v6() argument 224 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); in iface_allowed_v6() 228 static int iface_allowed_v4(struct in_addr local, int if_index, in iface_allowed_v4() argument 242 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); in iface_allowed_v4()
|
D | dhcp.c | 27 static int complete_context(struct in_addr local, int if_index, 367 static int complete_context(struct in_addr local, int if_index, in complete_context() argument 397 if (if_index == param->ind && context->current == context) in complete_context()
|
/external/toybox/toys/pending/ |
D | arping.c | 212 int if_index, recv_len; in arping_main() local 219 get_interface(TT.iface, &if_index, NULL, NULL); in arping_main() 220 src_pk.sll_ifindex = if_index; in arping_main()
|
D | ip.c | 465 for (i = if_ni; i->if_index && i->if_name; i++) in get_ifaceindex() 467 index = i->if_index; in get_ifaceindex()
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 284 for (p = p0; p && p->if_index && p->if_name; p++) { in if_maxindex() 285 if (max < p->if_index) in if_maxindex() 286 max = p->if_index; in if_maxindex()
|
/external/libpcap/ |
D | pcap-dlpi.c | 1673 return (ifnet.if_index);
|