- Update to 0.69

PR:		ports/79237
Submitted by:	ume
Approved by:	maintainer timeout (2 months)
This commit is contained in:
Pav Lucistnik 2005-05-28 17:26:23 +00:00
parent 26e961906b
commit f2c29dc024
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136349
4 changed files with 35 additions and 15 deletions

View file

@ -6,9 +6,8 @@
#
PORTNAME= mtr
PORTVERSION= 0.65
PORTREVISION= 2
CATEGORIES= net
PORTVERSION= 0.69
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
ftp://ftp.netsw.org/net/ip/audit/packets/ \
ftp://ftp.gw.com/mirrors/pub/unix/mtr/

View file

@ -1,2 +1,2 @@
MD5 (mtr-0.65.tar.gz) = 32de3cb8f0763e352124ff4fd74690ab
SIZE (mtr-0.65.tar.gz) = 132318
MD5 (mtr-0.69.tar.gz) = 58904d6d8d70114195cdeb653d56914c
SIZE (mtr-0.69.tar.gz) = 183216

31
net/mtr/files/patch-dns.c Normal file
View file

@ -0,0 +1,31 @@
Index: dns.c
diff -u -p dns.c.orig dns.c
--- dns.c.orig Tue Jan 11 17:32:42 2005
+++ dns.c Thu Feb 3 19:25:28 2005
@@ -437,7 +437,7 @@ char *strlongip(ip_t * ip)
}
-int longipstr(char *s, ip_t *dst)
+int longipstr(char *s, ip_t *dst, int af)
{
#ifdef ENABLE_IPV6
return inet_pton( af, s, dst );
@@ -488,7 +488,7 @@ void dns_open(void)
strerror(errno));
exit(-1);
}
- longipstr( "127.0.0.1", &localhost );
+ longipstr( "127.0.0.1", &localhost, AF_INET );
aseed = time(NULL) ^ (time(NULL) << 3) ^ (dword)getpid();
for (i = 0;i < BashSize;i++) {
idbash[i] = NULL;
@@ -1228,7 +1228,7 @@ void dns_ack(void)
if ( addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr),
(void *) &(from4->sin_addr), (int) AF_INET ) == 0 ||
addrcmp( (void *) &(_res.nsaddr_list[i].sin_addr),
- (void *) &unspec_addr, (int) AF_INET ) != 0 ) /* 0.0.0.0 replies as 127.0.0.1 */
+ (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++)

View file

@ -1,10 +0,0 @@
--- raw.c.orig Sat Oct 30 13:27:31 2004
+++ raw.c Sat Oct 30 13:27:39 2004
@@ -22,6 +22,7 @@
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>