Home
last modified time | relevance | path

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

/external/libpcap/
Dfad-gifc.c149 struct ifreq ifrflags; in scan_proc_net_dev() local
211 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); in scan_proc_net_dev()
212 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) { in scan_proc_net_dev()
217 (int)sizeof(ifrflags.ifr_name), in scan_proc_net_dev()
218 ifrflags.ifr_name, in scan_proc_net_dev()
223 if (!(ifrflags.ifr_flags & IFF_UP)) in scan_proc_net_dev()
229 if (pcap_add_if(devlistp, name, ifrflags.ifr_flags, NULL, in scan_proc_net_dev()
282 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs() local
378 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
379 sizeof(ifrflags.ifr_name)); in pcap_findalldevs()
[all …]
Dfad-glifc.c95 struct lifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs() local
214 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
215 sizeof(ifrflags.lifr_name)); in pcap_findalldevs()
216 if (ioctl(fd, SIOCGLIFFLAGS, (char *)&ifrflags) < 0) { in pcap_findalldevs()
221 (int)sizeof(ifrflags.lifr_name), in pcap_findalldevs()
222 ifrflags.lifr_name, in pcap_findalldevs()
227 if (!(ifrflags.lifr_flags & IFF_UP)) in pcap_findalldevs()
259 if (ifrflags.lifr_flags & IFF_BROADCAST) { in pcap_findalldevs()
294 if (ifrflags.lifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs()
352 ifrflags.lifr_flags, (struct sockaddr *)&ifrp->lifr_addr, in pcap_findalldevs()