Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2006 12:47:46 +0900 (JST)
From:      Yoshihiko Sarumaru <mistral@imasy.or.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/94158: [PATCH] fix off-by-one example presentation on nc(1)
Message-ID:  <200603070347.k273lkm7093108@cbug.d.xcast.jp>
Resent-Message-ID: <200603070350.k273oAD4088491@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94158
>Category:       docs
>Synopsis:       [PATCH] fix off-by-one example presentation on nc(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 07 03:50:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yoshihiko Sarumaru
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
FreeBSD jpman project
>Environment:
System: FreeBSD cbug.d.xcast.jp 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sun Dec 18 06:28:15 JST 2005 root@cbug.d.xcast.jp:/usr/obj/usr/src/sys/CBUG_XCAST6 i386


	
>Description:
	FreeBSD version of netcat has some extension such as IPsec support.
	nc(1) manpage also extented to describe IPsec related options, but
	it have been inserted to wrong position, and missing '$' prompt.

>How-To-Repeat:
	man 1 nc
>Fix:
--- /usr/src/contrib/netcat/nc.1	Mon Jun 27 16:07:55 2005
+++ nc.1	Tue Mar  7 12:37:34 2006
@@ -389,17 +389,17 @@
 Open a TCP connection to port 42 of example.host using 10.1.2.3 as the
 IP for the local end of the connection:
 .Pp
-.Dl "nc -E example.host 42"
+.Dl $ nc -s 10.1.2.3 example.host 42
 .Pp
 Open a TCP connection to port 42 of example.host using IPsec ESP for
 incoming and outgoing traffic.
 .Pp
-.Dl "nc -e 'out ipsec esp/transport//require' example.host 42"
+.Dl $ nc -E example.host 42
 .Pp
 Open a TCP connection to port 42 of example.host using IPsec ESP for
 outgoing traffic only.
 .Pp
-.Dl $ nc -s 10.1.2.3 example.host 42
+.Dl $ nc -e 'out ipsec esp/transport//require' example.host 42
 .Pp
 Send UDP packets to ports 20-30 of example.host, and report which ones
 responded with an ICMP packet after three seconds:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603070347.k273lkm7093108>