From 42a7e0486cd64789d35c98091223402fbbe7811d Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 16 May 2006 22:09:58 +0000 Subject: [PATCH] Doug timing report patch --- nmap.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nmap.cc b/nmap.cc index a884502bf..bf4fb85e5 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1324,6 +1324,16 @@ int nmap_main(int argc, char *argv[]) { if (o.debugging > 1) log_write(LOG_STDOUT, "The max # of sockets we are using is: %d\n", o.max_parallelism); + // At this point we should fully know our timing parameters + if (o.debugging) { + printf("--------------- Timing report ---------------\n"); + printf(" hostgroups: min %d, max %d\n", o.minHostGroupSz(), o.maxHostGroupSz()); + printf(" rtt-timeouts: init %d, min %d, max %d\n", o.initialRttTimeout(), o.minRttTimeout(), o.maxRttTimeout()); + printf(" scan-delay: TCP %d, UDP %d\n", o.maxTCPScanDelay(), o.maxUDPScanDelay()); + printf(" parallelism: min %d, max %d\n", o.min_parallelism, o.max_parallelism); + printf(" max-retries: %d, host-timeout: %ld\n", o.getMaxRetransmissions(), o.host_timeout); + printf("---------------------------------------------\n"); + } /* Before we randomize the ports scanned, we must initialize PortList class. */ if (o.ipprotscan)