diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 13 | ||||
-rw-r--r-- | src/usr.bin/nc/netcat.c | 6 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 746a055944..fff5857229 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.94 2019/10/24 17:27:08 kn Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.95 2020/02/12 14:46:36 schwarze 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: October 24 2019 $ | 28 | .Dd $Mdocdate: February 12 2020 $ |
29 | .Dt NC 1 | 29 | .Dt NC 1 |
30 | .Os | 30 | .Os |
31 | .Sh NAME | 31 | .Sh NAME |
@@ -47,7 +47,7 @@ | |||
47 | .Op Fl P Ar proxy_username | 47 | .Op Fl P Ar proxy_username |
48 | .Op Fl p Ar source_port | 48 | .Op Fl p Ar source_port |
49 | .Op Fl R Ar CAfile | 49 | .Op Fl R Ar CAfile |
50 | .Op Fl s Ar source | 50 | .Op Fl s Ar sourceaddr |
51 | .Op Fl T Ar keyword | 51 | .Op Fl T Ar keyword |
52 | .Op Fl V Ar rtable | 52 | .Op Fl V Ar rtable |
53 | .Op Fl W Ar recvlimit | 53 | .Op Fl W Ar recvlimit |
@@ -228,10 +228,9 @@ instead of sequentially within a range or in the order that the system | |||
228 | assigns them. | 228 | assigns them. |
229 | .It Fl S | 229 | .It Fl S |
230 | Enable the RFC 2385 TCP MD5 signature option. | 230 | Enable the RFC 2385 TCP MD5 signature option. |
231 | .It Fl s Ar source | 231 | .It Fl s Ar sourceaddr |
232 | Send packets from the interface with the | 232 | Set the source address to send packets from, |
233 | .Ar source | 233 | which is useful on machines with multiple interfaces. |
234 | IP address. | ||
235 | For | 234 | For |
236 | .Ux Ns -domain | 235 | .Ux Ns -domain |
237 | datagram sockets, specifies the local temporary socket file | 236 | datagram sockets, specifies the local temporary socket file |
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index c4b524431b..503095584a 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.216 2020/01/26 23:47:57 beck Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.217 2020/02/12 14:46:36 schwarze Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
4 | * Copyright (c) 2015 Bob Beck. All rights reserved. | 4 | * Copyright (c) 2015 Bob Beck. All rights reserved. |
@@ -1822,7 +1822,7 @@ help(void) | |||
1822 | \t-R CAfile CA bundle\n\ | 1822 | \t-R CAfile CA bundle\n\ |
1823 | \t-r Randomize remote ports\n\ | 1823 | \t-r Randomize remote ports\n\ |
1824 | \t-S Enable the TCP MD5 signature option\n\ | 1824 | \t-S Enable the TCP MD5 signature option\n\ |
1825 | \t-s source Local source address\n\ | 1825 | \t-s sourceaddr Local source address\n\ |
1826 | \t-T keyword TOS value or TLS options\n\ | 1826 | \t-T keyword TOS value or TLS options\n\ |
1827 | \t-t Answer TELNET negotiation\n\ | 1827 | \t-t Answer TELNET negotiation\n\ |
1828 | \t-U Use UNIX domain socket\n\ | 1828 | \t-U Use UNIX domain socket\n\ |
@@ -1848,7 +1848,7 @@ usage(int ret) | |||
1848 | "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n" | 1848 | "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n" |
1849 | "\t [-o staplefile] [-P proxy_username] [-p source_port] " | 1849 | "\t [-o staplefile] [-P proxy_username] [-p source_port] " |
1850 | "[-R CAfile]\n" | 1850 | "[-R CAfile]\n" |
1851 | "\t [-s source] [-T keyword] [-V rtable] [-W recvlimit] " | 1851 | "\t [-s sourceaddr] [-T keyword] [-V rtable] [-W recvlimit] " |
1852 | "[-w timeout]\n" | 1852 | "[-w timeout]\n" |
1853 | "\t [-X proxy_protocol] [-x proxy_address[:port]] " | 1853 | "\t [-X proxy_protocol] [-x proxy_address[:port]] " |
1854 | "[-Z peercertfile]\n" | 1854 | "[-Z peercertfile]\n" |