- Fixed the FreeBSD bug detection stuff.
source: ftp://ftp.bitwizard.nl/mtr/mtr-0.32.tar.gz
mtr_DEPENDENCIES = $(GTK_OBJ) $(CURSES_OBJ)
mtr_LDFLAGS = $(GTK_OBJ) $(CURSES_OBJ)
-EXTRA_DIST = SECURITY mtr.8
+EXTRA_DIST = SECURITY mtr.8 Makefile Makefile.dist
+distclean-local:
+ cp Makefile.dist Makefile
DISTCLEANFILES = *~
--- /dev/null
+
+#
+# This is an attempt on simplifying the compilation of mtr to a simple "make".
+#
+
+firstrule:
+ ./configure
+ $(MAKE)
+
+clean:
+ rm -f *.o *~ core
+
+distclean: clean
+ rm -f mtr config.cache config.status config.log \
+ stamp-h stamp-h[0-9]* TAGS ID
+
WHAT'S NEW?
+ v0.32 Fixed the FreeBSD bug detection stuff.
+
v0.31 Fixed a few documentation issues. -- Matt
Changed the autoconf stuff to find the resolver library on
Solaris. -- REW
not be reset at the start of the "round". This way if you probe
slowly (relative to the RTT time to the end host), it can probe
all hosts in the first "round".
+ -- DONE.
+
+ - allow "keyboard navigation" in the GTK version.
+
- Bugs to fix?
- Do something useful if host couldn't be resolved.
+ - 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! Suggestions welcome.
+
- Nice to have:
- stop sending packets when a new host is getting entered.
- Check why it still tries to go for X11 display if DISPLAY is unset.
(I saw code to handle this)
- - 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! Suggestions welcome.
-
- Read environment variable "MTR_DEFAULTS" as a commandline before
parsing the commandline. -- DONE. (ok it's MTR_OPTIONS.)
AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.31)
+AM_INIT_AUTOMAKE(mtr, 0.32)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)
int gtk_detect(int *argc, char ***argv) {
if(getenv("DISPLAY") != NULL) {
- gtk_do_init(argc, argv);
+ /* If we do this here, gtk_init exits on an error. This happens
+ BEFORE the user has had a chance to tell us not to use the
+ display... */
+ /* gtk_do_init(argc, argv); */
return TRUE;
} else {
return FALSE;
rv = sendto(sendsock, packet, packetsize, 0,
(struct sockaddr *)&remoteaddress, sizeof(remoteaddress));
- if (first && (rv == EINVAL)) {
+ if (first && (rv < 0) && (errno == EINVAL)) {
first = 0;
ip->len = packetsize;
rv = sendto(sendsock, packet, packetsize, 0,