mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Make -v actually increase number of shown ports in ignorable states
With a single -v option, there was no change in how many ignorable ports (e.g. closed or filtered) would be shown before being rolled up into the "Not shown" line. Taking verbosity plus 1, we now get up to 50 ports in an ignorable state, versus up to 25 without -v.
This commit is contained in:
@@ -853,9 +853,9 @@ bool PortList::isIgnoredState(int state) {
|
||||
/* We will show more ports when verbosity is requested */
|
||||
if (o.verbose || o.debugging) {
|
||||
if (o.ipprotscan)
|
||||
max_per_state *= (o.verbose + 3 * o.debugging);
|
||||
max_per_state *= ((o.verbose + 1) + 3 * o.debugging);
|
||||
else
|
||||
max_per_state *= (o.verbose + 20 * o.debugging);
|
||||
max_per_state *= ((o.verbose + 1) + 20 * o.debugging);
|
||||
}
|
||||
|
||||
if (getStateCounts(state) > max_per_state)
|
||||
|
||||
Reference in New Issue
Block a user