diff options
author | jeremy <> | 2011-01-08 00:44:19 +0000 |
---|---|---|
committer | jeremy <> | 2011-01-08 00:44:19 +0000 |
commit | dc99e0127d6fec60b05811ba3a2d2b087cd26184 (patch) | |
tree | c2e75d64486999445f14ca603bd38be678f9ff8d /src/usr.bin/nc/nc.1 | |
parent | ab9ee91a071dfdb923a078342458cf270af8b71b (diff) | |
download | openbsd-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.1 | 18 |
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. | |||
155 | Enables the RFC 2385 TCP MD5 signature option. | 155 | Enables the RFC 2385 TCP MD5 signature option. |
156 | .It Fl s Ar source_ip_address | 156 | .It Fl s Ar source_ip_address |
157 | Specifies the IP of the interface which is used to send the packets. | 157 | Specifies the IP of the interface which is used to send the packets. |
158 | For | ||
159 | .Ux Ns -domain | ||
160 | datagram sockets, specifies the local temporary socket file | ||
161 | to create and use so that datagrams can be received. | ||
158 | It is an error to use this option in conjunction with the | 162 | It is an error to use this option in conjunction with the |
159 | .Fl l | 163 | .Fl l |
160 | option. | 164 | option. |
@@ -179,6 +183,16 @@ Specifies to use | |||
179 | sockets. | 183 | sockets. |
180 | .It Fl u | 184 | .It Fl u |
181 | Use UDP instead of the default option of TCP. | 185 | Use UDP instead of the default option of TCP. |
186 | For | ||
187 | .Ux Ns -domain | ||
188 | sockets, use a datagram socket instead of a stream socket. | ||
189 | If a | ||
190 | .Ux Ns -domain | ||
191 | socket is used, a temporary receiving socket is created in | ||
192 | .Pa /tmp | ||
193 | unless the | ||
194 | .Fl s | ||
195 | flag is given. | ||
182 | .It Fl V Ar rtable | 196 | .It Fl V Ar rtable |
183 | Set the routing table to be used. | 197 | Set the routing table to be used. |
184 | The default is 0. | 198 | The default is 0. |