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.
 
 
 
 
 
 

37 lines
1.1 KiB

Index: Makefile.in
--- Makefile.in.orig 2008-05-10 21:19:08 +0200
+++ Makefile.in 2008-05-16 20:10:23 +0200
@@ -46,7 +46,7 @@
$(CC) -o lft $(OBJS) $(LDFLAGS) $(LIBS)
whob: whois.o
- $(CC) -o whob whois.c -DSTANDALONE $(LDFLAGS) $(LIBS)
+ $(CC) $(CFLAGS) -o whob whois.c -DSTANDALONE $(LDFLAGS) $(LIBS)
install: lft lft.8 whob whob.8
@echo "Installing LFT and WhoB"
Index: lft_lib.c
--- lft_lib.c.orig 2008-05-11 18:08:53 +0200
+++ lft_lib.c 2008-05-16 23:18:55 +0200
@@ -2717,7 +2717,7 @@
return;
}
#ifdef BSD_IP_STACK
-#if !defined(DARWIN) && !defined(NETBSD)
+#if !defined(DARWIN) && !defined(NETBSD) && defined(BIOCIMMEDIATE)
bpfimmflag = 1;
if ( ioctl(sess->pcapdescr->fd, BIOCIMMEDIATE, &bpfimmflag) < 0) {
LFTErrHandler(sess, WRN_BIOCIMMEDIATE, pcap_strerror(errno));
Index: lft_types.h
--- lft_types.h.orig 2008-05-11 18:08:19 +0200
+++ lft_types.h 2008-05-16 23:19:42 +0200
@@ -94,8 +94,7 @@
#include <errno.h>
#include <sys/ioctl.h>
#if !defined(DARWIN) && !defined(NETBSD)
-#include <net/bpf.h>
-#include <pcap-int.h>
+#include "pcap-bpf.h"
#endif
#endif