chiark / gitweb /
cleanup: Rename a few badly-chosen variables.
[tripe] / doc / pkstream.1
index 62aee14c20e38db8b79160d6850cf2b5ae2eef2d..f0f5bdb5e3f7c7a455a0b60c9b1b9529f1505d21 100644 (file)
@@ -38,6 +38,8 @@ pkstream \- forward UDP packets over streams
 .IR port ]
 .RB [ \-p
 .IR addr ]
+.RB [ \-b
+.IR addr ]
 .RB [ \-c
 .IR addr \c
 .BR : \c
@@ -56,7 +58,7 @@ using some kind of port forwarder like
 .BR ssh (1),
 .BR stunnel (1),
 etc.  It's intended, among other things, to provide a transport for
-.B tripe (8)
+.BR tripe (8)
 packets where there are annoying firewalls in the way.
 .SS "Command-line arguments"
 The two
@@ -95,12 +97,22 @@ Listen for connections on the given TCP
 Only one connection is allowed at a time.  When a connection is
 accepted, forward UDP packets over the TCP stream until it closes; then
 wait for another connection.
+.TP
 .BI "\-p, \-\-peer=" addr
 Only accept TCP connections from
 .IR addr .
 This option only makes sense in conjunction with
 .BR \-l .
 .TP
+.BI "\-b, \-\-bind=" addr
+When making a connection (see
+.B \-c
+below), use
+.I addr
+as the source address rather than letting the kernel choose the address
+automatically.  This is useful when the other end will only accept
+connections from a particular address and you get the wrong one otherwise.
+.TP
 .BI "\-c, \-\-connect=" addr : port
 Connect to the given
 .I addr
@@ -126,4 +138,4 @@ find one, please inform the author
 .BR stunnel (1),
 .BR tripe (8).
 .SH "AUTHOR"
-Mark Wooding, <mdw@nsict.org>
+Mark Wooding, <mdw@distorted.org.uk>