summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authorbluhm <>2017-05-10 21:56:53 +0000
committerbluhm <>2017-05-10 21:56:53 +0000
commit5f64f36094433c7ef3912c187243ab5b1c54b413 (patch)
tree56092c4c202a156a1fb718e82e9527a63355fab0 /src/usr.bin/nc/nc.1
parent3fc4fca12d585e23e74c7b750445d31c96380ba0 (diff)
downloadopenbsd-5f64f36094433c7ef3912c187243ab5b1c54b413.tar.gz
openbsd-5f64f36094433c7ef3912c187243ab5b1c54b413.tar.bz2
openbsd-5f64f36094433c7ef3912c187243ab5b1c54b413.zip
Implement nc -W recvlimit to terminate netcat after receiving a
number of packets. This allows to send a UDP request, receive a reply and check the result on the command line. input jmc@; OK millert@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r--src/usr.bin/nc/nc.19
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index 1b753e3d80..b1fa272040 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.84 2017/04/05 06:55:59 jmc Exp $ 1.\" $OpenBSD: nc.1,v 1.85 2017/05/10 21:56:53 bluhm 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: April 5 2017 $ 28.Dd $Mdocdate: May 10 2017 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -50,6 +50,7 @@
50.Op Fl s Ar source 50.Op Fl s Ar source
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 timeout 54.Op Fl w Ar timeout
54.Op Fl X Ar proxy_protocol 55.Op Fl X Ar proxy_protocol
55.Op Fl x Ar proxy_address Ns Op : Ns Ar port 56.Op Fl x Ar proxy_address Ns Op : Ns Ar port
@@ -288,6 +289,10 @@ Set the routing table to be used.
288Have 289Have
289.Nm 290.Nm
290give more verbose output. 291give more verbose output.
292.It Fl W Ar recvlimit
293Terminate after receiving
294.Ar recvlimit
295packets from the network.
291.It Fl w Ar timeout 296.It Fl w Ar timeout
292Connections which cannot be established or are idle timeout after 297Connections which cannot be established or are idle timeout after
293.Ar timeout 298.Ar timeout