From b1f5943b6f432933f43f6d15edd817fe98dcbb36 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 20 May 2019 03:43:10 +0000 Subject: [PATCH] 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. --- portlist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portlist.cc b/portlist.cc index 1b10e06a3..34bca9c5e 100644 --- a/portlist.cc +++ b/portlist.cc @@ -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)