aboutsummaryrefslogtreecommitdiffstats
path: root/nc.1
diff options
context:
space:
mode:
Diffstat (limited to 'nc.1')
-rw-r--r--nc.115
1 files changed, 11 insertions, 4 deletions
diff --git a/nc.1 b/nc.1
index 537d6deb2dca..8b7c92aa636f 100644
--- a/nc.1
+++ b/nc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nc.1,v 1.71 2015/09/25 14:56:33 schwarze Exp $
+.\" $OpenBSD: nc.1,v 1.74 2016/07/02 05:58:00 jmc Exp $
.\"
.\" Copyright (c) 1996 David Sacerdote
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 12 2015 $
+.Dd $Mdocdate: July 2 2016 $
.Dt NC 1
.Os
.Sh NAME
@@ -40,6 +40,8 @@
.Op Fl I Ar length
.Op Fl i Ar interval
.Op Fl K Ar keyfile
+.Op Fl M Ar ttl
+.Op Fl m Ar minttl
.Op Fl O Ar length
.Op Fl P Ar proxy_username
.Op Fl p Ar source_port
@@ -171,6 +173,11 @@ options.
Additionally, any timeouts specified with the
.Fl w
option are ignored.
+.It Fl M Ar ttl
+Set the TTL / hop limit of outgoing packets.
+.It Fl m Ar minttl
+Ask the kernel to drop incoming packets whose TTL / hop limit is under
+.Ar minttl .
.It Fl N
.Xr shutdown 2
the network socket after EOF on the input.
@@ -337,8 +344,8 @@ sockets, a destination is required and is the socket path to connect to
option is given).
.Pp
.Ar port
-can be a single integer or a range of ports.
-Ranges are in the form nn-mm.
+can be a specified as a numeric port number, or as a service name.
+Ports may be specified in a range of the form nn-mm.
In general,
a destination port must be specified,
unless the