diff options
| author | bluhm <> | 2017-05-10 21:56:53 +0000 |
|---|---|---|
| committer | bluhm <> | 2017-05-10 21:56:53 +0000 |
| commit | 02508bcceb2bbb57d18240c63d526e1ce34f43f5 (patch) | |
| tree | 56092c4c202a156a1fb718e82e9527a63355fab0 /src/usr.bin/nc/nc.1 | |
| parent | 19a3c9302a7b3612c8d30c23714674768b823da1 (diff) | |
| download | openbsd-02508bcceb2bbb57d18240c63d526e1ce34f43f5.tar.gz openbsd-02508bcceb2bbb57d18240c63d526e1ce34f43f5.tar.bz2 openbsd-02508bcceb2bbb57d18240c63d526e1ce34f43f5.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.1 | 9 |
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. | |||
| 288 | Have | 289 | Have |
| 289 | .Nm | 290 | .Nm |
| 290 | give more verbose output. | 291 | give more verbose output. |
| 292 | .It Fl W Ar recvlimit | ||
| 293 | Terminate after receiving | ||
| 294 | .Ar recvlimit | ||
| 295 | packets from the network. | ||
| 291 | .It Fl w Ar timeout | 296 | .It Fl w Ar timeout |
| 292 | Connections which cannot be established or are idle timeout after | 297 | Connections which cannot be established or are idle timeout after |
| 293 | .Ar timeout | 298 | .Ar timeout |
