diff -ur mtr-0.27/configure mtr-0.28/configure --- mtr-0.27/configure Mon Nov 2 10:15:42 1998 +++ mtr-0.28/configure Mon Nov 2 10:47:47 1998 @@ -609,7 +609,7 @@ PACKAGE=mtr -VERSION=0.27 +VERSION=0.28 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff -ur mtr-0.27/configure.in mtr-0.28/configure.in --- mtr-0.27/configure.in Mon Nov 2 10:15:33 1998 +++ mtr-0.28/configure.in Mon Nov 2 10:47:21 1998 @@ -1,5 +1,5 @@ AC_INIT(mtr.c) -AM_INIT_AUTOMAKE(mtr, 0.27) +AM_INIT_AUTOMAKE(mtr, 0.28) AC_SUBST(GTK_OBJ) AC_SUBST(CURSES_OBJ) diff -ur mtr-0.27/report.c mtr-0.28/report.c --- mtr-0.27/report.c Sun Nov 1 00:20:19 1998 +++ mtr-0.28/report.c Mon Nov 2 10:50:18 1998 @@ -28,6 +28,8 @@ #include "report.h" #include "net.h" +extern int dns; + void report_open() { printf("%-40s LOSS RCVD SENT BEST AVG WORST\n", "HOST"); fflush(stdout); @@ -49,9 +51,9 @@ sprintf(name, "???"); } else { haddr = htonl(addr); - host = gethostbyaddr((char *)&haddr, sizeof(int), AF_INET); + host = dns?gethostbyaddr((char *)&haddr, sizeof(int), AF_INET):NULL; - if(host != NULL) { + if (host != NULL) { strncpy(name, host->h_name, 80); name[80] = 0; } else { .