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
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
- 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....
+
AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.30)
+AM_INIT_AUTOMAKE(mtr, 0.31)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)
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))
-.TH MTR 8 "December 28, 1997" "mtr" "mtr"
+.TH MTR 8 "March 4, 1999" "mtr" "mtr"
.SH NAME
.SH SYNOPSIS
.B mtr
[\c
-.B \-hvrctgi\c
+.B \-hvrctglsni\c
]
[\c
.B \-\-help\c
.SH DESCRIPTION
.B mtr
-combines the functionaly of the
+combines the functionality of the
.B traceroute
and
.B ping
}
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);
}
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. */