summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2024-04-01 12:40:18 +0000
committerderaadt <>2024-04-01 12:40:18 +0000
commitf8ddfacb22eaeabfcbb69833c5e7126ae3f56e42 (patch)
tree838c650e7ce4e7d18214197d1655d3829411d778 /src
parenta8c514ca64f6f182edc9103fcd3ab39d5f2f35e4 (diff)
downloadopenbsd-f8ddfacb22eaeabfcbb69833c5e7126ae3f56e42.tar.gz
openbsd-f8ddfacb22eaeabfcbb69833c5e7126ae3f56e42.tar.bz2
openbsd-f8ddfacb22eaeabfcbb69833c5e7126ae3f56e42.zip
Mention that port can be specified as 0 in some situations, so that the
system will allocate a port.
Diffstat (limited to 'src')
-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 .