head 1.10; access; symbols pkgsrc-2026Q1:1.10.0.4 pkgsrc-2026Q1-base:1.10 pkgsrc-2025Q4:1.10.0.2 pkgsrc-2025Q4-base:1.10 pkgsrc-2025Q3:1.9.0.112 pkgsrc-2025Q3-base:1.9 pkgsrc-2025Q2:1.9.0.110 pkgsrc-2025Q2-base:1.9 pkgsrc-2025Q1:1.9.0.108 pkgsrc-2025Q1-base:1.9 pkgsrc-2024Q4:1.9.0.106 pkgsrc-2024Q4-base:1.9 pkgsrc-2024Q3:1.9.0.104 pkgsrc-2024Q3-base:1.9 pkgsrc-2024Q2:1.9.0.102 pkgsrc-2024Q2-base:1.9 pkgsrc-2024Q1:1.9.0.100 pkgsrc-2024Q1-base:1.9 pkgsrc-2023Q4:1.9.0.98 pkgsrc-2023Q4-base:1.9 pkgsrc-2023Q3:1.9.0.96 pkgsrc-2023Q3-base:1.9 pkgsrc-2023Q2:1.9.0.94 pkgsrc-2023Q2-base:1.9 pkgsrc-2023Q1:1.9.0.92 pkgsrc-2023Q1-base:1.9 pkgsrc-2022Q4:1.9.0.90 pkgsrc-2022Q4-base:1.9 pkgsrc-2022Q3:1.9.0.88 pkgsrc-2022Q3-base:1.9 pkgsrc-2022Q2:1.9.0.86 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.9.0.84 pkgsrc-2022Q1-base:1.9 pkgsrc-2021Q4:1.9.0.82 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.80 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.78 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.76 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.74 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.72 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.68 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.48 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.9.0.70 pkgsrc-2019Q4-base:1.9 pkgsrc-2019Q3:1.9.0.66 pkgsrc-2019Q3-base:1.9 pkgsrc-2019Q2:1.9.0.64 pkgsrc-2019Q2-base:1.9 pkgsrc-2019Q1:1.9.0.62 pkgsrc-2019Q1-base:1.9 pkgsrc-2018Q4:1.9.0.60 pkgsrc-2018Q4-base:1.9 pkgsrc-2018Q3:1.9.0.58 pkgsrc-2018Q3-base:1.9 pkgsrc-2018Q2:1.9.0.56 pkgsrc-2018Q2-base:1.9 pkgsrc-2018Q1:1.9.0.54 pkgsrc-2018Q1-base:1.9 pkgsrc-2017Q4:1.9.0.52 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.9.0.50 pkgsrc-2017Q3-base:1.9 pkgsrc-2017Q2:1.9.0.46 pkgsrc-2017Q2-base:1.9 pkgsrc-2017Q1:1.9.0.44 pkgsrc-2017Q1-base:1.9 pkgsrc-2016Q4:1.9.0.42 pkgsrc-2016Q4-base:1.9 pkgsrc-2016Q3:1.9.0.40 pkgsrc-2016Q3-base:1.9 pkgsrc-2016Q2:1.9.0.38 pkgsrc-2016Q2-base:1.9 pkgsrc-2016Q1:1.9.0.36 pkgsrc-2016Q1-base:1.9 pkgsrc-2015Q4:1.9.0.34 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.9.0.32 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.9.0.30 pkgsrc-2015Q2-base:1.9 pkgsrc-2015Q1:1.9.0.28 pkgsrc-2015Q1-base:1.9 pkgsrc-2014Q4:1.9.0.26 pkgsrc-2014Q4-base:1.9 pkgsrc-2014Q3:1.9.0.24 pkgsrc-2014Q3-base:1.9 pkgsrc-2014Q2:1.9.0.22 pkgsrc-2014Q2-base:1.9 pkgsrc-2014Q1:1.9.0.20 pkgsrc-2014Q1-base:1.9 pkgsrc-2013Q4:1.9.0.18 pkgsrc-2013Q4-base:1.9 pkgsrc-2013Q3:1.9.0.16 pkgsrc-2013Q3-base:1.9 pkgsrc-2013Q2:1.9.0.14 pkgsrc-2013Q2-base:1.9 pkgsrc-2013Q1:1.9.0.12 pkgsrc-2013Q1-base:1.9 pkgsrc-2012Q4:1.9.0.10 pkgsrc-2012Q4-base:1.9 pkgsrc-2012Q3:1.9.0.8 pkgsrc-2012Q3-base:1.9 pkgsrc-2012Q2:1.9.0.6 pkgsrc-2012Q2-base:1.9 pkgsrc-2012Q1:1.9.0.4 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.9.0.2 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q3:1.8.0.54 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.52 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.8.0.50 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.48 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.46 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.44 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.42 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.40 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.38 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.8.0.36 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.34 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.32 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.30 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.28 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.8.0.26 pkgsrc-2008Q2-base:1.8 cwrapper:1.8.0.24 pkgsrc-2008Q1:1.8.0.22 pkgsrc-2008Q1-base:1.8 pkgsrc-2007Q4:1.8.0.20 pkgsrc-2007Q4-base:1.8 pkgsrc-2007Q3:1.8.0.18 pkgsrc-2007Q3-base:1.8 pkgsrc-2007Q2:1.8.0.16 pkgsrc-2007Q2-base:1.8 pkgsrc-2007Q1:1.8.0.14 pkgsrc-2007Q1-base:1.8 pkgsrc-2006Q4:1.8.0.12 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.8.0.10 pkgsrc-2006Q3-base:1.8 pkgsrc-2006Q2:1.8.0.8 pkgsrc-2006Q2-base:1.8 pkgsrc-2006Q1:1.8.0.6 pkgsrc-2006Q1-base:1.8 pkgsrc-2005Q4:1.8.0.4 pkgsrc-2005Q4-base:1.8 pkgsrc-2005Q3:1.8.0.2 pkgsrc-2005Q3-base:1.8 pkgsrc-2005Q2:1.7.0.14 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.12 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.7.0.10 pkgsrc-2004Q4-base:1.7 pkgsrc-2004Q3:1.7.0.8 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.6 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.4 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.7.0.2 pkgsrc-2003Q4-base:1.7 netbsd-1-6-1:1.6.0.6 netbsd-1-6-1-base:1.6 netbsd-1-6:1.6.0.8 netbsd-1-6-RELEASE-base:1.6 pkgviews:1.6.0.4 pkgviews-base:1.6 buildlink2:1.6.0.2 buildlink2-base:1.6 netbsd-1-5-PATCH003:1.6 netbsd-1-5-PATCH001:1.6 netbsd-1-5-RELEASE:1.6 netbsd-1-4-PATCH003:1.6 netbsd-1-4-PATCH002:1.6 comdex-fall-1999:1.6 netbsd-1-4-PATCH001:1.5 netbsd-1-4-RELEASE:1.5 FreeBSD-current-1997-12-14:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.10 date 2025.12.13.16.42.03; author vins; state Exp; branches; next 1.9; commitid HJBYYtOUA4RjGgmG; 1.9 date 2011.12.07.15.18.51; author joerg; state Exp; branches; next 1.8; 1.8 date 2005.08.26.08.32.13; author adam; state Exp; branches; next 1.7; 1.7 date 2003.08.20.08.28.57; author grant; state Exp; branches; next 1.6; 1.6 date 99.09.15.15.43.13; author drochner; state Exp; branches; next 1.5; 1.5 date 99.04.16.22.30.52; author abs; state Exp; branches; next 1.4; 1.4 date 98.01.24.21.52.00; author hubertf; state dead; branches; next 1.3; 1.3 date 97.12.14.23.46.27; author thorpej; state Exp; branches; next 1.2; 1.2 date 97.12.14.22.43.05; author thorpej; state dead; branches; next 1.1; 1.1 date 97.12.14.21.42.18; author thorpej; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 97.12.14.21.42.18; author thorpej; state Exp; branches; next ; desc @@ 1.10 log @net/tcptrace: fix build * Fix build with gcc14. * Fix linking with libpcap. * Fix some other warnings. * Some cosmetic changes. @ text @$NetBSD: patch-aa,v 1.9 2011/12/07 15:18:51 joerg Exp $ --- Makefile.in.orig 2004-03-04 20:33:56.000000000 +0000 +++ Makefile.in @@@@ -1,4 +1,4 @@@@ -# +# # Makefile for tcptrace # srcdir = @@srcdir@@ @@@@ -34,8 +34,8 @@@@ DEFINES += -DBUNZIP2="\"bunzip2\"" # ################################################################## PCAP_LDLIBS = @@V_PCAP_LDLIBS@@ -PCAP_INCS = -I/usr/local/include -I. -I../pcap -I/usr/include/pcap -PCAP_LDFLAGS = -L/usr/local/lib -Llib -Lpcap -L../pcap -L./cygwin-libs +PCAP_INCS = -I. +PCAP_LDFLAGS = -Llib -L./cygwin-libs @@@@ -129,8 +129,8 @@@@ DEFINES += -DGROK_ERF # ################################################################## # Pathname of directory to install the binary -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/ +BINDIR = @@PREFIX@@/bin +MANDIR = @@PREFIX@@/@@PKGMANDIR@@ ################################################################## @@@@ -151,7 +151,7 @@@@ INCLS = -I. @@V_INCLS@@ ${PCAP_INCS} # Probably want full optimization # FreeBSD needs -Ae # HP needs -Ae -CFLAGS = $(CCOPT) $(DEFINES) @@DEFS@@ @@V_DEFINES@@ $(INCLS) +CFLAGS += $(CCOPT) $(DEFINES) @@DEFS@@ @@V_DEFINES@@ $(INCLS) # Standard LIBS LDLIBS = @@LIBS@@ ${PCAP_LDLIBS} @@@@ -196,7 +196,7 @@@@ tcptrace: ${OFILES} # your machine, just hack in a quick string below in place of the command. version.o: ${CFILES} Makefile ${CC} ${CFLAGS} -o version.o -c $(srcdir)/version.c \ - -DBUILT_USER="\"`whoami`\"" -DBUILT_HOST="\"`hostname`\"" -DBUILT_DATE="\"`date`\"" + -DBUILT_USER="\"@@USER@@\"" -DBUILT_HOST="\"@@HOST@@\"" -DBUILT_DATE="\"`date`\"" # # special rules for scanner/parser @@@@ -210,26 +210,11 @@@@ YACC_VAL=@@YACC@@ LEX_VAL=@@LEX@@ filt_parser.c: filt_parser.y filter.h - if test "${YACC_VAL}" = "bison -y" ; then \ - @@YACC@@ -vd -p filtyy -o filt_parser.c $(srcdir)/filt_parser.y ;\ - cp filt_parser.c flex_bison ;\ - cp filt_parser.h flex_bison ;\ - else \ - echo "Could not find BISON on this system";\ - echo "Copying the BISON output files generated at our place" ;\ - cp flex_bison/filt_parser.c . ;\ - cp flex_bison/filt_parser.h . ;\ - fi + @@YACC@@ -vd -p filtyy -o filt_parser.c $(srcdir)/filt_parser.y filt_scanner.c: filt_scanner.l filter.h filt_parser.h - if test ${LEX_VAL} = "flex" ; then \ - @@LEX@@ -t -Pfiltyy $(srcdir)/filt_scanner.l > filt_scanner.c ;\ - cp filt_scanner.c flex_bison ;\ - else \ - echo "Could not find FLEX on this system" ;\ - echo "Copying the FLEX output files generated at our place" ;\ - cp flex_bison/filt_scanner.c . ;\ - fi + @@LEX@@ -t -Pfiltyy $(srcdir)/filt_scanner.l > filt_scanner.c + cp filt_scanner.c flex_bison # filt_parser.h created as a side effect of running yacc... filt_parser.h: filt_parser.c @ 1.9 log @Don't use "bool" as struct member. Fix flex/bison usage @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.8 2005/08/26 08:32:13 adam Exp $ d28 2 a29 2 +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/man d47 1 a47 1 + -DBUILT_USER="\"${USER}\"" -DBUILT_HOST="\"${HOST}\"" -DBUILT_DATE="\"`date`\"" @ 1.8 log @Changes 6.6.2: Fixed tcpdump.c to trace IP packets buried under VLAN headers. Changes 6.6.3: Added a function MissingData() in trace.c to check if TCP segments were missing or were truncated when the -e option is given to extract contents. Changes 6.6.4: Adding in the INBOUNDS module into the main tcptrace development tree. It is NOT built in by default though; you need to uncomment a line in Makefile.in to enable it. Changes 6.6.5: * Josh fixed the file format searching order, putting tcpdump format to the end in file_formats.h as a work around for libpcap brokenness. * Fixed Mfopen() in mfiles.c to open content data files that we generate in "binary" mode - by changing fopen mode from "w" to "wb+" and "a" to "ab+". The 'b' is dummy in UNIX systems, but seems to have some semantic in the Windows world. * Fixed QuitSig() function in tcptrace.c by adding a call to udptrace_done() so that we print out UDP connection stats too (if one were piping live tcpdump traffic to tcptrace and "ctrl-c"-ed it in the middle, for example). On the way, also fixed the arbitrary "buf[4096]" declaration to be written correctly as "buf[COMP_HDR_SIZE]" in the PipeFitting() function. Changes 6.6.6: Fixed the callback function in tcpdump.c to prevent garbage data from getting into the ip_buf buffer. Changes 6.6.7: Fixed bugs found in the AVL search function that had major bugs / complexity issues. @ text @d1 1 a1 1 $NetBSD$ d51 30 @ 1.7 log @Update tcptrace to 6.4.2. summary of changes since 5.2.1 (there are a few, since this pkg is ~4 years old): 5.2.2 - Mon Sep 27, 1999 bug fix from Jamshid Majdavi (and Kevin Lahey), SYN-ACKs containing window scaling were getting scaled (and shouldn't be). 5.2.3 - Interal changes and enhancements 5.2.4 - Tue Apr 11, 2000 bug fix by Priya - we were detecting rexmitted bytes in segments in error in some cases fixed bug in IPv6 header processing reported by Takayoshi Ohnishi, IPPROTO_ICMPV6 was causing infinite loop 5.2.6 - Thu Jul 6, 2000 fixed bug in TCP checksum code, it was always saying CORRECT 6.0.0a - preparing for alpha release of version 6 6.0.1a - added support for atmsnoop output format in snoop.c 6.0.1a2 - changed all of the DLT_ constants in tcpdump.[ch] to PCAP_DLT_ with the same numbers to avoid OSs that are renumbering them. 6.0.1a3 - added format characters to several options, as an extension of a suggestion by Brian Utterback. 6.0.0b4- Saturday, 6 Oct 2001 Added options : --xplot_all_files and --xplot_args. Added support for zero window probe packets and urgent data packets. Fixed all sprintf's in the code to snprintf's to thwart any buffer overflow attacks. Changed functionality for window scaled connections so that the output of "min win adv" does not print the minimum window as advertised in SYN packets as SYN packets cannot be scaled themselves. Completely revamped the http module with code sent by Bruce Mah. Added code to verify TCP and UDP checksums in IPv6 packets. However, code has not been tested thoroughly yet. 6.0.1 - Mon Dec 3, 2001 This is the version we'll release Also, added support with --print_seq_zero for printing sequence numbers as relative to the SYN rather than absolute. NOTE: this only works for "-P" which uses connection records, but NOT for "-p" (which doesn't) Also fixed the SACK-printing code to print in decimal if requested. Updated the manual page and made the necessary change to Makefile.in so that the manual page gets installed when tcptrace is installed. Fixed a bug with with the statistics for average window advertisement. Average was showing more than max. Fixed a bug with ACK sequence comparisons in the HTTP module. Many thanks to Daikichi Osuga for pointing out the error. Fixed a divide-by-zero error in PlotHist() in mod_rttgraph.c. Matt Muggeridge has been very kind in providing detailed information regarding porting tcptrace to OpenVMS. Please read the new file README.OpenVMS if you are interested in running tcptrace on OpenVMS. Changes made to code in order to be able to compile tcptrace under cygwin on Windows. Now works on windows too. Does not support reading compressed dump files directly though. The ns code was modified by Angelos Stavrou to read in the more detailed output from the extra headers in the ns FullTcp. Fixed a bug with the host letters. The function HostLetter was skipping host names after y, z ... jumping to ba, bb, ... instead of aa, ab ... 6.2.0 - Stable - Fri Jul 26, 2002 This is the version we'll release 6.2.1 - Fri Aug 09, 2002 enhance fulltcp file reading from r.schramp@@kpn.com 6.2.2 - Fri Aug 30, 2002 added vlan support to snoop for Tysko. Need to add support in other formats too, but I don't have a packet dump to test against yet - sdo 6.2.3 - Wed Sep 18, 2002 bugfix: For FIN segments with data only FIN was getting plotted and not the data. Now data gets plotted with the default color and then one byte is plotted with the synfin color. For no data, only one byte of FIN is plotted with the synfin color. 6.2.4 - Wed Sep 18, 2002 bugfix: RST_IN relative offset was being calculated using the incorrect sequence space. 6.2.5 - Mon Nov 11, 2002 bugfix: Negative sequence numbers were being printed by function PrintSeqRep() for the packet print '-p' / '-P' switches. Changed the print format from %d to %u. 6.2.6 - Thu Nov 14, 2002 bugfix: '-c' option - ignore non-complete connections was working only for long output. Fixed it to work for brief output too. Release 6.4.0 ============= Bugfix made to fix misbehavior due to FILE synchronization issues found when tcptrace exits with "PCAP error - truncated file" when asked to read real-time network packets from STDIN - Mani. Patches added to process dumpfiles with 802.11 wireless headers for the Prism2 chipset. Courtesy - Brandon Eisenmann. Added new extended option "--nonreal_live_conn_interval" option to let the user set the duration to timeout live connections, in non real-time mode - Ramani. Merged from development tree: Added the options --oUDP, --iUDP, --oTCP, --iTCP to filter out TCP and UDP connections - Mani Added options --csv, --tsv, --sv= for comma/tab/-separated values to be printed with the long output - Avinash 6.4.1 : 26 APR 2003 Mani ----- Fixed a bug in the processing of IPv6 extension headers in ipv6.c:findheader() 6.4.2 : 3 MAY 2003 Jitesh ----- Fixed the processing of duplicate ACKs as in the BSD stack to count towards the 3 dupacks required for fast-retransmit. @ text @d3 1 a3 1 --- Makefile.in.orig 2003-04-04 09:38:48.000000000 +1000 d22 1 a22 1 @@@@ -118,8 +118,8 @@@@ DEFINES += -DGROK_NETSCOUT d33 1 a33 1 @@@@ -140,7 +140,7 @@@@ INCLS = -I. @@V_INCLS@@ ${PCAP_INCS} d42 1 a42 1 @@@@ -185,7 +185,7 @@@@ tcptrace: ${OFILES} @ 1.6 log @update to 5.2.0 (too many changes/fixes too list here) @ text @d2 7 a8 4 --- Makefile.in.orig Wed Sep 8 03:31:58 1999 +++ Makefile.in Wed Sep 15 16:40:36 1999 @@@@ -179,7 +179,7 @@@@ # easily. d10 41 a50 6 filt_parser.c: filt_parser.y filter.h - bison -vd -p filtyy filt_parser.y -o filt_parser.c + yacc -vd -p filtyy -o filt_parser.c filt_parser.y cp filt_parser.c flex_bison cp filt_parser.h flex_bison filt_scanner.c: filt_scanner.l filter.h filt_parser.h @ 1.5 log @Update to 5.1.1. Add patch to avoid bison. @ text @d2 3 a4 3 --- Makefile.in.orig Fri Apr 16 15:11:50 1999 +++ Makefile.in Fri Apr 16 15:12:02 1999 @@@@ -170,7 +170,7 @@@@ @ 1.4 log @portlint: replaced via NO_INSTALL @ text @d1 12 a12 14 *** Makefile.in.orig Sun Dec 14 18:37:29 1997 --- Makefile.in Sun Dec 14 18:37:49 1997 *************** *** 130,135 **** --- 130,138 ---- tcptrace: ${OFILES} ${CC} ${LDFLAGS} ${CFLAGS} ${OFILES} -o tcptrace ${LDLIBS} + # Dummy rule to make pkgsrc happy. + install: + # # special rule for version.c # needs to be recompiled EVERY time @ 1.3 log @Fix registration of the package. @ text @@ 1.2 log @Update to tcptrace 4.1.3, and make the package work on NetBSD. @ text @d1 14 a14 30 --- Makefile.orig Wed Jul 16 14:55:15 1997 +++ Makefile Wed Jul 16 14:58:25 1997 @@@@ -38,8 +38,9 @@@@ # #CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES} # -CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES} +#CFLAGS = -g -O3 -fno-builtin -Wall ${INCS} ${DEFINES} +CFLAGS += -fno-builtin ${INCS} ${DEFINES} # for profiling (under Solaris 5.2) #CFLAGS += -pg @@@@ -68,7 +69,7 @@@@ # for general Unix boxes (I hope) # LDLIBS = -lpcap -lm # -LDLIBS = -lnsl -lsocket -lm -lpcap +LDLIBS = -lpcap -lm @@@@ -86,6 +87,7 @@@@ tcptrace: ${OFILES} ${CC} ${LDFLAGS} ${CFLAGS} ${OFILES} -o tcptrace ${LDLIBS} +install: tcptrace # # obvious dependencies @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Package for tcptrace, a TCP analysis tool. From FreeBSD. @ text @@