]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.62 v0.62
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Thu, 12 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)
 - 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

NEWS
configure.in
mtr.c

diff --git a/NEWS b/NEWS
index d1b7159a76b7f3f214ae24b1423da6f5a14ab662..fd9f888c713fe5c98181df67a2d37ec5ede809b6 100644 (file)
--- 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.
index e80c13137f7def069ea69b491b14d9b42629569b..5d63fdff50accffd010113bffde11e983f244296 100644 (file)
@@ -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 c8af0628ada2ac112751803aca51634c6c95f94a..867a2ba699169d1f5116f3f65ffbf74e45eaf601 100644 (file)
--- 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) {