diff options
author | djm <> | 2013-08-20 16:22:09 +0000 |
---|---|---|
committer | djm <> | 2013-08-20 16:22:09 +0000 |
commit | d5f8f8e59eb9f2f497bd9efca4c92985f7a84b9d (patch) | |
tree | 08931a383a296601451d482c7f4e29eb41db7a0d /src/usr.bin/nc/nc.1 | |
parent | b71e62c5b2f158e276c970f1bd698819a2c49af3 (diff) | |
download | openbsd-d5f8f8e59eb9f2f497bd9efca4c92985f7a84b9d.tar.gz openbsd-d5f8f8e59eb9f2f497bd9efca4c92985f7a84b9d.tar.bz2 openbsd-d5f8f8e59eb9f2f497bd9efca4c92985f7a84b9d.zip |
add -F flag to enabled fd-pass mode: establish connection and pass
connected socket to stdout. This is useful in proxy mode to establish
a connection for use by ssh in conjunction with its new ProxyUseFDPass
option; ok markus@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 4c2a055cc4..c7a5a2b6e4 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: nc.1,v 1.63 2013/07/16 00:07:52 schwarze Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.64 2013/08/20 16:22:09 djm Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -25,7 +25,7 @@ | |||
25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | .\" | 27 | .\" |
28 | .Dd $Mdocdate: July 16 2013 $ | 28 | .Dd $Mdocdate: August 20 2013 $ |
29 | .Dt NC 1 | 29 | .Dt NC 1 |
30 | .Os | 30 | .Os |
31 | .Sh NAME | 31 | .Sh NAME |
@@ -34,7 +34,7 @@ | |||
34 | .Sh SYNOPSIS | 34 | .Sh SYNOPSIS |
35 | .Nm nc | 35 | .Nm nc |
36 | .Bk -words | 36 | .Bk -words |
37 | .Op Fl 46DdhklNnrStUuvz | 37 | .Op Fl 46DdFhklNnrStUuvz |
38 | .Op Fl I Ar length | 38 | .Op Fl I Ar length |
39 | .Op Fl i Ar interval | 39 | .Op Fl i Ar interval |
40 | .Op Fl O Ar length | 40 | .Op Fl O Ar length |
@@ -102,6 +102,21 @@ to use IPv6 addresses only. | |||
102 | Enable debugging on the socket. | 102 | Enable debugging on the socket. |
103 | .It Fl d | 103 | .It Fl d |
104 | Do not attempt to read from stdin. | 104 | Do not attempt to read from stdin. |
105 | .It Fl F | ||
106 | Pass the first connected socket using | ||
107 | .Xr sendmsg 2 | ||
108 | to stdout and exit. | ||
109 | This is useful in conjunction with | ||
110 | .Fl X | ||
111 | to have | ||
112 | .Nm | ||
113 | perform connection setup with a proxy but then leave the rest of the | ||
114 | connection to another program (e.g. | ||
115 | .Xr ssh 1 | ||
116 | using the | ||
117 | .Xr ssh_config 5 | ||
118 | .Cm ProxyUseFdPass | ||
119 | option). | ||
105 | .It Fl h | 120 | .It Fl h |
106 | Prints out | 121 | Prints out |
107 | .Nm | 122 | .Nm |