Nmap Development mailing list archives

Re: Packet rate logging and division by zero


From: jah <jah () zadkiel plus com>
Date: Wed, 17 Dec 2008 02:01:56 +0000

On 17/12/2008 01:41, Brandon Enright wrote:
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.
Hi Brandon,

David's seems to affect a hostgroups max_packet_send_rate whilst mine
only affects the send rate meter output.
The 1.#J is definitely printed with the version of nmap-perf I last
built (which happens to be r11350) and it looks like it would be still
with the current version of nmap-perf.

jah



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


Current thread: