summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcpbench
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-02-12 14:46:36 +0000
committerschwarze <schwarze@openbsd.org>2020-02-12 14:46:36 +0000
commit65e34726da66cef7bedf05e46505fb9773838ea0 (patch)
treed619fe25563cef16b4ebb7fe667cca344c1c86b9 /usr.bin/tcpbench
parentDo not reparent a traced child to ourself inside wait(2). (diff)
downloadwireguard-openbsd-65e34726da66cef7bedf05e46505fb9773838ea0.tar.xz
wireguard-openbsd-65e34726da66cef7bedf05e46505fb9773838ea0.zip
Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.
Diffstat (limited to 'usr.bin/tcpbench')
-rw-r--r--usr.bin/tcpbench/tcpbench.111
-rw-r--r--usr.bin/tcpbench/tcpbench.c4
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/tcpbench/tcpbench.1 b/usr.bin/tcpbench/tcpbench.1
index 3ada4b5b08b..daebe880544 100644
--- a/usr.bin/tcpbench/tcpbench.1
+++ b/usr.bin/tcpbench/tcpbench.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpbench.1,v 1.25 2018/09/28 19:01:52 bluhm Exp $
+.\" $OpenBSD: tcpbench.1,v 1.26 2020/02/12 14:46:36 schwarze 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: September 28 2018 $
+.Dd $Mdocdate: February 12 2020 $
.Dt TCPBENCH 1
.Os
.Sh NAME
@@ -26,7 +26,7 @@
.Nm
.Op Fl 46RUuv
.Op Fl B Ar buf
-.Op Fl b Ar addr
+.Op Fl b Ar sourceaddr
.Op Fl k Ar kvars
.Op Fl n Ar connections
.Op Fl p Ar port
@@ -90,8 +90,9 @@ Specify the size of the internal read/write buffer used by
The default is 262144 bytes for TCP client/server and UDP server.
In UDP client mode this may be used to specify the packet size on the test
stream.
-.It Fl b Ar addr
-Specify the IP address of the interface which is used to send the packets.
+.It Fl b Ar sourceaddr
+Specify the IP address to send the packets from,
+which is useful on machines with multiple interfaces.
.It Fl k Ar kvars
Specify one or more kernel variables to monitor; multiple variables must be
separated with commas.
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c
index bda10f5a0ce..ae3c20d858d 100644
--- a/usr.bin/tcpbench/tcpbench.c
+++ b/usr.bin/tcpbench/tcpbench.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpbench.c,v 1.60 2019/11/26 17:51:33 stsp Exp $ */
+/* $OpenBSD: tcpbench.c,v 1.61 2020/02/12 14:46:36 schwarze Exp $ */
/*
* Copyright (c) 2008 Damien Miller <djm@mindrot.org>
@@ -185,7 +185,7 @@ usage(void)
{
fprintf(stderr,
"usage: tcpbench -l\n"
- " tcpbench [-46RUuv] [-B buf] [-b addr] [-k kvars] [-n connections]\n"
+ " tcpbench [-46RUuv] [-B buf] [-b sourceaddr] [-k kvars] [-n connections]\n"
" [-p port] [-r interval] [-S space] [-T toskeyword]\n"
" [-t secs] [-V rtable] hostname\n"
" tcpbench -s [-46Uuv] [-B buf] [-k kvars] [-p port] [-r interval]\n"