/[smeserver]/rpms/djbdns/sme10/500-cutom-dnscache-maxloop.patch
ViewVC logotype

Annotation of /rpms/djbdns/sme10/500-cutom-dnscache-maxloop.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed Jul 12 16:43:25 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: djbdns-1_05-10_el7_sme
Changes since 1.1: +14 -2 lines
* Wed Jul 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-10.sme
- improve short ttl cname resolution and glueless answer from akadns [SME: 8362]
- 500-cutom-dnscache-maxloop.patch: increase QUERY_MAXLEVEL 5->10 , set  QUERY_MAXLOOP 160

1 unnilennium 1.1 --- djbdns-1.05/query.c 2012-08-30 22:14:28.885825918 +0800
2     +++ djbdns-1.05-new/query.c 2012-08-30 22:22:23.887727783 +0800
3     @@ -220,7 +217,7 @@
4    
5    
6     NEWNAME:
7     - if (++z->loop == 150) goto DIE;
8 unnilennium 1.2 + if (++z->loop == QUERY_MAXLOOP) goto DIE;
9 unnilennium 1.1 d = z->name[z->level];
10     dtype = z->level ? DNS_T_A : z->type;
11     dlen = dns_domain_length(d);
12     @@ -489,7 +486,7 @@
13    
14    
15     HAVEPACKET:
16     - if (++z->loop == 150) goto DIE;
17 unnilennium 1.2 + if (++z->loop == QUERY_MAXLOOP) goto DIE;
18 unnilennium 1.1 buf = z->qm->dt.packet;
19     len = z->qm->dt.packetlen;
20    
21 unnilennium 1.2 diff -ru djbdns-1.05/query.h djbdns-1.05-new/query.h
22     --- djbdns-1.05/query.h 2001-02-11 22:11:45.000000000 +0100
23     +++ djbdns-1.05-new/query.h 2005-11-10 18:39:58.000000000 +0100
24     @@ -7,6 +7,7 @@
25     -#define QUERY_MAXLEVEL 5
26     +#define QUERY_MAXLEVEL 10
27     #define QUERY_MAXALIAS 16
28     #define QUERY_MAXNS 16
29     +#define QUERY_MAXLOOP 160
30    
31     struct query {
32     unsigned int loop;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed