OpenBSD CVS

CVS log for src/usr.bin/tcpbench/tcpbench.c


[BACK] Up to [local] / src / usr.bin / tcpbench

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 21 16:46:04 2024 UTC (8 weeks, 2 days ago) by bluhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Fix white space.  OK tobhe@

Revision 1.69 / (download) - annotate - [select for diffs], Mon May 22 12:53:04 2023 UTC (11 months, 4 weeks ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.68: +2 -3 lines
Diff to previous 1.68 (colored)

Remove unused variable kerr.

ok bluhm@

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 22 12:37:00 2023 UTC (11 months, 4 weeks ago) by bluhm
Branch: MAIN
Changes since 1.67: +1 -5 lines
Diff to previous 1.67 (colored)

Remove duplicate entries in kvars.
OK tobhe@

Revision 1.67 / (download) - annotate - [select for diffs], Mon Aug 15 09:06:54 2022 UTC (21 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.66: +100 -273 lines
Diff to previous 1.66 (colored)

Use TCP_INFO instead of kvm magic to extract information about the tcp streams.
Variable names listed by -l change and there is no more need to change
kern.allowkmem. To get all possible values tcpbench still needs to be run
as root.
OK bluhm@ djm@

Revision 1.66 / (download) - annotate - [select for diffs], Sat Aug 6 23:35:30 2022 UTC (21 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.65: +15 -5 lines
Diff to previous 1.65 (colored)

Use NI_MAXHOST and NI_MAXSERV constants to allocate temporary strings
for saddr_ntop() and inet_ntop().  This avoids truncation warnings
and is better than arbitrary size values with 64 or 128 bytes.
OK deraadt@

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:20 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 4 18:46:25 2021 UTC (3 years, 3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.63: +20 -4 lines
Diff to previous 1.63 (colored)

Implement the nc(1) -D socket debug option also in tcpbench(1).
This allows to analyse TCP connections.
OK claudio@

Revision 1.63 / (download) - annotate - [select for diffs], Mon May 4 12:13:09 2020 UTC (4 years ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.62: +10 -3 lines
Diff to previous 1.62 (colored)

tcpbench: display stats on SIGINFO, not just at exit. ok tb@ procter@ deraadt@

Revision 1.62 / (download) - annotate - [select for diffs], Sat May 2 22:00:29 2020 UTC (4 years ago) by procter
Branch: MAIN
Changes since 1.61: +152 -40 lines
Diff to previous 1.61 (colored)

Add ping(1)-like summary statistics.
ok djm@ deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Feb 12 14:46:36 2020 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Nov 26 17:51:33 2019 UTC (4 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.59: +5 -1 lines
Diff to previous 1.59 (colored)

Prevent divide-by zero in tcpbench(1). Found while testing iwm(4).

#0  0x000004c27b9051a9 in udp_process_slice (fd=<optimized out>,
    event=<optimized out>, v_sc=0x4c55279f500)
    at /usr/src/usr.bin/tcpbench/tcpbench.c:606
606             pps = (sc->udp_slice_pkts * 1000) / since_last;
(gdb) p since_last
$1 = 0

ok benno@

Revision 1.59 / (download) - annotate - [select for diffs], Fri Sep 28 19:01:52 2018 UTC (5 years, 7 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.58: +4 -1 lines
Diff to previous 1.58 (colored)

If tpcbench(8) is startet with -r0 it does not print statistics.
But there was still the header line.  Make -r0 really quiet and
document the feature.
OK deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Fri Sep 28 18:21:26 2018 UTC (5 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.57: +26 -26 lines
Diff to previous 1.57 (colored)

Fix white spaces.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Aug 8 14:35:38 2018 UTC (5 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.56: +17 -4 lines
Diff to previous 1.56 (colored)

In the early pledge, add "unveil" to permit changes a little later on.
If kernel variables are being watched unveil /dev/mem, /dev/kmem, and
/dev/ksyms.  If testing AF_UNIX, unveil that patch.  The next pledge
removes "unveil", then tcpbench is largely filesystem restricted.

Revision 1.56 / (download) - annotate - [select for diffs], Tue May 22 18:56:33 2018 UTC (5 years, 11 months ago) by cheloha
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

drop unnecessary timerclear; tv_sec & tv_usec are assigned immediately

From Nan Xiao

ok tb@

Revision 1.55 / (download) - annotate - [select for diffs], Thu May 10 14:29:17 2018 UTC (6 years ago) by benno
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

more errx -> err, from schwarze@

Revision 1.54 / (download) - annotate - [select for diffs], Thu May 10 14:19:03 2018 UTC (6 years ago) by bluhm
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Do not mention TCP in tcpbench comments and error messages regarding
socket buffer sizes.  They affect TCP, UDP, and UNIX.
pointed out by Nan Xiao

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 10 13:53:05 2018 UTC (6 years ago) by benno
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

print strdup error with err(). From Nan Xiao nan AT chinadtrace DOT
org, Thanks.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Sep 19 18:58:39 2016 UTC (7 years, 8 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.51: +2 -0 lines
Diff to previous 1.51 (colored)

Add OpenBSD RCS id.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 21 10:11:11 2016 UTC (7 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.50: +60 -27 lines
Diff to previous 1.50 (colored)

Add AF_UNIX support to tcpbench and also make it possible to randomize the
write size in the client. pledge setup can be made tighter but that will be
done in a second step.
OK benno@, henning@, markus@ and some man page input by jmc@

Revision 1.50 / (download) - annotate - [select for diffs], Wed Apr 6 14:09:06 2016 UTC (8 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.49: +1 -1 lines
Diff to previous 1.49 (colored)

Lose the pointless third paramater to fcntl(F_GETFL). Using SOCK_NONBLOCK
instead of fcntl() dance would significantly change designed semantics.

ok djm@

Revision 1.49 / (download) - annotate - [select for diffs], Mon Mar 28 11:48:38 2016 UTC (8 years, 1 month ago) by chl
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48 (colored)

remove unused variable

ok millert@

Revision 1.48 / (download) - annotate - [select for diffs], Mon Mar 21 00:49:36 2016 UTC (8 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.47: +2 -6 lines
Diff to previous 1.47 (colored)

Instead of creating a socket with socket() or accept() and then
setting the O_NONBLOCK flag on it with fcntl(F_SETFL) afterwards,
just pass SOCK_NONBLOCK to socket() or accept4() and get it right
to begin with.

ok millert@ krw@ beck@ deraadt@ jca@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Nov 13 19:37:20 2015 UTC (8 years, 6 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.46: +17 -4 lines
Diff to previous 1.46 (colored)

pledge tcpbench, from David Hill, tweaked the -s case.
ok deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Mon Feb 9 23:46:23 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.45: +11 -10 lines
Diff to previous 1.45 (colored)

If the kmem options are in use, drop the gid earlier.
ok djm

Revision 1.45 / (download) - annotate - [select for diffs], Wed Nov 26 18:34:51 2014 UTC (9 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44 (colored)

Prefer setvbuf() to setlinebuf() for portability; ok deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 24 02:01:20 2014 UTC (9 years, 6 months ago) by lteo
Branch: MAIN
Changes since 1.43: +0 -1 lines
Diff to previous 1.43 (colored)

Remove unnecessary include: netinet/in_systm.h is not needed by these
programs.

ok deraadt@ millert@

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 16 02:59:40 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Use reallocarray() to get integer overflow detection.

ok deraadt@ djm@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Aug 19 03:28:53 2014 UTC (9 years, 9 months ago) by dlg
Branch: MAIN
Changes since 1.41: +11 -3 lines
Diff to previous 1.41 (colored)

add -4 and -6 flags for saying if you want to force ipv4 or ipv6
respectively.

tweaks from jmc@
ok djm@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Dec 25 01:46:00 2013 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.40: +12 -1 lines
Diff to previous 1.40 (colored)

final circleq to tailq fix. restore the previous pointer check by reading
the previous value again and checking prev.next is still next.
maybe ok guenther

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 24 22:26:20 2013 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.39: +4 -13 lines
Diff to previous 1.39 (colored)

more fixing after circleq conversion. a better fix to check the prev
pointer is forthcoming.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 20 02:04:09 2013 UTC (10 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQ
in the base. Ports fixes to follow shortly for the two ports (gkrellm
and net-snmp) affected.

ok zhuk@ millert@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Mar 11 17:40:11 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

handle ECONNABORTED errors from accept().  In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 2 08:50:15 2012 UTC (11 years, 7 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.36: +5 -22 lines
Diff to previous 1.36 (colored)

Simplify rtable assignment and cut some cruft

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 16 17:18:11 2012 UTC (11 years, 11 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.35: +5 -4 lines
Diff to previous 1.35 (colored)

When the last user disconnects, make sure we display the status line
one more time.

ok sthen@

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 8 01:39:58 2012 UTC (12 years ago) by haesbaert
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Fix double-free when -n is used with -b.

From Erik Lax, also tested by lteo.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 13 19:23:32 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.33: +7 -19 lines
Diff to previous 1.33 (colored)

Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2).
Also make the code more similar to the other daemons.

"you can go ahead" deraadt@.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Apr 7 21:52:03 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.32: +50 -10 lines
Diff to previous 1.32 (colored)

Rate-limit accepting of new connections while we are experiencing fd
exaustion for tcpbench.

ok deraadt

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 31 16:15:46 2012 UTC (12 years, 3 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.31: +0 -3 lines
Diff to previous 1.31 (colored)

Remove setpgid() call, this is a leftover from when we were forked.
From Erik Lax

"commit it" mikeb@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 29 17:58:10 2012 UTC (12 years, 3 months ago) by haesbaert
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Don't use floating precision while printing PPS in UDP mode.

"go for it" mikeb@
"looks good to me" henning@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 26 17:53:53 2012 UTC (12 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.29: +26 -4 lines
Diff to previous 1.29 (colored)

add a timer to tcpbench as a command-line option (-t) so
that it is possible to stop the tcpbench client after a certain number
of seconds. This makes it easier to use tcpbench as part of a script.
From: Lawrence Teo <lteo at lteo.net>
ok phessler haesbaert and myself

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 18 02:42:53 2011 UTC (12 years, 5 months ago) by haesbaert
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Don't lie the number of estabilished connections. nconns is the number
of requested, not estabilished connections, so use mainstats.nconns.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Dec 4 06:37:51 2011 UTC (12 years, 5 months ago) by haesbaert
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

Fix some warnx() calls which should be fprintf plus KNF.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Oct 7 02:46:48 2011 UTC (12 years, 7 months ago) by haesbaert
Branch: MAIN
Changes since 1.26: +11 -18 lines
Diff to previous 1.26 (colored)

Kill unecessary break in UDP_MODE, simplify code a bit by killing some
conditionals, KNF. No functional changes.

ok claudio@

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 1 06:23:53 2011 UTC (12 years, 7 months ago) by haesbaert
Branch: MAIN
Changes since 1.25: +41 -40 lines
Diff to previous 1.25 (colored)

Sort the lines on -l output and match the order on the column output.
Also make the -l output go to stdout as it's easier to grep with it,
and set stdout to linebuf.

ok djm@ "as long as you add a setlinebuf(stdout) :-)"

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 9 00:40:54 2011 UTC (12 years, 8 months ago) by haesbaert
Branch: MAIN
Changes since 1.24: +43 -11 lines
Diff to previous 1.24 (colored)

Add -b option which allows the client side to bind the socket to a
numeric address.  Requested by mikeb@ in order to test ipsec.

ok mcbride mikeb djm jmc

Revision 1.24 / (download) - annotate - [select for diffs], Tue Aug 23 04:13:38 2011 UTC (12 years, 8 months ago) by haesbaert
Branch: MAIN
Changes since 1.23: +98 -4 lines
Diff to previous 1.23 (colored)

Allow TOS/TCLASS to be set with -T, accept the same keywords as in pf.conf.

ok mcbride@ djm@
'fine from me' jmc@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Aug 20 11:11:30 2011 UTC (12 years, 9 months ago) by sthen
Branch: MAIN
Changes since 1.22: +1 -0 lines
Diff to previous 1.22 (colored)

event_del() a persistent event; fixes segfault seen on the server when the
remote end closes and reopens a connection.

From Christiano F. Haesbaert, ok claudio@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 21 17:31:07 2011 UTC (12 years, 11 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.21: +18 -12 lines
Diff to previous 1.21 (colored)

Convert SO_RTABLE's protocol level to the SOL_SOCKET;  ok claudio

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 16 08:06:10 2011 UTC (13 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

various cleanup;

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 9 18:13:18 2011 UTC (13 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.19: +458 -424 lines
Diff to previous 1.19 (colored)

Implement UDP mode for tcpbench and switch tcpbench to use libevent.
In UDP mode the tcpbench client tries to flood the pipe to the maximum
and the server will busy read the packets. For TCP mode nothing has
changed.  All the work was done by Christiano F. Haesbaert
(haesbaert(at)haesbaert org).
OK myself and a lot of pushing from deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 19 10:03:23 2010 UTC (13 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.18: +12 -0 lines
Diff to previous 1.18 (colored)

Add a few more tcpcb and sockbuffer variables that tcpbench can inspect.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Sep 28 12:00:35 2010 UTC (13 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

Make -k work in clientmode by passing the right socket to the
stats_prepare() function.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 3 04:44:51 2010 UTC (13 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.16: +18 -18 lines
Diff to previous 1.16 (colored)

Fix the naming of interfaces and variables for rdomains and rtables
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains.  This changes the name of the
system calls, socket option, and ioctl.  After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.

Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.

Written by claudio@, criticized^Wcritiqued by me

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 11 17:20:50 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

try not to use size_t in places it does not belong; ok djm

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 11 20:53:36 2009 UTC (14 years, 8 months ago) by sthen
Branch: MAIN
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

- adjust usage() to fit in 80 columns

- re-order client options in usage() to match server options
and the manual, as suggested by jmc.

ok jmc@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 8 12:53:52 2009 UTC (14 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.13: +32 -22 lines
Diff to previous 1.13 (colored)

Move connect code out ouf clientloop into own function. This code can be
reused by the upcomming UDP mode. OK henning

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 8 11:43:51 2009 UTC (14 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.12: +12 -23 lines
Diff to previous 1.12 (colored)

There is no need for two getaddrinfo implementations for client and server.
Merge them and make the client code look more like the server one.
OK henning@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 29 04:10:49 2009 UTC (14 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

gcc2 hates claudio

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 28 11:59:12 2009 UTC (14 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.10: +377 -240 lines
Diff to previous 1.10 (colored)

Change the way how the server works. Instead of forking of a child per
connection do multiplexing via poll(2). This allows to use more concurrent
connections and to specify additional kvm data to fetch.
This was all done by Christiano Farina Haesbaert (christiano.fh gmail dot com)
plus some input by myself.
OK henning@

Revision 1.10 / (download) - annotate - [select for diffs], Thu Aug 13 14:26:38 2009 UTC (14 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)

Print a warning when rdomain is used on non-AF_INET sockets. Those are
currently not supported. Requested by djm sort of.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 13 14:19:43 2009 UTC (14 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.8: +22 -3 lines
Diff to previous 1.8 (colored)

Allow tcpbench to bind to a different rdomain.
OK sthen, djm and maybe more

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 18 10:23:33 2008 UTC (15 years, 8 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.7: +0 -1 lines
Diff to previous 1.7 (colored)

remove unused variable

sure henning@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 14 22:29:43 2008 UTC (15 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.6: +11 -10 lines
Diff to previous 1.6 (colored)

only update stats when we actually wrote sth, relevant for -n, ok djm
From: Pierre Riteau <pierre.riteau@gmail.com>

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 26 07:05:56 2008 UTC (15 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.5: +6 -19 lines
Diff to previous 1.5 (colored)

some minor improvements from Pierre Riteau; ok djm

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 15 01:38:26 2008 UTC (15 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

turd polishing (useless chatter removed), ok djm

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 12 20:34:47 2008 UTC (15 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.3: +103 -68 lines
Diff to previous 1.3 (colored)

allow the tcpbench client side to open more than one tcp connection
to the server and use them simultaniously. ok djm ryan

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 15 19:00:02 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

fix uninitialised variable; from ray@

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 9 06:45:49 2008 UTC (16 years ago) by djm
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

s/bench/tcpbench/ in usage(); spotted by schellekens.dries AT gmail.com

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 9 00:54:07 2008 UTC (16 years ago) by djm
Branch: djm
CVS Tags: djm_20080509
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

import tcpbench, a small TCP benchmarking tool that can also sample
relevant kernel variables via kvm(3)

ok dlg@ deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 9 00:54:07 2008 UTC (16 years ago) by djm
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.