add tcptrace port; jethro@dqc.org

-
tcptrace is a TCP dump file analysis tool written by Shawn Ostermann
at Ohio University. It is NOT a packet capture program. It reads
output dump files in the formats of several popular packet capturing
programs: tcpdump, snoop, etherpeek, and netm

For each connection, it keeps track of elapsed time, bytes/segments
sent and received, retransmissions, round trip times, window
advertisements, throughput, etc.  Its output format ranges from
Simple to Long to Very Detailed.
This commit is contained in:
brad 1999-11-12 14:14:52 +00:00
parent fc31139322
commit 9a0776e343
6 changed files with 126 additions and 0 deletions

26
net/tcptrace/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/11/12 14:14:52 brad Exp $
DISTNAME= tcptrace.5.2.1
PKGNAME= tcptrace-5.2.1
CATEGORIES= net
MASTER_SITES= http://jarok.cs.ohiou.edu/software/tcptrace/files/5.2.1/
MAINTAINER= jethro@dqc.org
GNU_CONFIGURE= yes
ALL_TARGET= tcptrace
WRKSRC= ${WRKDIR}/tcptrace_5.2.1
DOCFILES= ARGS BUGS CHANGES COPYRIGHT FAQ README README.mailing_list \
README.modules README.tput_graphs WWW dot_tcptracerc.sample
do-install:
@mkdir -p ${PREFIX}/share/doc/tcptrace
${INSTALL_PROGRAM} ${WRKSRC}/tcptrace ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tcptrace.man ${PREFIX}/man/man1/tcptrace.1
.for file in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tcptrace
.endfor
.include <bsd.port.mk>

3
net/tcptrace/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (tcptrace.5.2.1.tar.gz) = 2f182bede17f3be0f5d0ba9736463149
RMD160 (tcptrace.5.2.1.tar.gz) = c5b8c97108a6d21be8a0b781a98afdab22cf7a64
SHA1 (tcptrace.5.2.1.tar.gz) = 838f81a2f5537631c16af6ca49b69863f43d2bd3

View File

@ -0,0 +1,57 @@
--- Makefile.in.orig Thu Nov 4 13:15:54 1999
+++ Makefile.in Thu Nov 4 13:37:50 1999
@@ -12,7 +12,7 @@
# 2) Otherwise, if your system supports standard Unix "uncompress",
# then uncomment the following line to support on-the-fly
# decompression of ".Z" files...
-#DEFINES += -DUNCOMPRESS="\"uncompress\""
+DEFINES += -DUNCOMPRESS="\"uncompress\""
# - we'll do path search on the string you specify. If the program
# isn't in your path, you'll need to give the absolute path name.
# - if you want other formats, see the "compress.h" file.
@@ -30,8 +30,8 @@
#
##################################################################
PCAP_LDLIBS = -lpcap
-PCAP_INCS = -I/usr/local/include -I. -I../pcap -I/usr/include/pcap
-PCAP_LDFLAGS = -L/usr/local/lib -Llib -Lpcap -L../pcap
+PCAP_INCS =
+PCAP_LDFLAGS =
@@ -125,7 +125,7 @@
# Probably want full optimization
# FreeBSD needs -Ae
# HP needs -Ae
-CFLAGS = $(CCOPT) $(DEFINES) @DEFS@ @V_DEFINES@ $(INCLS)
+CFLAGS += $(DEFINES) @DEFS@ @V_DEFINES@ $(INCLS)
# Standard LIBS
LDLIBS = @LIBS@ ${PCAP_LDLIBS}
@@ -170,21 +170,13 @@
${CC} ${CFLAGS} -o version.o -c version.c \
-DBUILT_USER="\"`whoami`\"" -DBUILT_HOST="\"`hostname`\"" -DBUILT_DATE="\"`date`\""
-#
-# special rules for scanner/parser
-#
-# Note that I'm using the GNU bison/flex to get around the problems
-# caused by the fact that that pcap library ALSO uses YACC, which can
-# cause naming conflicts. The Gnu versions let you get around that
-# easily.
-#
filt_parser.c: filt_parser.y filter.h
- bison -vd -p filtyy filt_parser.y -o filt_parser.c
- cp filt_parser.c flex_bison
- cp filt_parser.h flex_bison
+ yacc -dv -p filtyy -bfilt_parser filt_parser.y
+ mv filt_parser.tab.c filt_parser.c
+ mv filt_parser.tab.h filt_parser.h
filt_scanner.c: filt_scanner.l filter.h filt_parser.h
flex -t -Pfiltyy 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
net/tcptrace/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
A TCP dump file analysis tool

25
net/tcptrace/pkg/DESCR Normal file
View File

@ -0,0 +1,25 @@
tcptrace is a TCP dump file analysis tool written by Shawn Ostermann
at Ohio University. It is NOT a packet capture program. It reads
output dump files in the formats of several popular packet capturing
programs: tcpdump, snoop, etherpeek, and netm
For each connection, it keeps track of elapsed time, bytes/segments
sent and received, retransmissions, round trip times, window
advertisements, throughput, etc. Its output format ranges from
Simple to Long to Very Detailed.
It can also produce three different types of graphs, as follows:
Time Sequence Graph
This is the format that Tim Shepard started using at MIT some
years ago. It shows segments sent and ACKs returned as a
function of time.
Instantaneous Throughput
This format shows the instantaneous (averaged over a few
segments) throughput of the connection as a function of time.
Round Trip Times
This format shows the round trip times for the ACKs as a
function of time.
The graphs produced are viewable only by Tim Shepard's wonderful
xplot program (in math/xplot).

14
net/tcptrace/pkg/PLIST Normal file
View File

@ -0,0 +1,14 @@
bin/tcptrace
man/man1/tcptrace.1
share/doc/tcptrace/ARGS
share/doc/tcptrace/BUGS
share/doc/tcptrace/CHANGES
share/doc/tcptrace/COPYRIGHT
share/doc/tcptrace/FAQ
share/doc/tcptrace/README
share/doc/tcptrace/README.mailing_list
share/doc/tcptrace/README.modules
share/doc/tcptrace/README.tput_graphs
share/doc/tcptrace/WWW
share/doc/tcptrace/dot_tcptracerc.sample
@dirrm share/doc/tcptrace