From 3af559b8521fc8caf7fcd36a6179ecbf9e6fc5c6 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 24 Mar 2009 21:04:37 +0000 Subject: [PATCH] Only print the "insufficient responses for TCP sequencing" if at least one response was received, not zero. Because four responses are sufficient, the message will be printed if one, two, or three reponses were received. The message started being printed with zero responses in r12285, with an unrelated change. The message also now includes the IP address of the relevant host and requires debugging to be enabled. --- osscan2.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/osscan2.cc b/osscan2.cc index a56f4fd85..f86ce0e2f 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -1806,10 +1806,9 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) { seq_AVs[avnum].attribute = (char*)"ISR"; sprintf(seq_AVs[avnum].value, "%X", (unsigned int) seq_rate); avnum++; - } - else { - log_write(LOG_PLAIN, - "Insufficient responses for TCP sequencing (%d), OS detection may be less accurate\n", hss->si.responses); + } else if (hss->si.responses > 0) { + if (o.debugging) + log_write(LOG_PLAIN, "Insufficient responses from %s for TCP sequencing (%d), OS detection may be less accurate\n", hss->target->targetipstr(), hss->si.responses); } /* Now it is time to deal with IPIDs */