summaryrefslogtreecommitdiff
path: root/usr.bin/tcpbench
AgeCommit message (Collapse)Author
2014-02-26Once more, the default routing table id is inherited from the processClaudio Jeker
like for any other process as well. OK by many
2013-12-25final circleq to tailq fix. restore the previous pointer check by readingTed Unangst
the previous value again and checking prev.next is still next. maybe ok guenther
2013-12-24more fixing after circleq conversion. a better fix to check the prevTed Unangst
pointer is forthcoming.
2013-12-20Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQKenneth R Westerback
in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2012-10-02Simplify rtable assignment and cut some cruftChristiano F. Haesbaert
2012-08-17Don't need this anymore, we have them in bsd.own.mk.Christiano F. Haesbaert
2012-06-16When the last user disconnects, make sure we display the status lineChristiano F. Haesbaert
one more time. ok sthen@
2012-05-08Fix double-free when -n is used with -b.Christiano F. Haesbaert
From Erik Lax, also tested by lteo.
2012-04-13Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2).Christiano F. Haesbaert
Also make the code more similar to the other daemons. "you can go ahead" deraadt@.
2012-04-07Rate-limit accepting of new connections while we are experiencing fdChristiano F. Haesbaert
exaustion for tcpbench. ok deraadt
2012-01-31Remove setpgid() call, this is a leftover from when we were forked.Christiano F. Haesbaert
From Erik Lax "commit it" mikeb@
2012-01-29Don't use floating precision while printing PPS in UDP mode.Christiano F. Haesbaert
"go for it" mikeb@ "looks good to me" henning@
2012-01-26add a timer to tcpbench as a command-line option (-t) soHenning Brauer
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
2011-12-18Don't lie the number of estabilished connections. nconns is the numberChristiano F. Haesbaert
of requested, not estabilished connections, so use mainstats.nconns.
2011-12-18Typo.Christiano F. Haesbaert
2011-12-04Fix some warnx() calls which should be fprintf plus KNF.Christiano F. Haesbaert
2011-10-07Kill unecessary break in UDP_MODE, simplify code a bit by killing someChristiano F. Haesbaert
conditionals, KNF. No functional changes. ok claudio@
2011-10-01Sort the lines on -l output and match the order on the column output.Christiano F. Haesbaert
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) :-)"
2011-09-09Add -b option which allows the client side to bind the socket to aChristiano F. Haesbaert
numeric address. Requested by mikeb@ in order to test ipsec. ok mcbride mikeb djm jmc
2011-08-23oops! -T snuck into the wrong place...Jason McIntyre
2011-08-23Allow TOS/TCLASS to be set with -T, accept the same keywords as in pf.conf.Christiano F. Haesbaert
ok mcbride@ djm@ 'fine from me' jmc@
2011-08-20event_del() a persistent event; fixes segfault seen on the server when theStuart Henderson
remote end closes and reopens a connection. From Christiano F. Haesbaert, ok claudio@
2011-06-21Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudioMike Belopuhov
2011-03-16various cleanup;Jason McIntyre
2011-03-15add DPADD; from bradTheo de Raadt
2011-03-09Implement UDP mode for tcpbench and switch tcpbench to use libevent.Claudio Jeker
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@
2010-10-26add HISTORY and AUTHORS sections.Felix Kronlage
ok jmc@, djm@
2010-10-19Add a few more tcpcb and sockbuffer variables that tcpbench can inspect.Claudio Jeker
2010-09-28Make -k work in clientmode by passing the right socket to theClaudio Jeker
stats_prepare() function.
2010-07-03put .Os in the right place;Jason McIntyre
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
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
2009-12-11try not to use size_t in places it does not belong; ok djmTheo de Raadt
2009-09-11- adjust usage() to fit in 80 columnsStuart Henderson
- re-order client options in usage() to match server options and the manual, as suggested by jmc. ok jmc@
2009-09-08Move connect code out ouf clientloop into own function. This code can beClaudio Jeker
reused by the upcomming UDP mode. OK henning
2009-09-08There is no need for two getaddrinfo implementations for client and server.Claudio Jeker
Merge them and make the client code look more like the server one. OK henning@
2009-08-29gcc2 hates claudioTheo de Raadt
2009-08-28Change the way how the server works. Instead of forking of a child perClaudio Jeker
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@
2009-08-13use Bk/Ek to avoid ugly split in synopsis;Jason McIntyre
2009-08-13Print a warning when rdomain is used on non-AF_INET sockets. Those areClaudio Jeker
currently not supported. Requested by djm sort of.
2009-08-13Allow tcpbench to bind to a different rdomain.Claudio Jeker
OK sthen, djm and maybe more
2008-09-18remove unused variableCharles Longeau
sure henning@
2008-08-14only update stats when we actually wrote sth, relevant for -n, ok djmHenning Brauer
From: Pierre Riteau <pierre.riteau@gmail.com>
2008-06-26some minor improvements from Pierre Riteau; ok djmJason McIntyre
2008-06-15turd polishing (useless chatter removed), ok djmHenning Brauer
2008-06-12tweak previous;Jason McIntyre
2008-06-12allow the tcpbench client side to open more than one tcp connectionHenning Brauer
to the server and use them simultaniously. ok djm ryan
2008-05-15fix uninitialised variable; from ray@Damien Miller
2008-05-09tweak previous; ok djmJason McIntyre