]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.31 v0.31
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Fri, 5 Mar 1999 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:36 +0000 (20:45 +0000)
 - Fixed a few documentation issues. -- Matt
 - Changed the autoconf stuff to find the resolver library on
   Solaris. -- REW
 - Cleaned up the autoconf.in file a bit. -- Matt.

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

NEWS
README
TODO
configure.in
mtr.8
mtr.c
net.c

diff --git a/NEWS b/NEWS
index 33da46afb6ea0de3d5defe5203d810b96770f4ca..b17c116351ac27b2f1696ec5100a3823670ae0f1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,13 @@
 WHAT'S NEW?
 
+  v0.31 Fixed a few documentation issues. -- Matt
+        Changed the autoconf stuff to find the resolver library on 
+            Solaris. -- REW
+        Cleaned up the autoconf.in file a bit. -- Matt.
+
   v0.30 Fixed a typo in the changelog (NEWS) entry for 0.27. :-)
        added use of "MTR_OPTIONS" environment variable for defaults.
 
-
   v0.29 Lots of stuff. 
         Neato overview display by David Sward. 
         FreeBSD does wrong in the kernel the same that Solaris/x86 (see 
diff --git a/README b/README
index 1f68dad41b7f8a18f7f8de389ae106f7fade72db..92544d4ae30d9c0bd91f0cce1f7f8b80191dc174 100644 (file)
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
 WHAT IS MTR?
 
-  mtr combines the functionaly of the 'traceroute' and 'ping' programs 
+  mtr combines the functionality of the 'traceroute' and 'ping' programs 
   in a single network diagnostic tool.
 
   As mtr starts, it investigates the network connection between the host
diff --git a/TODO b/TODO
index 5ceb3cdb17b7d3cd54482bdea69291a1aaf376a9..729cf05b51b1a2955381c1a8bd2c96f71103b025 100644 (file)
--- a/TODO
+++ b/TODO
   - Revert to curses mode even if DISPLAY is set, but a problem
     prevents us from running in X11 mode.
        -->  The problem is that gtk_init simply calls exit for us if
-            it finds a problem. Tricky!
+            it finds a problem. Tricky! Suggestions welcome. 
 
   - Read environment variable "MTR_DEFAULTS" as a commandline before
-    parsing the commandline. 
+    parsing the commandline.  -- DONE. (ok it's MTR_OPTIONS.)
+
+  - Autoconf 2.13 has a neat function that can be used to find the 
+    res_init function: 
+
+          AC_SEARCH_LIBS(res_init, bind resolv, ,
+             AC_MSG_ERROR(No resolver library found))
+
+    At the moment (march 1999) autoconf 2.13 is still too new to require 
+    everyone to upgrade. About a year from now we can put this in....
+
 
index 00cad60d57e39f10fc22584df447d9b7bc98950d..f0da779f18d5464a1f73be45c4d6ddbc5319b374 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.30)
+AM_INIT_AUTOMAKE(mtr, 0.31)
 
 AC_SUBST(GTK_OBJ)
 AC_SUBST(CURSES_OBJ)
@@ -38,10 +38,8 @@ AC_CHECK_FUNC(gethostbyname, ,
   AC_CHECK_LIB(nsl, gethostbyname, , AC_MSG_ERROR(No nameservice library found)))
 
 AC_CHECK_FUNC(res_init, , 
-  AC_CHECK_LIB(bind, res_init, , AC_MSG_ERROR(No resolver library found)))
-
-AC_CHECK_FUNC(res_mkquery, , 
-  AC_CHECK_LIB(resolv, res_mkquery, , AC_MSG_ERROR(No resolver library found)))
+  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/mtr.8 b/mtr.8
index 4f01de6df84fc57ec14e84d6e914a5af6118315a..626298d6703716aebf2176184f2e466a7485a7e1 100644 (file)
--- a/mtr.8
+++ b/mtr.8
@@ -1,4 +1,4 @@
-.TH MTR 8 "December 28, 1997" "mtr" "mtr"
+.TH MTR 8 "March 4, 1999" "mtr" "mtr"
 
 
 .SH NAME
@@ -8,7 +8,7 @@ mtr \- a network diagnostic tool
 .SH SYNOPSIS
 .B mtr 
 [\c
-.B \-hvrctgi\c
+.B \-hvrctglsni\c
 ]
 [\c
 .B \-\-help\c
@@ -46,7 +46,7 @@ mtr \- a network diagnostic tool
 .SH DESCRIPTION
 
 .B mtr 
-combines the functionaly of the 
+combines the functionality of the 
 .B traceroute
 and 
 .B ping
diff --git a/mtr.c b/mtr.c
index 81fd74b170f56f6371230aa77a765b26036711a8..b03021f7af4a423f1638322f90f55a46fa9f07bf 100644 (file)
--- a/mtr.c
+++ b/mtr.c
@@ -167,9 +167,9 @@ int main(int argc, char **argv) {
   }
 
   if(PrintHelp) {
-    printf("usage: %s [-hvrctlis] [--help] [--version] [--report]\n"
+    printf("usage: %s [-hvrctglsni] [--help] [--version] [--report]\n"
           "\t\t[--report-cycles=COUNT] [--curses] [--gtk]\n"
-           "\t\t[--raw] [--split]\n"      /* BL */
+           "\t\t[--raw] [--split] [--no-dns]\n"      /* BL */
           "\t\t[--interval=SECONDS] HOSTNAME\n", argv[0]);
     exit(0);
   }
diff --git a/net.c b/net.c
index 994fa489d234de8331aa240c9336270dde4db95c..998236e5fb45846fe6c4053f17abb566bfebfa98 100644 (file)
--- a/net.c
+++ b/net.c
@@ -45,11 +45,11 @@ int timestamp;
     the fields have different names between, for instance, Linux and 
     Solaris  */
 struct ICMPHeader {
-  unsigned char type;
-  unsigned char code;
-  unsigned short checksum;
-  unsigned short id;
-  unsigned short sequence;
+  uint8 type;
+  uint8 code;
+  uint16 checksum;
+  uint16 id;
+  uint16 sequence;
 };
 
 /*  Structure of an IP header.  */