1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Fixed a bug with the --defeat-rst-ratelimit option.

This commit is contained in:
josh
2009-05-28 23:36:45 +00:00
parent 8862e63add
commit fe069f1420
2 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
# Nmap Changelog ($Id$); -*-text-*- # Nmap Changelog ($Id$); -*-text-*-
o Fixed a bug with the --defeat-rst-ratelimit option [Josh]
o [Zenmap] Operating system icons are now always loaded as PNGs, even on o [Zenmap] Operating system icons are now always loaded as PNGs, even on
platforms that support SVG images. Loading PNGs was over ten times platforms that support SVG images. Loading PNGs was over ten times

View File

@@ -2688,11 +2688,16 @@ static void ultrascan_port_probe_update(UltraScanInfo *USI, HostScanStats *hss,
} }
adjust_ping = false; adjust_ping = false;
} }
/* Do not slow down if we are in --defeat-rst-ratelimit mode and the new /* Do not slow down if
state is closed|filtered. We don't care if it's closed|filtered because 1) we are in --defeat-rst-ratelimit mode
of a RST or a timeout because they both mean the same thing. */ 2) the new state is closed
3) this is not a UDP scan (other scans where noresp_open_scan is true
aren't possible with the --defeat-rst-ratelimit option)
We don't care if it's closed because of a RST or a timeout
because they both mean the same thing. */
if (rcvdtime != NULL if (rcvdtime != NULL
&& o.defeat_rst_ratelimit && newstate == PORT_CLOSEDFILTERED) { && o.defeat_rst_ratelimit && newstate == PORT_CLOSED
&& !USI->noresp_open_scan) {
if (probe->tryno > 0) if (probe->tryno > 0)
adjust_timing = false; adjust_timing = false;
adjust_ping = false; adjust_ping = false;