- DNS lookups are now suppressed if you don't want them.
source: ftp://ftp.bitwizard.nl/mtr/mtr-0.28.tar.gz
AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.27)
+AM_INIT_AUTOMAKE(mtr, 0.28)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)
#include "report.h"
#include "net.h"
+extern int dns;
+
void report_open() {
printf("%-40s LOSS RCVD SENT BEST AVG WORST\n", "HOST");
fflush(stdout);
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 {