Lines Matching refs:ifreq
48 struct ifreq ifreq; member
153 struct ifreq *ifreq, char *errbuf) in ioctl_ifreq() argument
155 if (ioctl(fd, op, ifreq, sizeof(struct ifreq)) < 0) { in ioctl_ifreq()
170 &handlep->ifreq, handle->errbuf) < 0) in get_promisc()
172 return (handlep->ifreq.ifr_flags & IFF_PROMISC) != 0; in get_promisc()
181 handlep->ifreq.ifr_flags |= IFF_PROMISC; in set_promisc()
183 handlep->ifreq.ifr_flags &= ~IFF_PROMISC; in set_promisc()
186 &handlep->ifreq, handle->errbuf); in set_promisc()
229 &handlep->ifreq, handle->errbuf) < 0) in pcap_stats_haiku()
234 stats->ps_ifdrop = handlep->ifreq.ifr_stats.receive.dropped - stats->ps_ifdrop; in pcap_stats_haiku()
253 &handlep->ifreq, handle->errbuf) < 0) { in pcap_activate_haiku()
260 handlep->stat.ps_ifdrop = handlep->ifreq.ifr_stats.receive.dropped; in pcap_activate_haiku()
272 &handlep->ifreq, handle->errbuf) < 0) in pcap_activate_haiku()
274 struct sockaddr_dl *sdl = (struct sockaddr_dl *)&handlep->ifreq.ifr_addr; in pcap_activate_haiku()
305 &handlep->ifreq, handle->errbuf) < 0) in pcap_activate_haiku()
438 strcpy(handlep->ifreq.ifr_name, device); in pcapint_create_interface()
470 struct ifreq ifreq; in get_if_flags() local
471 strcpy(ifreq.ifr_name, name); in get_if_flags()
472 if (ioctl_ifreq(fd, SIOCGIFFLAGS, "SIOCGIFFLAGS", &ifreq, errbuf) < 0) { in get_if_flags()
476 *flags |= (ifreq.ifr_flags & IFF_LINK) ? in get_if_flags()
479 if (ioctl_ifreq(fd, SIOCGIFMEDIA, "SIOCGIFMEDIA", &ifreq, errbuf) < 0) { in get_if_flags()
483 if (IFM_TYPE(ifreq.ifr_media) == IFM_IEEE80211) in get_if_flags()