Changeset 1697
- Timestamp:
- 02/24/07 13:24:34 (23 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
configure.in (modified) (6 diffs)
-
src/common/Makefile.am (modified) (1 diff)
-
src/common/sendpacket.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1694 r1697 418 418 419 419 for testdir in $trypcapdir /usr/local /usr ; do 420 421 420 if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then 422 421 LPCAPINC="${testdir}/include/pcap.h" … … 426 425 elif test -f "${testdir}/lib64/libpcap.a" ; then 427 426 LPCAPLIB="${testdir}/lib64/libpcap.a" 427 elif test -f "${testdir}/lib/libpcap.a" ; then 428 LPCAPLIB="${testdir}/lib/libpcap.a" 428 429 else 429 LPCAPLIB="${testdir}/lib/lib pcap.a"430 fi 430 LPCAPLIB="${testdir}/lib/libwpcap.a" 431 fi 431 432 foundpcap=$testdir 432 433 fi … … 445 446 dnl Checks to see what version of libpcap we've got 446 447 OLDLIBS="$LIBS" 447 OLDCFLAGS="$CFLAGS "448 OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR" 448 449 LIBS="$LPCAPLIB" 449 450 CFLAGS="$CFLAGS -I$LPCAPINCDIR" … … 468 469 * or one otherwise 469 470 */ 470 if (strncmp(pcap_lib_version , PCAP_TEST, 3) >= 0)471 if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0) 471 472 exit(0); 473 474 /* winpcap? */ 475 if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0) 476 exit(0); 477 472 478 exit(1); 473 479 ]]), [ … … 490 496 * or one otherwise 491 497 */ 498 492 499 if (strncmp(pcap_version, PCAP_TEST, 3) >= 0) 493 500 exit(0); 501 494 502 exit(1); 495 503 ]]), [ … … 876 884 fi 877 885 886 887 AM_CONDITIONAL(HAVE_TCPDUMP, test $td = yes) 878 888 dnl No 'make test' when cross compile 879 889 -
trunk/src/common/Makefile.am
r1640 r1697 14 14 libcommon_a_SOURCES = cidr.c err.c list.c cache.c services.c get.c \ 15 15 fakepcap.c fakepcapnav.c fakepoll.c xX.c utils.c \ 16 t cpdump.c timer.c svn_version.c abort.c sendpacket.c \16 timer.c svn_version.c abort.c sendpacket.c \ 17 17 dlt_names.c mac.c 18 19 if HAVE_TCPDUMP 20 libcommon_a_SOURCES += tcpdump.c 21 endif 18 22 19 23 AM_CFLAGS = -I.. -I../.. $(LNAV_CFLAGS) -
trunk/src/common/sendpacket.c
r1669 r1697 81 81 #include <sys/ioctl.h> 82 82 #include <sys/file.h> 83 #include <sys/sysctl.h>84 #include <net/route.h>83 //#include <sys/sysctl.h> 84 //#include <net/route.h> 85 85 #include <stdlib.h> 86 86 #include <unistd.h>
