mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
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:
parent
76b7a7383f
commit
b0b0c0926a
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue