o fixed bug where setting the snaplen smaller than the minimum necessary to read the full headres would cause garbage to be fed into the pattern matcher o fixed unreported bug in IPv6/TCP packet length calculation o relocated the privilege-dropping routine to be invoked right before entering the packet processing loop, to prevent interference with necessary permissions to read or write dumpfiles/etc. o fixed integer overflow with the snaplen that resulted from an implicit signed/unsigned conversion o minor change to compensate for some broken compiler optimizers o fixed double-free race condition during ngrep termination o reworked packet length calculation in the main processing loop, improving performance and readability o simplified regex build logic in configure and Makefile o updated Win32 version to use config.h for preprocessor definitions instead of the Visual Studio project files, making manual tweaking and config of ngrep for Win32 consistent with *NIX and more obvious o changed third-party Makefiles to properly clean up after themselves o added support for radiotap (IEEE802_11_RADIO) o changed ``-s 0'' invocation to mimic the equivalent of tcpdump
37 lines
911 B
Text
37 lines
911 B
Text
$NetBSD: patch-aa,v 1.8 2006/11/29 10:28:48 adam Exp $
|
|
|
|
--- configure.orig 2006-11-15 04:40:56.000000000 +0100
|
|
+++ configure
|
|
@@ -4021,16 +4021,8 @@ fi
|
|
pcap_dir=""
|
|
for dir in $PCAP_DIR ; do
|
|
if test -d $dir -a -r "$dir/pcap.h" ; then
|
|
- if test -n "$pcap_dir" -a "$pcap_dir" != "$dir"; then
|
|
- echo
|
|
- echo; echo more than one set found in:
|
|
- echo $pcap_dir
|
|
- echo $dir
|
|
- echo; echo please wipe out all unused pcap installations
|
|
- exit
|
|
- else
|
|
- pcap_dir="$dir"
|
|
- fi
|
|
+ pcap_dir="$dir"
|
|
+ break
|
|
fi
|
|
done
|
|
|
|
@@ -4256,7 +4248,12 @@ if test "${ac_cv_lib_pcap_pcap_open_live
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpcap $LIBS"
|
|
+case `uname -s` in
|
|
+SunOS)
|
|
+ LIBS="-lpcap -lxnet $LIBS" ;;
|
|
+*)
|
|
+ LIBS="-lpcap $LIBS" ;;
|
|
+esac
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|