]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.65 v0.65
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Wed, 25 Aug 2004 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:38 +0000 (20:45 +0000)
 - Dancer Vesperman noted that mtr no longer traces past a section of
   non-responding hosts. Apparently I added a line in net.c that
   didn't make sense in mtr-0.56. I can't find the reason for adding
   that line, so someone who thinks (s)he needs it, should holler.

source: ftp://ftp.bitwizard.nl/mtr/mtr-0.65.tar.gz

NEWS
configure.in
net.c

diff --git a/NEWS b/NEWS
index 2f871168a042a013061bf876299714acd6ea0aff..862ab15320eb68cccfc6b2a11eb81e5e8050a774 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
 WHAT'S NEW?
+  v0.65 Dancer Vesperman noted that mtr no longer traces past
+        a section of non-responding hosts. Apparently I added
+        a line in net.c that didn't make sense in mtr-0.56. I 
+        can't find the reason for adding that line, so someone 
+        who thinks (s)he needs it, should holler. 
+
   v0.64 Philippe suggests to do the time_t thingy before socket.h. 
         Apparently, MAC OS X doesn't compile socket.h otherwise.
 
index c934b0aac6df3e669074b7e369c6cf1e182bb95c..1eec99a24f3d4bb0fdf715f45e4779e993cb7223 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.64)
+AM_INIT_AUTOMAKE(mtr, 0.65)
 
 
 AC_SUBST(GTK_OBJ)
diff --git a/net.c b/net.c
index 6abbde1593f31e095b0bcc217462c52191bc5a31..0ed228e54eff435e1e7e2ec5802f46d702fa6132 100644 (file)
--- a/net.c
+++ b/net.c
@@ -551,7 +551,6 @@ void net_end_transit()
   }
 }
 
-
 int net_send_batch() 
 {
   int n_unknown=0, i;
@@ -568,16 +567,23 @@ int net_send_batch()
       bitpattern = - (int)(256 + 255*(rand()/(RAND_MAX+0.1)));
     }
   }
+
   net_send_query(batch_at);
 
   for (i=fstTTL-1;i<batch_at;i++) {
     if (host[i].addr == 0)
       n_unknown++;
 
-    if ((host[i].addr == remoteaddress.sin_addr.s_addr) ||
-        (host[i].addr == host[batch_at].addr))
+    /* The second condition in the next "if" statement was added in mtr-0.56, 
+       but I don't remember why. It makes mtr stop skipping sections of unknown
+       hosts. Removed in 0.65. 
+       If the line proves neccesary, it should at least NOT trigger that line 
+       when host[i].addr == 0 -- REW */
+    if ((host[i].addr == remoteaddress.sin_addr.s_addr) 
+       /* || (host[i].addr == host[batch_at].addr)  */)
       n_unknown = MaxHost; /* Make sure we drop into "we should restart" */
   }
+
   if ( // success in reaching target
       (host[batch_at].addr == remoteaddress.sin_addr.s_addr) ||
       // fail in consecuitive MAX_UNKNOWN_HOSTS (firewall?)