You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
617 B

Index: libpcap_stuff.c
--- libpcap_stuff.c.orig 2002-12-13 15:07:07.000000000 +0100
+++ libpcap_stuff.c 2004-05-03 20:14:42.000000000 +0200
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <sys/ioctl.h>
#include <pcap.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
#include "globals.h"
@@ -35,7 +35,7 @@
printf("[open_pcap] pcap_open_live: %s\n", errbuf);
return -1;
}
-#if (!defined OSTYPE_LINUX) && (!defined __sun__)
+#if 0
/* Return the packets to userspace as fast as possible */
if (ioctl(pcap_fileno(pcapfp), BIOCIMMEDIATE, &on) == -1)
perror("[open_pcap] ioctl(... BIOCIMMEDIATE ...)");