summaryrefslogtreecommitdiffstats
path: root/contrib/netcat/nc.1
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2008-04-01 13:54:24 +0000
committerbms <bms@FreeBSD.org>2008-04-01 13:54:24 +0000
commitb6386e8a8accdb775fe70bf2065cc0367003cfbb (patch)
treed4b10e4e482a85705500145c70d566bf4cc258bb /contrib/netcat/nc.1
parent7f88e6ec38a83898b43d56f41e4163fa5848162a (diff)
downloadFreeBSD-src-b6386e8a8accdb775fe70bf2065cc0367003cfbb.zip
FreeBSD-src-b6386e8a8accdb775fe70bf2065cc0367003cfbb.tar.gz
Add an -O option to disable TCP options, for protocol testing purposes.
Do this for active and passive (-l switch) TCP sessions. MFC after: 1 week
Diffstat (limited to 'contrib/netcat/nc.1')
-rw-r--r--contrib/netcat/nc.112
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/netcat/nc.1 b/contrib/netcat/nc.1
index 20885a8..b7f5756 100644
--- a/contrib/netcat/nc.1
+++ b/contrib/netcat/nc.1
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 21, 2006
+.Dd April 2, 2008
.Dt NC 1
.Os
.Sh NAME
@@ -36,7 +36,7 @@
.Sh SYNOPSIS
.Nm nc
.Bk -words
-.Op Fl 46DEdhklnorStUuvz
+.Op Fl 46DEdhklnoOrStUuvz
.Op Fl e Ar IPsec_policy
.Op Fl i Ar interval
.Op Fl P Ar proxy_username
@@ -146,6 +146,7 @@ option are ignored.
.It Fl n
Do not do any DNS or service lookups on any specified addresses,
hostnames or ports.
+.\"
.It Fl o
.Dq Once-only mode .
By default,
@@ -155,6 +156,10 @@ but continues until the network side has been closed down.
Specifying
.Fl o
will make it terminate on EOF as well.
+.It Fl o
+Disables the use of TCP options on the socket, by setting the boolean
+TCP_NOOPT
+socket option.
.It Fl P Ar proxy_username
Specifies a username to present to a proxy server that requires authentication.
If no username is specified then authentication will not be attempted.
@@ -435,7 +440,8 @@ if the proxy requires it:
.Dl $ nc -x10.2.3.4:8080 -Xconnect -Pruser host.example.com 42
.Sh SEE ALSO
.Xr cat 1 ,
-.Xr ssh 1
+.Xr ssh 1 ,
+.Xr tcp 4
.Sh AUTHORS
Original implementation by *Hobbit*
.Aq hobbit@avian.org .
OpenPOWER on IntegriCloud