hping.patch 617 B

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