diff options
author | wiz <wiz> | 2005-02-27 22:49:43 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-02-27 22:49:43 +0000 |
commit | eb5e7f81e0c27f787b58e2240412d18368c64017 (patch) | |
tree | 44b377a9ae2f61d715fd311edb37ebedd625a337 /net/mtr-gtk/patches | |
parent | 6c133eb0c2c468b1959ce3aba6e48784e21c1786 (diff) | |
download | pkgsrc-eb5e7f81e0c27f787b58e2240412d18368c64017.tar.gz |
Update to 0.69:
v0.69 make distclean should now also remove "rej" files.
Antonio Querubin: update getopt.h . More cleanups using
new infrastructure.
rcw: Fixed IPV6 support: When compiled in an IPV6-supporting
environment, but when the kernel doesn't support IPV6, mtr would
fail to start.
v0.68 included some old patches.
included patch from Antonio Querubin for better IPV6 support
restructured some more whitespace.
added mtr.h where "global" things should go. Not finished
moving things around, but now that the infrastructure is there,
it should be easy.
Diffstat (limited to 'net/mtr-gtk/patches')
-rw-r--r-- | net/mtr-gtk/patches/patch-aa | 10 | ||||
-rw-r--r-- | net/mtr-gtk/patches/patch-ab | 33 |
2 files changed, 23 insertions, 20 deletions
diff --git a/net/mtr-gtk/patches/patch-aa b/net/mtr-gtk/patches/patch-aa index 75fb4e8f397..e55f5d89646 100644 --- a/net/mtr-gtk/patches/patch-aa +++ b/net/mtr-gtk/patches/patch-aa @@ -1,10 +1,10 @@ -$NetBSD: patch-aa,v 1.3 2004/10/27 16:18:31 wiz Exp $ +$NetBSD: patch-aa,v 1.4 2005/02/27 22:49:43 wiz Exp $ ---- net.c.orig 2004-10-27 10:04:07.000000000 -0400 -+++ net.c 2004-10-27 10:12:18.000000000 -0400 -@@ -249,7 +249,9 @@ +--- net.c.orig 2005-01-13 09:13:53.000000000 +0100 ++++ net.c +@@ -305,7 +305,9 @@ void net_send_query(int index) rv = sendto(sendsock, packet, abs(packetsize), 0, - (struct sockaddr *)&remoteaddress, sizeof(remoteaddress)); + remotesockaddr, salen); if (rv >= 0) { +#if 0 fprintf (stderr, "You've got a broken (FreeBSD?) system\n"); diff --git a/net/mtr-gtk/patches/patch-ab b/net/mtr-gtk/patches/patch-ab index 1f93757bc73..06a9f78ee14 100644 --- a/net/mtr-gtk/patches/patch-ab +++ b/net/mtr-gtk/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.6 2005/02/01 17:02:00 wiz Exp $ +$NetBSD: patch-ab,v 1.7 2005/02/27 22:49:43 wiz Exp $ ---- dns.c.orig 2004-08-26 09:56:53.000000000 +0200 +--- dns.c.orig 2005-01-11 09:32:42.000000000 +0100 +++ dns.c @@ -32,9 +32,17 @@ #include <sys/socket.h> @@ -20,7 +20,7 @@ $NetBSD: patch-ab,v 1.6 2005/02/01 17:02:00 wiz Exp $ #include <unistd.h> #include <fcntl.h> #include <ctype.h> -@@ -282,6 +290,17 @@ char nullstring[] = ""; +@@ -294,6 +302,17 @@ char nullstring[] = ""; int use_dns = 1; @@ -38,7 +38,7 @@ $NetBSD: patch-ab,v 1.6 2005/02/01 17:02:00 wiz Exp $ /* Code */ #ifdef CorruptCheck -@@ -448,14 +467,14 @@ void dns_open(void) +@@ -468,14 +487,14 @@ void dns_open(void) { int option,i; @@ -58,7 +58,7 @@ $NetBSD: patch-ab,v 1.6 2005/02/01 17:02:00 wiz Exp $ resfd = socket(AF_INET, SOCK_DGRAM, 0); if (resfd == -1) { fprintf(stderr,"Unable to allocate socket for nameserver communication: %s\n", -@@ -814,17 +833,17 @@ void dorequest(char *s,int type,word id) +@@ -858,17 +877,17 @@ void dorequest(char *s,int type,word id) { packetheader *hp; int r,i; @@ -80,25 +80,28 @@ $NetBSD: patch-ab,v 1.6 2005/02/01 17:02:00 wiz Exp $ sizeof(struct sockaddr)); } -@@ -1161,15 +1180,15 @@ void dns_ack(void) - if (r > 0) { +@@ -1224,18 +1243,18 @@ void dns_ack(void) /* Check to see if this server is actually one we sent to */ - if (from.sin_addr.s_addr == localhost) { + if ( addrcmp( (void *) &(from4->sin_addr), (void *) &localhost, + (int) AF_INET ) == 0 ) { - for (i = 0;i < _res.nscount;i++) -- if ((_res.nsaddr_list[i].sin_addr.s_addr == from.sin_addr.s_addr) || -- (!_res.nsaddr_list[i].sin_addr.s_addr)) /* 0.0.0.0 replies as 127.0.0.1 */ +- if ( addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr), + for (i = 0;i < myres.nscount;i++) -+ if ((myres.nsaddr_list[i].sin_addr.s_addr == from.sin_addr.s_addr) || -+ (!myres.nsaddr_list[i].sin_addr.s_addr)) /* 0.0.0.0 replies as 127.0.0.1 */ ++ if ( addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr), + (void *) &(from4->sin_addr), (int) AF_INET ) == 0 || +- addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr), ++ addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr), + (void *) &unspec_addr, (int) AF_INET ) != 0 ) /* 0.0.0.0 replies as 127.0.0.1 */ break; } else - for (i = 0;i < _res.nscount;i++) -- if (_res.nsaddr_list[i].sin_addr.s_addr == from.sin_addr.s_addr) +- if ( addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr), + for (i = 0;i < myres.nscount;i++) -+ if (myres.nsaddr_list[i].sin_addr.s_addr == from.sin_addr.s_addr) ++ if ( addrcmp( (void *) &(myres.nsaddr_list[i].sin_addr), + (void *) &(from4->sin_addr), AF_INET ) == 0 ) break; - if (i == _res.nscount) { + if (i == myres.nscount) { sprintf(tempstring,"Resolver error: Received reply from unknown source: %s", - inet_ntoa(from.sin_addr)); + inet_ntoa(from4->sin_addr )); restell(tempstring); |