1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 15:06:35 +00:00

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.
This commit is contained in:
david
2009-03-24 21:04:37 +00:00
parent 1b315f7b97
commit 3af559b852

View File

@@ -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 */