/system/core/libnetutils/ |
packet.h | 20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index); 21 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
|
packet.c | 42 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) 56 bindaddr.sll_ifindex = if_index; 89 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size, 142 destaddr.sll_ifindex = if_index;
|
dhcpclient.c | 342 static int send_message(int sock, int if_index, dhcp_msg *msg, int size) 347 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST, 401 int if_index; local 408 if (ifc_get_ifindex(ifname, &if_index)) { 412 s = open_raw_socket(ifname, hwaddr, if_index); 457 r = send_message(s, if_index, msg, size);
|
/external/dnsmasq/src/ |
tftp.c | 50 int is_err = 1, if_index = 0, mtu = 0; local 103 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; 111 if_index = *((unsigned int *)CMSG_DATA(cmptr)); 119 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; 123 if (!indextoname(listen->tftpfd, if_index, name) || 125 !iface_check(AF_INET, (struct all_addr *)&addr.sin_addr, name, &if_index))
|
forward.c | 571 int if_index = 0; local 643 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; 653 if_index = *((unsigned int *)CMSG_DATA(cmptr)); 655 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; 667 if_index =((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_ifindex; 674 if (!indextoname(listen->fd, if_index, ifr.ifr_name) || 675 !iface_check(listen->family, &dst_addr, ifr.ifr_name, &if_index)) 707 m, &source_addr, &dst_addr, if_index); 710 else if (forward_query(listen->fd, &source_addr, &dst_addr, if_index,
|
network.c | 118 static int iface_allowed(struct irec **irecp, int if_index, 134 !indextoname(fd, if_index, ifr.ifr_name) || 208 int scope, int if_index, void *vparam) 224 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); 228 static int iface_allowed_v4(struct in_addr local, int if_index, 242 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); [all...] |
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, 397 if (if_index == param->ind && context->current == context)
|
/external/wpa_supplicant_8/src/ap/ |
vlan_init.c | 116 int if_index; local 125 if_index = if_nametoindex(if_name); 127 if (if_index == 0) { 136 args[1] = if_index; 167 int if_index; local 176 if_index = if_nametoindex(if_name); 178 if (if_index == 0) { 187 args[1] = if_index;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/net/ |
if.h | 36 unsigned int if_index; /* 1, 2, ... */ member in struct:if_nameindex
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/net/ |
if.h | 36 unsigned int if_index; /* 1, 2, ... */ member in struct:if_nameindex
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/net/ |
if.h | 36 unsigned int if_index; /* 1, 2, ... */ member in struct:if_nameindex
|
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 284 for (p = p0; p && p->if_index && p->if_name; p++) { 285 if (max < p->if_index) 286 max = p->if_index;
|
/external/libpcap/ |
pcap-dlpi.c | [all...] |