summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authorjeremy <>2011-01-08 00:44:19 +0000
committerjeremy <>2011-01-08 00:44:19 +0000
commitdc99e0127d6fec60b05811ba3a2d2b087cd26184 (patch)
treec2e75d64486999445f14ca603bd38be678f9ff8d /src/usr.bin/nc/nc.1
parentab9ee91a071dfdb923a078342458cf270af8b71b (diff)
downloadopenbsd-dc99e0127d6fec60b05811ba3a2d2b087cd26184.tar.gz
openbsd-dc99e0127d6fec60b05811ba3a2d2b087cd26184.tar.bz2
openbsd-dc99e0127d6fec60b05811ba3a2d2b087cd26184.zip
Support unix domain sockets in nc(1) with -Uu.
Previously, using -U with -u was an error that was not documented in the man page. Now it will use a unix socket in datagram mode. Bidirectional unix datagram communication requires a socket at both ends, so in client mode (without -l), a temporary socket is created so that responses from the server can be received. If -s is specified with -U and -u, it specifies the location of the temporary socket to create. This was mostly written way back in 2007. Since then, various improvements implemented based on suggestions from guenther@, tedu@, and nicm@. Man page help from nicm@ and jmc@. Unix datagram support requires a small change to atomicio.c in order to function correctly, this will be committed separately shortly. OK nicm@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r--src/usr.bin/nc/nc.118
1 files changed, 16 insertions, 2 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index c2599ce3f1..8745528040 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.55 2010/07/25 07:51:39 guenther Exp $ 1.\" $OpenBSD: nc.1,v 1.56 2011/01/08 00:44:19 jeremy 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: July 25 2010 $ 28.Dd $Mdocdate: January 8 2011 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -155,6 +155,10 @@ assigns them.
155Enables the RFC 2385 TCP MD5 signature option. 155Enables the RFC 2385 TCP MD5 signature option.
156.It Fl s Ar source_ip_address 156.It Fl s Ar source_ip_address
157Specifies the IP of the interface which is used to send the packets. 157Specifies the IP of the interface which is used to send the packets.
158For
159.Ux Ns -domain
160datagram sockets, specifies the local temporary socket file
161to create and use so that datagrams can be received.
158It is an error to use this option in conjunction with the 162It is an error to use this option in conjunction with the
159.Fl l 163.Fl l
160option. 164option.
@@ -179,6 +183,16 @@ Specifies to use
179sockets. 183sockets.
180.It Fl u 184.It Fl u
181Use UDP instead of the default option of TCP. 185Use UDP instead of the default option of TCP.
186For
187.Ux Ns -domain
188sockets, use a datagram socket instead of a stream socket.
189If a
190.Ux Ns -domain
191socket is used, a temporary receiving socket is created in
192.Pa /tmp
193unless the
194.Fl s
195flag is given.
182.It Fl V Ar rtable 196.It Fl V Ar rtable
183Set the routing table to be used. 197Set the routing table to be used.
184The default is 0. 198The default is 0.