mirror of
https://github.com/nmap/nmap.git
synced 2026-09-27 02:29:42 +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:
parent
1cd584f4d8
commit
b1f5943b6f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue