summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <>2024-04-01 12:40:18 +0000
committerderaadt <>2024-04-01 12:40:18 +0000
commit5c866cf89a8430be07c0f516944dc505b3916c62 (patch)
tree838c650e7ce4e7d18214197d1655d3829411d778
parent0077955942fa0ec11c1d7c17f1d83a38778062e6 (diff)
downloadopenbsd-5c866cf89a8430be07c0f516944dc505b3916c62.tar.gz
openbsd-5c866cf89a8430be07c0f516944dc505b3916c62.tar.bz2
openbsd-5c866cf89a8430be07c0f516944dc505b3916c62.zip
Mention that port can be specified as 0 in some situations, so that the
system will allocate a port.
-rw-r--r--src/usr.bin/nc/nc.15
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index 0ef318e0e6..76b6dc018e 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.97 2022/09/11 09:58:06 schwarze Exp $ 1.\" $OpenBSD: nc.1,v 1.98 2024/04/01 12:40:18 deraadt 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: September 11 2022 $ 28.Dd $Mdocdate: April 1 2024 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -398,6 +398,7 @@ a destination port must be specified,
398unless the 398unless the
399.Fl U 399.Fl U
400option is given. 400option is given.
401For some options, the value 0 requests that the system choose a port number.
401.Sh CLIENT/SERVER MODEL 402.Sh CLIENT/SERVER MODEL
402It is quite simple to build a very basic client/server model using 403It is quite simple to build a very basic client/server model using
403.Nm . 404.Nm .