Lines Matching refs:ioctl
38 #include <sys/ioctl.h>
87 if (ioctl(fd, BIOCGIFATTACHCOUNT, &ifr) == -1)
88 fprintf(stderr, "ioctl BIOCGIFATTACHCOUNT");
118 if (ioctl(s, SIOCGIFDESC, &if_descreq) < 0) {
140 if (ioctl(s, SIOCIFDESTROY, &ifr) < 0)
141 fprintf(stderr, "%s: ioctl(SIOCIFDESTROY) fail - %s\n",
251 if (ioctl(s, SIOCGIFDESC, &if_descreq) < 0) {
252 snprintf(ebuf, PCAP_ERRBUF_SIZE, "ioctl(SIOCGIFDESC): %s",
288 if (ioctl(s, SIOCIFCREATE, &ifr) < 0) {
289 snprintf(ebuf, PCAP_ERRBUF_SIZE, "ioctl(SIOCIFCREATE): %s",
310 if (ioctl(s, SIOCSIFDESC, &if_descreq) < 0) {
311 snprintf(ebuf, PCAP_ERRBUF_SIZE, "ioctl(SIOCSIFDESC): %s",
381 if (ioctl(s, SIOCSDRVSPEC, &ifdr) == -1) {
382 snprintf(ebuf, PCAP_ERRBUF_SIZE, "ioctl(SIOCSDRVSPEC): %s",