1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-11 07:56:35 +00:00

eddie's verbose distance fix

This commit is contained in:
fyodor
2007-04-24 21:44:31 +00:00
parent c9c91eb094
commit 76ecce2f5c

View File

@@ -1303,11 +1303,12 @@ TraceGroup::setHopDistance (u8 hop_distance, u8 ttl) {
if (!this->hopDistance && ttl)
this->hopDistance = ttl;
if (this->hopDistance >= MAX_TTL - 1)
this->hopDistance = MAX_TTL - 1;
if (o.verbose)
log_write (LOG_STDOUT, "%s: guessing hop distance at %d\n", IPStr (), this->hopDistance);
if (this->hopDistance >= MAX_TTL - 1)
this->hopDistance = MAX_TTL - 1;
return this->hopDistance;
}