mirror of
https://github.com/nmap/nmap.git
synced 2026-09-12 06:31:44 +00:00
Clarifies that the packet count may be 0. Fixes #988
This commit is contained in:
parent
cb237c4468
commit
4fa07fc32b
2 changed files with 3 additions and 3 deletions
|
|
@ -654,10 +654,10 @@ bool NpingOps::issetShowSentPackets(){
|
|||
******************************************************************************/
|
||||
|
||||
/** Sets packet count (number of packets that should be sent to each target)
|
||||
* Supplied parameter must be a positive integer >0.
|
||||
* Supplied parameter must be a non-negative integer.
|
||||
* @return OP_SUCCESS on success and OP_FAILURE in case of error. */
|
||||
int NpingOps::setPacketCount(u32 val){
|
||||
/* If zero is supplied, set highest value */
|
||||
/* If zero is supplied, use the highest possible value */
|
||||
if( val==0 )
|
||||
this->pcount=0xFFFFFFFF;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue