head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.160 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.158 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.156 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.154 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.8.0.152 pkgsrc-2025Q1-base:1.8 pkgsrc-2024Q4:1.8.0.150 pkgsrc-2024Q4-base:1.8 pkgsrc-2024Q3:1.8.0.148 pkgsrc-2024Q3-base:1.8 pkgsrc-2024Q2:1.8.0.146 pkgsrc-2024Q2-base:1.8 pkgsrc-2024Q1:1.8.0.144 pkgsrc-2024Q1-base:1.8 pkgsrc-2023Q4:1.8.0.142 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.140 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.138 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.136 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.8.0.134 pkgsrc-2022Q4-base:1.8 pkgsrc-2022Q3:1.8.0.132 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.8.0.130 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.128 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.126 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.124 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.8.0.122 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.120 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.118 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.116 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.112 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.92 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.114 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.110 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.108 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.106 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.104 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.102 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.100 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.98 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.96 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.94 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.90 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.88 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.86 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.84 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.82 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.80 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.78 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.76 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.74 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.72 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.70 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.68 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.66 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.64 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.62 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.60 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.58 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.56 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.54 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.52 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.50 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.48 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.46 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.44 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.42 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.40 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.38 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.36 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.34 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.32 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.30 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.28 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.8.0.26 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.24 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.22 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.20 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.18 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.16 pkgsrc-2008Q2-base:1.8 cwrapper:1.8.0.14 pkgsrc-2008Q1:1.8.0.12 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.10 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.8 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.6 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.4 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.2 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.7.0.14 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.12 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.10 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.8 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.6 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.4 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.2 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.6.0.6 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.4 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.2 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.5.0.2 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.4.0.10 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.3 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2; locks; strict; comment @# @; 1.8 date 2006.11.29.10.28.48; author adam; state Exp; branches; next 1.7; 1.7 date 2005.02.25.09.23.41; author adam; state Exp; branches; next 1.6; 1.6 date 2004.04.13.13.50.05; author adam; state Exp; branches; next 1.5; 1.5 date 2004.01.30.14.36.09; author adam; state Exp; branches; next 1.4; 1.4 date 2001.09.14.23.05.43; author wiz; state Exp; branches; next 1.3; 1.3 date 2001.03.05.14.39.09; author hubertf; state Exp; branches; next 1.2; 1.2 date 99.07.15.00.44.04; author hubertf; state Exp; branches; next 1.1; 1.1 date 99.07.02.10.26.03; author agc; state Exp; branches; next ; desc @@ 1.8 log @Changes 1.45: 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 @ text @$NetBSD$ --- 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 @ 1.7 log @Changes 1.43: * healed the win32 code fork: ngrep now builds from the same source tree for all platforms including Windows * re-wrote the privilege revocation logic after problems were reported with the SPC version, and removed non-root drop_privs capability altogether * fix off-by-one bug which caused ngrep to exit 1 packet early when ``-A'' as invoked * Fixed problematic configtest for old broken-redhat-glibc UDP header * ngrep now sets a pcap filter "ip" by default, if one is not specified * header offset fix to 802.11 processing * support IGMP and Raw (unknown IP protocol) type packets * support for latest versions of libpcap (0.8.3) and winpcap (3.1 beta 4) * updated configure to autoconf 2.59, and config.guess and config.sub to latest versions * updated PCRE from 3.4 to 5.0 * and various minor changes and updates to improve ngrep @ text @d3 1 a3 1 --- configure.orig 2005-02-24 04:25:20.000000000 +0000 d5 1 a5 1 @@@@ -3231,16 +3231,8 @@@@ fi; d24 1 a24 1 @@@@ -3421,7 +3413,12 @@@@ if test "${ac_cv_lib_pcap_pcap_open_live @ 1.6 log @Changes 1.42: * rewrote the entire configure.in/config.h.in to autoconf 2.57 to be more consistent with normal autoconf'd programs. corrects bugs around packaging impediments and typos. * improved privilege dropping code and added more options to configure to govern its behaviour * added flag to turn off privilege revocation logic * added multiline match as default and ability to enforce previous default single-line match (bugfix + feature) * added ability to read bpf filter expression from file * added ability to force the column width to a certain size * added two new output modes: ``byline'', whose output respects embedded carriage returns (useful for http dumps), and ``none'', which prints out each dump as a single line no matter what. * added ability to specify alternate nonprintable character (default is ``.''). * made ``-q'' effects more consistent and usable for scenarios where ``-I'' and/or ``-O'' are being employed * documentation updated @ text @d3 1 a3 1 --- configure.orig 2004-01-04 21:03:31.000000000 +0000 d5 2 a6 1 @@@@ -3274,16 +3274,8 @@@@ pcap_dir="" d8 1 a8 2 if test -d $dir -a -r "$dir/pcap.h" -a \ -r "$dir/net/bpf.h" ; then d24 1 a24 1 @@@@ -3309,7 +3301,12 @@@@ if test "${ac_cv_lib_pcap_pcap_open_live a35 1 #line $LINENO "configure" d37 1 @ 1.5 log @Changes 1.41: * improved support for a few OSes * 802.11 support Changes 1.40: * OpenBSD tun device support * MacOS X support * ISDN (SLL) support * fixed bug from not considering caplen in payload length calculations @ text @d3 1 a3 1 --- configure.orig 2003-08-10 02:12:55.000000000 +0000 d5 2 a6 2 @@@@ -1566,16 +1566,8 @@@@ pcap_dir="" for dir in $PCAP_DIR ; do d8 1 a8 1 -r "$dir/net/bpf.h" ; then d10 1 a10 1 - echo d12 1 a12 1 - echo $pcap_dir d16 1 a16 1 - else d19 2 a20 2 + pcap_dir="$dir" + break d24 2 a25 2 @@@@ -1968,7 +1960,12 @@@@ if eval "test \"`echo '$''{'ac_cv_lib_$a echo $ac_n "(cached) $ac_c" 1>&6 d27 1 a27 1 ac_save_LIBS="$LIBS" d33 1 a33 1 + LIBS="-lpcap $LIBS" ;; d35 3 a37 3 cat > conftest.$ac_ext <&6 echo "configure:1210: checking for old version of bpf.h" >&5 if test -z "$pcapdir"; then - dir="/usr/include"; + if test -f $prefix/include/net/bpf.h; then + dir="$prefix/include"; + else + dir="/usr/include"; + fi else dir="$pcapdir"; fi @@@@ -1275,7 +1279,12 @@@@ d17 1 a17 1 #line 1281 "configure" @