From: Roger Wolff Date: Tue, 9 Mar 1999 00:00:00 +0000 (+0000) Subject: mtr v0.33 X-Git-Tag: v0.33^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d2987a87934f8aaf77c6cb53d81e02d2fbc5981;p=thirdparty%2Fmtr.git mtr v0.33 - 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 --- diff --git a/NEWS b/NEWS index e48abd1..c8150be 100644 --- 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 diff --git a/configure.in b/configure.in index 3f94224..8b369a2 100644 --- a/configure.in +++ b/configure.in @@ -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)) diff --git a/select.c b/select.c index 2f184a8..17d7601 100644 --- 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;