Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | oops! -T snuck into the wrong place... | 2011-08-23 | 1 | -2/+2 | |
| | |||||
* | Allow TOS/TCLASS to be set with -T, accept the same keywords as in pf.conf. | 2011-08-23 | 2 | -6/+117 | |
| | | | | | ok mcbride@ djm@ 'fine from me' jmc@ | ||||
* | event_del() a persistent event; fixes segfault seen on the server when the | 2011-08-20 | 1 | -0/+1 | |
| | | | | | | remote end closes and reopens a connection. From Christiano F. Haesbaert, ok claudio@ | ||||
* | Convert SO_RTABLE's protocol level to the SOL_SOCKET; ok claudio | 2011-06-21 | 1 | -12/+18 | |
| | |||||
* | various cleanup; | 2011-03-16 | 2 | -24/+26 | |
| | |||||
* | add DPADD; from brad | 2011-03-15 | 1 | -0/+1 | |
| | |||||
* | Implement UDP mode for tcpbench and switch tcpbench to use libevent. | 2011-03-09 | 3 | -443/+495 | |
| | | | | | | | | 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@ | ||||
* | add HISTORY and AUTHORS sections. | 2010-10-26 | 1 | -2/+12 | |
| | | | | ok jmc@, djm@ | ||||
* | Add a few more tcpcb and sockbuffer variables that tcpbench can inspect. | 2010-10-19 | 1 | -0/+12 | |
| | |||||
* | Make -k work in clientmode by passing the right socket to the | 2010-09-28 | 1 | -3/+2 | |
| | | | | stats_prepare() function. | ||||
* | put .Os in the right place; | 2010-07-03 | 1 | -2/+2 | |
| | |||||
* | Fix the naming of interfaces and variables for rdomains and rtables | 2010-07-03 | 2 | -24/+24 | |
| | | | | | | | | | | | | 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 | ||||
* | try not to use size_t in places it does not belong; ok djm | 2009-12-11 | 1 | -5/+5 | |
| | |||||
* | - adjust usage() to fit in 80 columns | 2009-09-11 | 1 | -5/+4 | |
| | | | | | | | - re-order client options in usage() to match server options and the manual, as suggested by jmc. ok jmc@ | ||||
* | Move connect code out ouf clientloop into own function. This code can be | 2009-09-08 | 1 | -22/+32 | |
| | | | | reused by the upcomming UDP mode. OK henning | ||||
* | There is no need for two getaddrinfo implementations for client and server. | 2009-09-08 | 1 | -23/+12 | |
| | | | | | Merge them and make the client code look more like the server one. OK henning@ | ||||
* | gcc2 hates claudio | 2009-08-29 | 1 | -3/+1 | |
| | |||||
* | Change the way how the server works. Instead of forking of a child per | 2009-08-28 | 1 | -240/+377 | |
| | | | | | | | | 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@ | ||||
* | use Bk/Ek to avoid ugly split in synopsis; | 2009-08-13 | 1 | -1/+3 | |
| | |||||
* | Print a warning when rdomain is used on non-AF_INET sockets. Those are | 2009-08-13 | 1 | -2/+4 | |
| | | | | currently not supported. Requested by djm sort of. | ||||
* | Allow tcpbench to bind to a different rdomain. | 2009-08-13 | 2 | -5/+29 | |
| | | | | OK sthen, djm and maybe more | ||||
* | remove unused variable | 2008-09-18 | 1 | -1/+0 | |
| | | | | sure henning@ | ||||
* | only update stats when we actually wrote sth, relevant for -n, ok djm | 2008-08-14 | 1 | -10/+11 | |
| | | | | From: Pierre Riteau <pierre.riteau@gmail.com> | ||||
* | some minor improvements from Pierre Riteau; ok djm | 2008-06-26 | 3 | -23/+12 | |
| |