Lines Matching refs:ioctl
349 if (ioctl(p->fd, BIOCROTZBUF, &bz) < 0) { in pcap_next_zbuf()
396 if (ioctl(p->fd, BIOCROTZBUF, &bz) < 0) { in pcap_next_zbuf()
556 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) == 0) { in get_dlt_list()
567 if (ioctl(fd, BIOCGDLTLIST, (caddr_t)bdlp) < 0) { in get_dlt_list()
696 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) { in pcap_can_set_rfmon_bpf()
723 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) { in pcap_can_set_rfmon_bpf()
807 if (ioctl(p->fd, BIOCGSTATS, (caddr_t)&s) < 0) { in pcap_stats_bpf()
1086 if (ioctl(p->fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) { in pcap_inject_bpf()
1305 if (ioctl(sock, SIOCGIFMEDIA, &req) < 0) { in pcap_cleanup_bpf()
1322 if (ioctl(sock, SIOCSIFMEDIA, in pcap_cleanup_bpf()
1395 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) { in check_setif_failure()
1525 if (ioctl(fd, BIOCVERSION, (caddr_t)&bv) < 0) {
1630 if (ioctl(sockfd, SIOCGIFFLAGS,
1688 if (ioctl(fd, BIOCSETBUFMODE, (caddr_t)&bufmode) == 0) {
1703 if (ioctl(fd, BIOCGETZMAX, (caddr_t)&zbufmax) < 0) {
1716 if ((ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) ||
1740 if (ioctl(fd, BIOCSETZBUF, (caddr_t)&bz) < 0) {
1747 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) {
1765 if (ioctl(fd, BIOCSBLEN,
1779 if (ioctl(fd, BIOCSETLIF, (caddr_t)&ifr) < 0)
1781 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0)
1797 if ((ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) ||
1808 (void) ioctl(fd, BIOCSBLEN, (caddr_t)&v);
1812 if (ioctl(fd, BIOCSETLIF, (caddr_t)&ifr) >= 0)
1814 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0)
1835 if (ioctl(fd, BIOCGDLT, (caddr_t)&v) < 0) {
1958 if (ioctl(p->fd, BIOCSDLT,
2030 if (ioctl(p->fd, BIOCSDLT, &new_dlt) != -1) {
2080 if (ioctl(fd, BIOCSHDRCMPLT, &spoof_eth_src) == -1) {
2122 if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&bpf_to) < 0) {
2132 if (ioctl(p->fd, BIOCSRTIMEOUT, (caddr_t)&to) < 0) {
2167 if (ioctl(p->fd, BIOCIMMEDIATE, &v) < 0) {
2189 if (ioctl(p->fd, BIOCPROMISC, NULL) < 0) {
2196 if (ioctl(fd, BIOCGBLEN, (caddr_t)&v) < 0) {
2238 if (ioctl(p->fd, BIOCSETF, (caddr_t)&total_prog) < 0) {
2340 if (ioctl(sock, SIOCGIFMEDIA, &req) < 0) {
2387 if (ioctl(sock, SIOCGIFMEDIA, &req) < 0) {
2450 if (ioctl(sock, SIOCSIFMEDIA, &ifr) == -1) {
2644 if (ioctl(p->fd, BIOCSETF, (caddr_t)fp) == 0) {
2704 if (ioctl(p->fd, BIOCSDIRECTION, &direction) == -1) {
2726 if (ioctl(p->fd, BIOCSSEESENT, &seesent) == -1) {
2745 if (ioctl(p->fd, BIOCSDLT, &dlt) == -1) {