From: Roger Wolff Date: Wed, 7 Apr 2004 00:00:00 +0000 (+0000) Subject: mtr v0.58 X-Git-Tag: v0.58^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9bc84d99e896035b36c55da376dd40065fb7b5;p=thirdparty%2Fmtr.git mtr v0.58 - I don't remember. Fogot to update this. :-( Check the patch. source: ftp://ftp.bitwizard.nl/mtr/mtr-0.58.tar.gz --- diff --git a/configure.in b/configure.in index 9cd9963..9a8fd08 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT(mtr.c) -AM_INIT_AUTOMAKE(mtr, 0.57) +AM_INIT_AUTOMAKE(mtr, 0.58) AC_SUBST(GTK_OBJ) diff --git a/dns.c b/dns.c index ac7a428..fabab32 100644 --- a/dns.c +++ b/dns.c @@ -44,6 +44,8 @@ #include #include +#include "dns.h" + #ifdef NO_STRERROR extern int sys_nerr; extern char *sys_errlist[]; @@ -53,9 +55,6 @@ extern char *sys_errlist[]; /* Hmm, it seems Irix requires this */ extern int errno; -/* Defined in mtr.c */ -extern int dns; - /* Defines */ #undef Debug @@ -75,14 +74,6 @@ extern int dns; #define nonull(s) (s) ? s : nullstring -/* Typedefs */ - -typedef unsigned char byte; -typedef unsigned short word; -typedef unsigned long dword; - -typedef unsigned int ip_t; - /* Structures */ struct resolve { diff --git a/dns.h b/dns.h index 6322840..8daccb7 100644 --- a/dns.h +++ b/dns.h @@ -17,13 +17,25 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* Typedefs */ + +typedef unsigned char byte; +typedef unsigned short word; +typedef unsigned long dword; + +typedef unsigned int ip_t; + + + /* Prototypes for dns.c */ void dns_open(); int dns_waitfd(); void dns_ack(); void dns_events(double *sinterval); -char *dns_lookup(int address); -char *dns_lookup2(int address); +char *dns_lookup(ip_t address); +char *dns_lookup2(ip_t address); int dns_forward(char *name); -char *strlongip (int address); +char *strlongip(ip_t ip); + +extern int dns;