| 12345678910111213141516171819202122 |
- 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 ...)");
|