summaryrefslogtreecommitdiff
path: root/usr.bin/tcpbench/tcpbench.c
AgeCommit message (Expand)Author
2023-05-22Remove unused variable kerr.Tobias Heider
2023-05-22Remove duplicate entries in kvars.Alexander Bluhm
2022-08-15Use TCP_INFO instead of kvm magic to extract information about the tcp streams.Claudio Jeker
2022-08-06Use NI_MAXHOST and NI_MAXSERV constants to allocate temporary stringsAlexander Bluhm
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
2021-02-04Implement the nc(1) -D socket debug option also in tcpbench(1).Alexander Bluhm
2020-05-04tcpbench: display stats on SIGINFO, not just at exit. ok tb@ procter@ deraadt@Stuart Henderson
2020-05-02Add ping(1)-like summary statistics.Richard Procter
2020-02-12Standardize argument naming for "sourceaddr" and unify the wording a bit,Ingo Schwarze
2019-11-26Prevent divide-by zero in tcpbench(1). Found while testing iwm(4).Stefan Sperling
2018-09-28If tpcbench(8) is startet with -r0 it does not print statistics.Alexander Bluhm
2018-09-28Fix white spaces.Alexander Bluhm
2018-08-08In the early pledge, add "unveil" to permit changes a little later on.Theo de Raadt
2018-05-22drop unnecessary timerclear; tv_sec & tv_usec are assigned immediatelycheloha
2018-05-10more errx -> err, from schwarze@Sebastian Benoit
2018-05-10Do not mention TCP in tcpbench comments and error messages regardingAlexander Bluhm
2018-05-10print strdup error with err(). From Nan Xiao nan AT chinadtrace DOTSebastian Benoit
2016-09-19Add OpenBSD RCS id.Alexander Bluhm
2016-07-21Add AF_UNIX support to tcpbench and also make it possible to randomize theClaudio Jeker
2016-04-06Lose the pointless third paramater to fcntl(F_GETFL). Using SOCK_NONBLOCKKenneth R Westerback
2016-03-28remove unused variableCharles Longeau
2016-03-21Instead of creating a socket with socket() or accept() and thenPhilip Guenther
2015-11-13pledge tcpbench, from David Hill, tweaked the -s case.Sebastian Benoit
2015-02-09If the kmem options are in use, drop the gid earlier.Theo de Raadt
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-10-24Remove unnecessary include: netinet/in_systm.h is not needed by theseLawrence Teo
2014-10-16Use reallocarray() to get integer overflow detection.Lawrence Teo
2014-08-19add -4 and -6 flags for saying if you want to force ipv4 or ipv6David Gwynne
2013-12-25final circleq to tailq fix. restore the previous pointer check by readingTed Unangst
2013-12-24more fixing after circleq conversion. a better fix to check the prevTed Unangst
2013-12-20Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQKenneth R Westerback
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
2012-10-02Simplify rtable assignment and cut some cruftChristiano F. Haesbaert
2012-06-16When the last user disconnects, make sure we display the status lineChristiano F. Haesbaert
2012-05-08Fix double-free when -n is used with -b.Christiano F. Haesbaert
2012-04-13Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2).Christiano F. Haesbaert
2012-04-07Rate-limit accepting of new connections while we are experiencing fdChristiano F. Haesbaert
2012-01-31Remove setpgid() call, this is a leftover from when we were forked.Christiano F. Haesbaert
2012-01-29Don't use floating precision while printing PPS in UDP mode.Christiano F. Haesbaert
2012-01-26add a timer to tcpbench as a command-line option (-t) soHenning Brauer
2011-12-18Don't lie the number of estabilished connections. nconns is the numberChristiano 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
2011-10-01Sort the lines on -l output and match the order on the column output.Christiano F. Haesbaert
2011-09-09Add -b option which allows the client side to bind the socket to aChristiano F. Haesbaert
2011-08-23Allow TOS/TCLASS to be set with -T, accept the same keywords as in pf.conf.Christiano F. Haesbaert
2011-08-20event_del() a persistent event; fixes segfault seen on the server when theStuart Henderson
2011-06-21Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudioMike Belopuhov
2011-03-16various cleanup;Jason McIntyre
2011-03-09Implement UDP mode for tcpbench and switch tcpbench to use libevent.Claudio Jeker