~ubuntu-branches/ubuntu/utopic/maradns/utopic-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.0.05/update/2.9.06/deadwood-2.9.05-deliver_all.patch

  • Committer: Package Import Robot
  • Author(s): Nicholas Bamber
  • Date: 2012-03-14 08:45:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20120314084548-6slw035p8443a19q
Tags: 1.4.11-1
* New upstream release
* Removed changelog patch
* Added to docs rules to fix missing faq.txt
* Raised standards version to 3.9.3
  - Updated debian/copyright format
  - Removed lintian override
  - Changed working directories from /var/run to /run

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
We no longer use the deliver_all parameter; this parameter was originally
2
 
submitted by Jakob Blomer at CERN labs (yes, *that* CERN labs).
3
 
 
4
 
What this parameter did was change how Deadwood 2 handled blank DNS packets;
5
 
because of issues I had with our ISP's upstream servers in 2008, I tuned 
6
 
Deadwood to discard empty packets.  However, in some cases letting them
7
 
through as-is without caching speeds up resolution of names.
8
 
 
9
 
Deadwood 3's codebase has fine-tuneds the handling of these invalid DNS
10
 
packets; empty DNS packets are now treated like low-TTL "this hostname
11
 
is not here" packets (chase.com's buggy handling of AAAA packets) unless
12
 
the RCODE is "server fail" (in.com's broken DNS server), at which point
13
 
we act like as though we didn't get the packet.
14
 
 
15
 
--- deadwood-2.9.05/src/DwSocket.c      2010-08-20 00:54:13.000000000 -0700
16
 
+++ deadwood-2.9.06/src/DwSocket.c      2010-09-01 10:44:46.000000000 -0700
17
 
@@ -67,7 +67,6 @@
18
 
 int32_t maradns_gid = 99;
19
 
 int num_retries = 2;
20
 
 dwd_dict *blacklist_dict = 0;
21
 
-int deliver_all = 0;
22
 
 
23
 
 #ifdef MINGW
24
 
 u_long dont_block = 0;
25
 
@@ -449,7 +448,6 @@
26
 
         maradns_gid = get_key_n(DWM_N_maradns_gid,10,65535,99);
27
 
         resurrections = get_key_n(DWM_N_resurrections,0,1,1);
28
 
         num_retries = get_key_n(DWM_N_num_retries,0,8,2);
29
 
-        deliver_all = get_key_n(DWM_N_deliver_all,0,1,1);
30
 
 
31
 
         if((num_ports & (num_ports - 1)) != 0) {
32
 
                 dw_fatal("num_ports must be a power of 2");
33
 
--- deadwood-2.9.05/src/DwUdpSocket.c   2010-08-20 00:54:13.000000000 -0700
34
 
+++ deadwood-2.9.06/src/DwUdpSocket.c   2010-09-01 10:44:54.000000000 -0700
35
 
@@ -56,7 +56,6 @@
36
 
 extern int min_bind;
37
 
 extern int num_ports;
38
 
 extern int num_retries;
39
 
-extern int deliver_all;
40
 
 
41
 
 /* Other mararc parameters */
42
 
 extern dwd_dict *blacklist_dict;
43
 
--- deadwood-2.9.06/doc/Deadwood.ej.orig        2010-09-01 10:45:54.000000000 -0700
44
 
+++ deadwood-2.9.06/doc/Deadwood.ej     2010-09-01 10:46:48.000000000 -0700
45
 
@@ -72,15 +72,8 @@
46
 
 This is the directory the program will run from.
47
 
 
48
 
 <h2>deliver_all</h2>
49
 
-Some upstream DNS servers violate the RFCs and send "name error"
50
 
-DNS packets without a SOA record in the NS section of the reply.
51
 
-Deadwood used to discard such packets; Deadwood now passes such
52
 
-packets on to the client without caching them.
53
 
-<p>
54
 
-Should the old behavior of discarding these packets is desired,
55
 
-set this to 0 with "deliver_all=0" in the dwood3rc file.
56
 
-<p>
57
 
-The default value for this is 1
58
 
+This affects behavior in Deadwood 2.3, but has no effect in Deadwood 3.
59
 
+This variable is only here so Deadwood 2 rc files can run in Deadwood 3.
60
 
 
61
 
 <h2>dns_port</h2>
62
 
 This is the port Deadwood binds to and listens on for