Lines Matching refs:ioctl
129 if (ioctl(p->fd, BIOCGSTATS, (caddr_t)&s) < 0) { in pcap_stats_bpf()
348 if (ioctl(p->fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) { in pcap_inject_bpf()
635 if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0) { in pcap_open_live()
656 if ((ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) || v < 32768) in pcap_open_live()
664 (void) ioctl(fd, BIOCSBLEN, (caddr_t)&v); in pcap_open_live()
667 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0) in pcap_open_live()
684 if (ioctl(fd, BIOCGDLT, (caddr_t)&v) < 0) { in pcap_open_live()
756 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)&bdl) == 0) { in pcap_open_live()
767 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)&bdl) < 0) { in pcap_open_live()
849 if (ioctl(fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) { in pcap_open_live()
865 if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) { in pcap_open_live()
921 if (ioctl(p->fd, BIOCIMMEDIATE, &v) < 0) { in pcap_open_live()
931 if (ioctl(p->fd, BIOCPROMISC, NULL) < 0) { in pcap_open_live()
937 if (ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) { in pcap_open_live()
971 if (ioctl(p->fd, BIOCSETF, (caddr_t)&total_prog) < 0) { in pcap_open_live()
1081 if (ioctl(p->fd, BIOCSETF, (caddr_t)fp) < 0) { in pcap_setfilter_bpf()
1110 if (ioctl(p->fd, BIOCSDIRECTION, &direction) == -1) { in pcap_setdirection_bpf()
1132 if (ioctl(p->fd, BIOCSSEESENT, &seesent) == -1) { in pcap_setdirection_bpf()
1151 if (ioctl(p->fd, BIOCSDLT, &dlt) == -1) { in pcap_set_datalink_bpf()