From 76ecce2f5c895580b603505d24fa9344b0d6f247 Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 24 Apr 2007 21:44:31 +0000 Subject: [PATCH] eddie's verbose distance fix --- traceroute.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/traceroute.cc b/traceroute.cc index 50189ff99..89d996d46 100644 --- a/traceroute.cc +++ b/traceroute.cc @@ -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; }