Nmap Development mailing list archives

Re: Packet rate logging and division by zero


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Wed, 17 Dec 2008 01:41:51 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 17 Dec 2008 01:39:40 +0000
jah <jah () zadkiel plus com> wrote:

The attached timing.cc.patch will prevent division by zero and instead
return 0.


Hi Jah,

Is your patch different than this one?:

Author: david
Date: Wed Dec 10 15:04:00 2008
New Revision: 11350

Modified:
   nmap-exp/david/nmap-perf/scan_engine.cc

Log:
Disable the rate limiting when --max-scan-delay 0 is given. This just avoids
dividing by 0 and setting the maximum rate to +inf.


Brandon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAklIWOUACgkQqaGPzAsl94ImLgCeKcdZetyYxw0MjDPKyIVSI2oI
5B8An0RksdgPj1+AnbQfr3DomnQRgSyp
=Mczk
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: