]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.33 v0.33
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Tue, 9 Mar 1999 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:37 +0000 (20:45 +0000)
 - Fixed the Linux glibc resolver problems.
 - Fixed the off-by-one problem with -c option.

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

NEWS
configure.in
select.c

diff --git a/NEWS b/NEWS
index e48abd164378d5a8afbcea5ad6d07d770fad9351..c8150be6311b910d9aa3155efd8610b7d8f6b15a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 WHAT'S NEW?
 
+  v0.33 Fixed the Linux glibc resolver problems.
+        Fixed the off-by-one problem with -c option. 
+
   v0.32 Fixed the FreeBSD bug detection stuff. 
 
   v0.31 Fixed a few documentation issues. -- Matt
index 3f9422433a509e5addf93b5bdc58ed35088cb5a3..8b369a2458bb49e3fbca37d185dee4bab1d103b8 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.32)
+AM_INIT_AUTOMAKE(mtr, 0.33)
 
 AC_SUBST(GTK_OBJ)
 AC_SUBST(CURSES_OBJ)
@@ -41,6 +41,10 @@ AC_CHECK_FUNC(res_init, ,
   AC_CHECK_LIB(bind, res_init, , 
    AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
 
+AC_CHECK_FUNC(res_mkquery, , 
+  AC_CHECK_LIB(bind, res_init, , 
+   AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
+
 AC_CHECK_FUNC(herror, , AC_DEFINE(NO_HERROR))
 AC_CHECK_FUNC(strerror, , AC_DEFINE(NO_STRERROR))
 
index 2f184a8dd7539a7a12b17ddfc0dce0e5dda7eb5e..17d7601671daffd2857b7dae5d5c15d4dbef9f79 100644 (file)
--- a/select.c
+++ b/select.c
@@ -46,7 +46,9 @@ void select_loop() {
   struct timeval lasttime, thistime, selecttime;
   float wt;
 
-  NumPing = 0;
+  /* This starts at -1, because the first packet sent is not counted
+     as a ping. That confuses people.  */
+  NumPing = -1; 
   anyset = 0;
   gettimeofday(&lasttime, NULL);
   DeltaTime = WaitTime/10;