1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-19 04:39:01 +00:00

getting closer to 4.20ALPHA9

This commit is contained in:
fyodor
2006-10-14 01:25:43 +00:00
parent 25bbd2983d
commit e4ee4d5e4c
13 changed files with 93 additions and 64 deletions

View File

@@ -678,10 +678,16 @@ bool PortList::isIgnoredState(int state) {
state == PORT_FRESH)
return false; /* Cannot be ignored */
/* If openonly, we always ignore states that don't at least have open
as a possibility. */
if (o.openOnly() && state != PORT_OPENFILTERED && state != PORT_UNFILTERED
&& getStateCounts(state) > 0)
return true;
int max_per_state = 25; // Ignore states with more ports than this
/* We will show more ports when verbosity is requested */
if (o.verbose || o.debugging)
max_per_state *= (o.verbose + 50 * o.debugging);
max_per_state *= (o.verbose + 20 * o.debugging);
if (getStateCounts(state) > max_per_state)
return true;