Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement the nc(1) -D socket debug option also in tcpbench(1). | 2021-02-04 | 2 | -8/+26 | |
| | | | | | This allows to analyse TCP connections. OK claudio@ | ||||
* | tcpbench: display stats on SIGINFO, not just at exit. ok tb@ procter@ deraadt@ | 2020-05-04 | 2 | -5/+21 | |
| | |||||
* | Add ping(1)-like summary statistics. | 2020-05-02 | 1 | -3/+3 | |
| | | | | | Makefile omitted by mistake from commit tJPIjljmTjZW ok djm@ deraadt@ | ||||
* | Add ping(1)-like summary statistics. | 2020-05-02 | 2 | -44/+165 | |
| | | | | ok djm@ deraadt@ | ||||
* | Standardize argument naming for "sourceaddr" and unify the wording a bit, | 2020-02-12 | 2 | -7/+8 | |
| | | | | similar to what deraadt@ recently did in other manual pages. | ||||
* | Prevent divide-by zero in tcpbench(1). Found while testing iwm(4). | 2019-11-26 | 1 | -1/+5 | |
| | | | | | | | | | | | #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@ | ||||
* | If tpcbench(8) is startet with -r0 it does not print statistics. | 2018-09-28 | 2 | -3/+7 | |
| | | | | | | But there was still the header line. Make -r0 really quiet and document the feature. OK deraadt@ | ||||
* | Fix white spaces. | 2018-09-28 | 1 | -26/+26 | |
| | |||||
* | In the early pledge, add "unveil" to permit changes a little later on. | 2018-08-08 | 1 | -4/+17 | |
| | | | | | | 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. | ||||
* | drop unnecessary timerclear; tv_sec & tv_usec are assigned immediately | 2018-05-22 | 1 | -2/+1 | |
| | | | | | | From Nan Xiao ok tb@ | ||||
* | more errx -> err, from schwarze@ | 2018-05-10 | 1 | -3/+3 | |
| | |||||
* | Do not mention TCP in tcpbench comments and error messages regarding | 2018-05-10 | 1 | -5/+5 | |
| | | | | | socket buffer sizes. They affect TCP, UDP, and UNIX. pointed out by Nan Xiao | ||||
* | print strdup error with err(). From Nan Xiao nan AT chinadtrace DOT | 2018-05-10 | 1 | -2/+2 | |
| | | | | org, Thanks. | ||||
* | consistent verb form; from nan xiao | 2018-05-09 | 1 | -5/+5 | |
| | |||||
* | remove redundant variable declarations in Makefiles, since those are | 2017-07-09 | 1 | -2/+1 | |
| | | | | | | the default. okay millert@ | ||||
* | Document the dependency on sysctl kern.allowkmem | 2016-09-25 | 1 | -3/+6 | |
| | | | | ok tb | ||||
* | Add OpenBSD RCS id. | 2016-09-19 | 1 | -0/+2 | |
| | |||||
* | zap trailing whitespace; | 2016-07-21 | 1 | -2/+2 | |
| | |||||
* | Add AF_UNIX support to tcpbench and also make it possible to randomize the | 2016-07-21 | 2 | -31/+73 | |
| | | | | | | 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@ | ||||
* | Lose the pointless third paramater to fcntl(F_GETFL). Using SOCK_NONBLOCK | 2016-04-06 | 1 | -1/+1 | |
| | | | | | | instead of fcntl() dance would significantly change designed semantics. ok djm@ | ||||
* | remove unused variable | 2016-03-28 | 1 | -1/+1 | |
| | | | | ok millert@ | ||||
* | Instead of creating a socket with socket() or accept() and then | 2016-03-21 | 1 | -6/+2 | |
| | | | | | | | | 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@ | ||||
* | Normalize Makefile format, and remove bad advice #BINMODE=2555 | 2015-11-17 | 1 | -10/+5 | |
| | |||||
* | pledge tcpbench, from David Hill, tweaked the -s case. | 2015-11-13 | 1 | -4/+17 | |
| | | | | ok deraadt@ | ||||
* | If the kmem options are in use, drop the gid earlier. | 2015-02-09 | 1 | -10/+11 | |
| | | | | ok djm | ||||
* | Prefer setvbuf() to setlinebuf() for portability; ok deraadt@ | 2014-11-26 | 1 | -1/+1 | |
| | |||||
* | Remove unnecessary include: netinet/in_systm.h is not needed by these | 2014-10-24 | 1 | -1/+0 | |
| | | | | | | programs. ok deraadt@ millert@ | ||||
* | Use reallocarray() to get integer overflow detection. | 2014-10-16 | 1 | -2/+2 | |
| | | | | ok deraadt@ djm@ | ||||
* | add -4 and -6 flags for saying if you want to force ipv4 or ipv6 | 2014-08-19 | 2 | -7/+23 | |
| | | | | | | | respectively. tweaks from jmc@ ok djm@ | ||||
* | Once more, the default routing table id is inherited from the process | 2014-02-26 | 1 | -3/+2 | |
| | | | | like for any other process as well. OK by many | ||||
* | final circleq to tailq fix. restore the previous pointer check by reading | 2013-12-25 | 1 | -1/+12 | |
| | | | | | the previous value again and checking prev.next is still next. maybe ok guenther | ||||
* | more fixing after circleq conversion. a better fix to check the prev | 2013-12-24 | 1 | -13/+4 | |
| | | | | pointer is forthcoming. | ||||
* | Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQ | 2013-12-20 | 1 | -4/+4 | |
| | | | | | | | in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@ | ||||
* | use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@ | 2013-07-16 | 1 | -4/+4 | |
| | |||||
* | handle ECONNABORTED errors from accept(). In many code blocks they can be | 2013-03-11 | 1 | -1/+2 | |
| | | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories... | ||||
* | Simplify rtable assignment and cut some cruft | 2012-10-02 | 1 | -22/+5 | |
| | |||||
* | Don't need this anymore, we have them in bsd.own.mk. | 2012-08-17 | 1 | -11/+0 | |
| | |||||
* | When the last user disconnects, make sure we display the status line | 2012-06-16 | 1 | -4/+5 | |
| | | | | | | one more time. ok sthen@ | ||||
* | Fix double-free when -n is used with -b. | 2012-05-08 | 1 | -1/+2 | |
| | | | | From Erik Lax, also tested by lteo. | ||||
* | Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2). | 2012-04-13 | 1 | -19/+7 | |
| | | | | | | Also make the code more similar to the other daemons. "you can go ahead" deraadt@. | ||||
* | Rate-limit accepting of new connections while we are experiencing fd | 2012-04-07 | 1 | -10/+50 | |
| | | | | | | exaustion for tcpbench. ok deraadt | ||||
* | Remove setpgid() call, this is a leftover from when we were forked. | 2012-01-31 | 1 | -3/+0 | |
| | | | | | | From Erik Lax "commit it" mikeb@ | ||||
* | Don't use floating precision while printing PPS in UDP mode. | 2012-01-29 | 1 | -3/+3 | |
| | | | | | "go for it" mikeb@ "looks good to me" henning@ | ||||
* | add a timer to tcpbench as a command-line option (-t) so | 2012-01-26 | 2 | -6/+33 | |
| | | | | | | | 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 | ||||
* | Don't lie the number of estabilished connections. nconns is the number | 2011-12-18 | 1 | -1/+2 | |
| | | | | of requested, not estabilished connections, so use mainstats.nconns. | ||||
* | Typo. | 2011-12-18 | 1 | -3/+3 | |
| | |||||
* | Fix some warnx() calls which should be fprintf plus KNF. | 2011-12-04 | 1 | -5/+5 | |
| | |||||
* | Kill unecessary break in UDP_MODE, simplify code a bit by killing some | 2011-10-07 | 1 | -18/+11 | |
| | | | | | | conditionals, KNF. No functional changes. ok claudio@ | ||||
* | Sort the lines on -l output and match the order on the column output. | 2011-10-01 | 1 | -40/+41 | |
| | | | | | | | 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) :-)" | ||||
* | Add -b option which allows the client side to bind the socket to a | 2011-09-09 | 2 | -13/+48 | |
| | | | | | | numeric address. Requested by mikeb@ in order to test ipsec. ok mcbride mikeb djm jmc |