From b0b0c0926a345553814006b65827d673163cc4d8 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 3 Jan 2009 21:53:38 +0000 Subject: [PATCH] Just as during port scans, during host discovery don't adjust timing and don't set a ping probe when an ICMP destination unreachable doesn't come directly from the target. --- scan_engine.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scan_engine.cc b/scan_engine.cc index 6764b411c..0af5929e3 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -4392,6 +4392,9 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) { } else { goodone = true; newstate = HOST_DOWN; + adjust_timing = false; + if (o.debugging > 2) + log_write(LOG_PLAIN, "ICMP response from %s is not from target (%s); not adjusting timing.\n", inet_ntoa(ip->ip_src), hss->target->targetipstr()); } if (o.debugging) { if (ping->code == 3)