Home
last modified time | relevance | path

Searched refs:ifrflags (Results 1 – 3 of 3) sorted by relevance

/external/libpcap/
Dfad-gifc.c147 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
242 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
243 sizeof(ifrflags.ifr_name)); in pcap_findalldevs_interfaces()
244 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) { in pcap_findalldevs_interfaces()
249 (int)sizeof(ifrflags.ifr_name), in pcap_findalldevs_interfaces()
250 ifrflags.ifr_name, in pcap_findalldevs_interfaces()
288 if (ifrflags.ifr_flags & IFF_BROADCAST) { in pcap_findalldevs_interfaces()
327 if (ifrflags.ifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs_interfaces()
394 ifrflags.ifr_flags, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
Dfad-glifc.c90 struct lifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
208 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
209 sizeof(ifrflags.lifr_name)); in pcap_findalldevs_interfaces()
210 if (ioctl(fd, SIOCGLIFFLAGS, (char *)&ifrflags) < 0) { in pcap_findalldevs_interfaces()
215 (int)sizeof(ifrflags.lifr_name), in pcap_findalldevs_interfaces()
216 ifrflags.lifr_name, in pcap_findalldevs_interfaces()
251 if (ifrflags.lifr_flags & IFF_BROADCAST) { in pcap_findalldevs_interfaces()
286 if (ifrflags.lifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs_interfaces()
344 ifrflags.lifr_flags, (struct sockaddr *)&ifrp->lifr_addr, in pcap_findalldevs_interfaces()
Dpcap-linux.c2086 struct ifreq ifrflags; local
2125 strlcpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name));
2126 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
2131 (int)sizeof(ifrflags.ifr_name),
2132 ifrflags.ifr_name,
2140 if (pcap_add_if(devlistp, name, ifrflags.ifr_flags, NULL,