summaryrefslogtreecommitdiff
path: root/net/mtr-gtk/patches
diff options
context:
space:
mode:
authorwiz <wiz>2001-11-04 14:09:31 +0000
committerwiz <wiz>2001-11-04 14:09:31 +0000
commitcb6f0ff86739edf0fea203cb75f8e0c47a01e001 (patch)
treee4a3c43124dbe56fa6d2bd49c7b26f65c9e50b93 /net/mtr-gtk/patches
parent4dbe604cd984534ebc05a02a46b8110fa2ab2af2 (diff)
downloadpkgsrc-cb6f0ff86739edf0fea203cb75f8e0c47a01e001.tar.gz
Add patch to add rudimentary cname chasing to the ptr lookup stuff so
that classless in-addr lookups work. Patch by atatat. Bump to 0.42nb1.
Diffstat (limited to 'net/mtr-gtk/patches')
-rw-r--r--net/mtr-gtk/patches/patch-ab34
1 files changed, 31 insertions, 3 deletions
diff --git a/net/mtr-gtk/patches/patch-ab b/net/mtr-gtk/patches/patch-ab
index 891b77b57c4..ff4af0543be 100644
--- a/net/mtr-gtk/patches/patch-ab
+++ b/net/mtr-gtk/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2001/10/16 15:11:00 agc Exp $
+$NetBSD: patch-ab,v 1.2 2001/11/04 14:09:32 wiz Exp $
---- dns.c.orig Wed Jun 9 11:09:20 1999
-+++ dns.c Tue Aug 10 01:21:12 1999
+--- dns.c.orig Sat Mar 4 02:46:55 2000
++++ dns.c Fri Nov 2 14:16:56 2001
@@ -751,7 +751,7 @@
void dorequest(char *s,int type,word id){
packetheader *hp;
@@ -11,3 +11,31 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/10/16 15:11:00 agc Exp $
r = res_mkquery(QUERY,s,C_IN,type,NULL,0,NULL,buf,MaxPacketsize);
if (r == -1){
restell("Resolver error: Query too large.");
+@@ -981,7 +981,7 @@
+ restell("Resolver error: Specified rdata length exceeds packet size.");
+ return;
+ }
+- if (datatype == qdatatype){
++ if (datatype == qdatatype || datatype == T_CNAME){
+ if (debug){
+ sprintf(tempstring,"Resolver: TTL: %s",strtdiff(sendstring,ttl));
+ restell(tempstring);
+@@ -1013,6 +1013,7 @@
+ }
+ break;
+ case T_PTR:
++ case T_CNAME:
+ *namestring = '\0';
+ r = dn_expand(s,s + l,c,namestring,MAXDNAME);
+ if (r == -1){
+@@ -1027,6 +1028,10 @@
+ restell("Resolver error: Domain name too long.");
+ failrp(rp);
+ return;
++ }
++ if (datatype == T_CNAME){
++ strcpy(stackstring,namestring);
++ break;
+ }
+ if (!rp->hostname){
+ rp->hostname = (char *)statmalloc(strlen(namestring) + 1);