> tcpstat 1.5 compiles on openbsd 4.0 and fixes a few bugs in 1.4. So I was > suprised it hasn't been upped to 1.5 in ports. Is there any reason? > Otherwise I would try to do it myself.
When I spoke about being persistent I was specifically speaking about submissions. I see no diff attached to your email. You could do something constructive like test the diff below. Index: Makefile =================================================================== RCS file: /cvs/ports/net/tcpstat/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- Makefile 16 Dec 2004 00:31:26 -0000 1.4 +++ Makefile 22 Nov 2006 22:46:21 -0000 @@ -2,7 +2,7 @@ COMMENT= "report network interface statistics" -DISTNAME= tcpstat-1.4 +DISTNAME= tcpstat-1.5 CATEGORIES= net MASTER_SITES= http://www.frenchfries.net/paul/tcpstat/ Index: distinfo =================================================================== RCS file: /cvs/ports/net/tcpstat/distinfo,v retrieving revision 1.2 diff -u -p -r1.2 distinfo --- distinfo 5 Jan 2005 17:15:03 -0000 1.2 +++ distinfo 22 Nov 2006 22:46:21 -0000 @@ -1,4 +1,4 @@ -MD5 (tcpstat-1.4.tar.gz) = 74696fee92396e000efa9cc48283af71 -RMD160 (tcpstat-1.4.tar.gz) = c6602e9b3acf379a1fa437b38dbebbfb9051c886 -SHA1 (tcpstat-1.4.tar.gz) = ab22107f280874d2fa5a6afe7f96ca6f515a262e -SIZE (tcpstat-1.4.tar.gz) = 66689 +MD5 (tcpstat-1.5.tar.gz) = 93ca0ffb8f319ecf2e42ff925a7e6854 +RMD160 (tcpstat-1.5.tar.gz) = 01aafe967d2ddb78d1517391e67019596ae65465 +SHA1 (tcpstat-1.5.tar.gz) = 3881edafe2a45c807a6f197792251036c599ec50 +SIZE (tcpstat-1.5.tar.gz) = 93102 Index: patches/patch-doc_tcpstat_1 =================================================================== RCS file: patches/patch-doc_tcpstat_1 diff -N patches/patch-doc_tcpstat_1 --- patches/patch-doc_tcpstat_1 30 Jan 2001 15:22:54 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,57 +0,0 @@ -$OpenBSD: patch-doc_tcpstat_1,v 1.1.1.1 2001/01/30 15:22:54 avsm Exp $ ---- doc/tcpstat.1.orig Tue Jan 30 01:26:46 2001 -+++ doc/tcpstat.1 Tue Jan 30 01:30:17 2001 -@@ -73,11 +73,11 @@ Default is 5 seconds. - When reading data from - .Ar filename , - .Nm --will exit immediately after the entire file has been procesed. When -+will exit immediately after the entire file has been processed. When - collecting data from - .Ar interface , - .Nm --will exit upon recieving a SIGINT, or (if the -+will exit upon receiving a SIGINT, or (if the - .Fl s - option is specified) after - .Ar seconds -@@ -92,7 +92,7 @@ minute, hour, day, and month. - .It Fl b Ar bps - Bandwidth mode. - Displays the total number of seconds the --data-throughput exceded -+data-throughput exceeded - .Ar bps , - and the percentage of total time this was, - as if the interface were limited to -@@ -111,7 +111,7 @@ and the percentage of total time this wa - section below to see difference between "dumb" and normal - bandwidth modes. - .It Fl e --Supresses the display of empty intervals. -+Suppresses the display of empty intervals. - .It Fl F - Flush the output streams after printing each interval. Sometimes useful - when redirecting output into a file, or piping tcpstat into another -@@ -216,10 +216,10 @@ the number of UDP packets - .It % Ns V - the number of IPv6 packets - .It % Ns Ar number --switch the output to the file desciptor -+switch the output to the file descriptor - .Ar number - at this point in the string. All output for each interval before this --parameter is by default the standard output (file descriptor 1). Usefull -+parameter is by default the standard output (file descriptor 1). Useful - when redirecting the output into more than one file (or fifo) for separate - statisics. Be sure you know where they are going. Writing to "dangling" - file descriptors (without directing them to a specific destination) may -@@ -293,7 +293,7 @@ samples of data), the bandwidth numbers - variable. Generally speaking, if you often have rapid bursts of packet data, - the bandwidth reported will not reflect this when - .Ar interval --is sufficently large. This results in an "averaging" effect, which may or -+is sufficiently large. This results in an "averaging" effect, which may or - may not be desired. On the other hand, if - .Ar interval - is too small (say < 0.01), this results in unrealisticaly large Index: patches/patch-src_catpcap_c =================================================================== RCS file: patches/patch-src_catpcap_c diff -N patches/patch-src_catpcap_c --- patches/patch-src_catpcap_c 24 Feb 2002 00:48:53 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_catpcap_c,v 1.1 2002/02/24 00:48:53 pvalchev Exp $ ---- src/catpcap.c.orig Fri Nov 3 05:39:27 2000 -+++ src/catpcap.c Sat Feb 23 17:40:17 2002 -@@ -145,7 +145,8 @@ void error(char *s) { - } - - int main(int argc, char **argv) { -- char ch, filename[BUF_SIZ]; -+ char filename[BUF_SIZ]; -+ int ch; - - *filename = 0; - while ( (ch = getopt(argc, argv, "h?f:r:")) != -1) { Index: patches/patch-src_dump_c =================================================================== RCS file: patches/patch-src_dump_c diff -N patches/patch-src_dump_c --- patches/patch-src_dump_c 24 Feb 2002 00:48:53 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_dump_c,v 1.1 2002/02/24 00:48:53 pvalchev Exp $ ---- src/dump.c.orig Fri Nov 3 05:39:27 2000 -+++ src/dump.c Sat Feb 23 17:40:05 2002 -@@ -90,7 +90,8 @@ void error(char *s) { - } - - int main(int argc, char **argv) { -- char ch, filename[BUF_SIZ]; -+ char filename[BUF_SIZ]; -+ int ch; - - *filename = 0; - while ( (ch = getopt(argc, argv, "h?lf:r:s:")) != -1) { Index: patches/patch-src_tcpprof_c =================================================================== RCS file: patches/patch-src_tcpprof_c diff -N patches/patch-src_tcpprof_c --- patches/patch-src_tcpprof_c 24 Feb 2002 00:48:53 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_tcpprof_c,v 1.1 2002/02/24 00:48:53 pvalchev Exp $ ---- src/tcpprof.c.orig Fri Nov 3 05:39:27 2000 -+++ src/tcpprof.c Sat Feb 23 17:43:39 2002 -@@ -105,7 +105,8 @@ void error(char *s) { - } - - int main(int argc, char **argv) { -- char ch, filename[BUF_SIZ]; -+ char filename[BUF_SIZ]; -+ int ch; - u_int stats_types = TYPE_ALL; - int flags = GET_TCPD_COUNT_LINKSIZE | GET_TCPD_DO_LIVE_PROMISC; - Double capture_seconds = -1.0; Index: patches/patch-src_tcpstat_c =================================================================== RCS file: patches/patch-src_tcpstat_c diff -N patches/patch-src_tcpstat_c --- patches/patch-src_tcpstat_c 24 Feb 2002 00:48:53 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_tcpstat_c,v 1.1 2002/02/24 00:48:53 pvalchev Exp $ ---- src/tcpstat.c.orig Tue Jan 23 12:17:00 2001 -+++ src/tcpstat.c Sat Feb 23 17:39:48 2002 -@@ -466,7 +466,8 @@ void error(char *s) { - } - - int main(int argc, char **argv) { -- char ch, *filename; -+ char *filename; -+ int ch; - - if (getuid() != geteuid()) - is_setuid = 1; Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/net/tcpstat/pkg/PLIST,v retrieving revision 1.2 diff -u -p -r1.2 PLIST --- pkg/PLIST 15 Sep 2004 18:17:46 -0000 1.2 +++ pkg/PLIST 22 Nov 2006 22:46:21 -0000 @@ -1,5 +1,7 @@ @comment $OpenBSD: PLIST,v 1.2 2004/09/15 18:17:46 espie Exp $ +bin/tcpprof bin/tcpstat [EMAIL PROTECTED] man/man1/tcpprof.1 @man man/man1/tcpstat.1 share/examples/tcpstat/ share/examples/tcpstat/Tips_and_Tricks.txt