HomeSort by relevance Sort by last modified time
    Searched refs:if_index (Results 1 - 19 of 19) sorted by null

  /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 43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index)
57 bindaddr.sll_ifindex = if_index;
90 int send_packet(int s, int if_index, struct dhcp_msg *msg, int size,
143 destaddr.sll_ifindex = if_index;
dhcpclient.c 344 static int send_message(int sock, int if_index, dhcp_msg *msg, int size)
349 return send_packet(sock, if_index, msg, size, INADDR_ANY, INADDR_BROADCAST,
403 int if_index; local
410 if (ifc_get_ifindex(ifname, &if_index)) {
414 s = open_raw_socket(ifname, hwaddr, if_index);
459 r = send_message(s, if_index, msg, size);
  /bionic/tests/
net_if_test.cpp 43 ASSERT_TRUE(list->if_index != 0);
48 for (struct if_nameindex* it = list; it->if_index != 0; ++it) {
49 fprintf(stderr, "\t%d\t%s\n", it->if_index, it->if_name);
51 EXPECT_EQ(it->if_index, if_nametoindex(it->if_name));
52 EXPECT_STREQ(it->if_name, if_indextoname(it->if_index, buf));
  /bionic/libc/include/net/
if.h 43 unsigned if_index; member in struct:if_nameindex
  /system/connectivity/dhcp_client/
device_info.cc 76 int if_index = rtnl_handler_->GetInterfaceIndex(interface_name); local
77 if (if_index == -1) {
81 *interface_index = if_index;
  /bionic/libc/bionic/
net_if.cpp 103 new_link->data.if_index = ifi->ifi_index;
139 out->if_index = it->data.if_index;
143 out->if_index = 0;
157 while (ptr->if_index != 0 || ptr->if_name != nullptr) {
  /external/wpa_supplicant_8/src/ap/
vlan_full.c 137 int if_index; local
146 if_index = if_nametoindex(if_name);
148 if (if_index == 0) {
157 args[1] = if_index;
188 int if_index; local
197 if_index = if_nametoindex(if_name);
199 if (if_index == 0) {
208 args[1] = if_index;
  /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 583 int if_index = 0; local
655 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex;
665 if_index = *((unsigned int *)CMSG_DATA(cmptr));
667 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index;
679 if_index =((struct in6_pktinfo *)CMSG_DATA(cmptr))->ipi6_ifindex;
686 if (!indextoname(listen->fd, if_index, ifr.ifr_name) ||
687 !iface_check(listen->family, &dst_addr, ifr.ifr_name, &if_index))
719 m, &source_addr, &dst_addr, if_index);
722 else if (forward_query(listen->fd, &source_addr, &dst_addr, if_index,
    [all...]
network.c 122 static int iface_allowed(struct irec **irecp, int if_index,
138 !indextoname(fd, if_index, ifr.ifr_name) ||
213 int scope, int if_index, void *vparam)
237 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask);
241 static int iface_allowed_v4(struct in_addr local, int if_index,
255 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/toybox/toys/pending/
arping.c 206 int if_index, recv_len; local
213 get_interface(TT.iface, &if_index, NULL, NULL);
214 src_pk.sll_ifindex = if_index;
ip.c 459 for (i = if_ni; i->if_index && i->if_name; i++)
461 index = i->if_index;
    [all...]
  /external/autotest/server/
site_linux_system.py 463 if_index = len(self._interfaces)
464 while name_exists(if_name(if_index)):
465 if_index += 1
466 net_dev = NetDev(phy=phy, if_name=if_name(if_index),
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/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.15-4.8/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...]

Completed in 551 milliseconds