Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/nc
Module Name: src
Committed By: kre
Date: Sun Mar 1 06:22:09 UTC 2026
Modified Files:
src/usr.bin/nc: nc.1 netcat.c
Log Message:
Add -E to limit number of net packets sent/rcvd
Specifying -E n or -E s/r (where s & r can be empty)
limits the number of network packets that will be sent
to n or s (whichever is specified) and the number of
network packets that will be received before exiting to
n (or r). Specifying 0 (or omitting s or r) means no limit
(which remains the default). Either a digit, or '/' is required.
Leading spaces before n or s are permitted, but no others.
It is OK (and meaningless) to specify -E/ -- this is
deliberate to simplify scripting ("-E $ms/$mr") where either
ms or mr (or both) might be absent.
While adding doc for this to nc.1 reword all references to
"illegal" - nothing in the way nc(1) is used should result
in anyone being prosecuted (or not for not using appropriate
arg combinations anyway).
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/nc/nc.1
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/nc/netcat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index