Lines Matching refs:ifrflags
149 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()
380 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) { in pcap_findalldevs()
385 (int)sizeof(ifrflags.ifr_name), in pcap_findalldevs()
386 ifrflags.ifr_name, in pcap_findalldevs()
391 if (!(ifrflags.ifr_flags & IFF_UP)) in pcap_findalldevs()
426 if (ifrflags.ifr_flags & IFF_BROADCAST) { in pcap_findalldevs()
465 if (ifrflags.ifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs()
532 ifrflags.ifr_flags, &ifrp->ifr_addr, in pcap_findalldevs()