[Toybox] [PATCH] netcat: Add UNIX domain socket support (-U)

Tom Cherry tomcherry at google.com
Mon Jul 1 12:34:53 PDT 2019


Other implementations of netcat support UNIX domain sockets via -U, so
this change adds it to toybox too.

Example usage:
Create ./uds as a UNIX domain socket and listen on it, forwarding
messages to bash:
> nc -U -s ./uds -L /bin/bash

Connect to ./uds as a UNIX domain socket
> nc -U ./uds
---
 toys/net/netcat.c | 65 ++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 53 insertions(+), 12 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-netcat-Add-UNIX-domain-socket-support-U.patch
Type: text/x-patch
Size: 5321 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190701/4c7ade7e/attachment-0002.bin>


More information about the Toybox mailing list