summaryrefslogtreecommitdiff
path: root/usr.bin/tcpbench/tcpbench.1
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2016-07-21 10:11:12 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2016-07-21 10:11:12 +0000
commitb244b07b4a9b7ff197a521fed6aa92aed0abd1fb (patch)
treeeef753c4788ee9961469808463ff16f497d7ec8f /usr.bin/tcpbench/tcpbench.1
parentc4f8be6d9ec57742aa6ac11d67eca9928500c064 (diff)
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@
Diffstat (limited to 'usr.bin/tcpbench/tcpbench.1')
-rw-r--r--usr.bin/tcpbench/tcpbench.117
1 files changed, 13 insertions, 4 deletions
diff --git a/usr.bin/tcpbench/tcpbench.1 b/usr.bin/tcpbench/tcpbench.1
index b1aa5612361..b0e11871751 100644
--- a/usr.bin/tcpbench/tcpbench.1
+++ b/usr.bin/tcpbench/tcpbench.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpbench.1,v 1.20 2014/08/19 03:28:53 dlg Exp $
+.\" $OpenBSD: tcpbench.1,v 1.21 2016/07/21 10:11:11 claudio Exp $
.\"
.\" Copyright (c) 2008 Damien Miller <djm@mindrot.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 19 2014 $
+.Dd $Mdocdate: July 21 2016 $
.Dt TCPBENCH 1
.Os
.Sh NAME
@@ -24,7 +24,7 @@
.Nm
.Fl l
.Nm
-.Op Fl 46uv
+.Op Fl 46RUuv
.Op Fl B Ar buf
.Op Fl b Ar addr
.Op Fl k Ar kvars
@@ -39,7 +39,7 @@
.Nm
.Bk -words
.Fl s
-.Op Fl 46uv
+.Op Fl 46Uuv
.Op Fl B Ar buf
.Op Fl k Ar kvars
.Op Fl p Ar port
@@ -47,6 +47,7 @@
.Op Fl S Ar space
.Op Fl T Ar toskeyword
.Op Fl V Ar rtable
+.Op Ar hostname
.Ek
.Sh DESCRIPTION
.Nm
@@ -105,6 +106,9 @@ Use the given number of TCP connections (default: 1).
UDP is connectionless so this option isn't valid.
.It Fl p Ar port
Specify the port used for the test stream (default: 12345).
+.It Fl R
+In client mode the write buffer size is randomized up to the size specified via
+.Fl B .
.It Fl r Ar interval
Specify the statistics interval reporting rate in milliseconds (default: 1000).
.It Fl S Ar space
@@ -138,6 +142,11 @@ or a number in either hex or decimal.
Stop after
.Ar secs
seconds.
+.It Fl U
+Use AF_UNIX sockets instead of IPv4 or IPv6 sockets.
+In client and server mode
+.Ar hostname
+is used as the path to the AF_UNIX socket.
.It Fl u
Use UDP instead of TCP; this must be specified on both the client
and the server.