From: Roger Wolff Date: Thu, 12 Aug 2004 00:00:00 +0000 (+0000) Subject: mtr v0.62 X-Git-Tag: v0.62^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2006090bcea501d825beacfa788124b71ba4c145;p=thirdparty%2Fmtr.git mtr v0.62 - Apparently someone changed gethostbyname into gethostbyname2 in mtr.c in an attempt to add IPV6 support. For systems without ipv6 support, the old gethostbyname should be used! Linux has the call even if you don't enable IPV6. Thanks Gary (rsub) source: ftp://ftp.bitwizard.nl/mtr/mtr-0.62.tar.gz --- diff --git a/NEWS b/NEWS index d1b7159..fd9f888 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,9 @@ WHAT'S NEW? + v0.62 Apparently someone changed gethostbyname into gethostbyname2 + in mtr.c in an attempt to add IPV6 support. For systems without + ipv6 support, the old gethostbyname should be used! Linux + has the call even if you don't enable IPV6. Thanks Gary (rsub) + v0.61 Attempt to get/print the local IP address. Now shows as 0.0.0.0 :-( Hints and tips appreciated! -- REW Lots of blank space reformatting. diff --git a/configure.in b/configure.in index e80c131..5d63fdf 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT(mtr.c) -AM_INIT_AUTOMAKE(mtr, 0.61) +AM_INIT_AUTOMAKE(mtr, 0.62) AC_SUBST(GTK_OBJ) diff --git a/mtr.c b/mtr.c index c8af062..867a2ba 100644 --- a/mtr.c +++ b/mtr.c @@ -376,7 +376,7 @@ int main(int argc, char **argv) #endif if (host == NULL) { - host = gethostbyname2(Hostname, af); + host = gethostbyname(Hostname); } if (host == NULL) {