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.
This commit is contained in:
david 2009-01-03 21:53:38 +00:00
parent 76b7a7383f
commit b0b0c0926a

View file

@ -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)