1
--- maradns-2.0.03/server/MaraDNS.c.orig 2011-04-15 13:21:53.000000000 -0500
2
+++ maradns-2.0.03/server/MaraDNS.c 2011-04-15 13:33:19.000000000 -0500
4
the reason for the error, the minimim log_level to log this
5
error (with reason) with
6
output: JS_ERROR on error, JS_SUCCESS on success
8
+ If error is -111, this means "truncated" (magic number)
11
int udperror(int sock,js_string *raw, struct sockaddr_in *from,
14
header.aa = 0; /* Errors are never authoritative (unless they are
15
NXDOMAINS, which this is not) */
23
header.rd = rd_val; /* RDBUG udperror */
26
- header.rcode = error;
28
+ header.rcode = error;
36
struct sockaddr_in *z; /* Makes certain ugly declarations readable */
37
int always_not_there = 0;
39
+ int not_impl_datatype = NOT_IMPLEMENTED;
43
@@ -2589,10 +2601,15 @@
47
- if(qtype >= 250 && qtype <= 254) { /* IXFR, AXFR, and 2 more */
48
+ if(qtype == 253 || qtype == 254 || qtype == 250) { /* MAILB, MAILA, TSIG */
52
+ if(qtype == 251 || qtype == 252) { /* IXFR, AXFR */
53
+ not_impl_datatype = -111;
57
/* Set 'ip' to have the ip they are using MaraDNS from */
58
z = (struct sockaddr_in *)ect->d;
59
ip = htonl((z->sin_addr).s_addr);
63
if(no_fingerprint != 1)
64
- udperror(sock,raw,0,lookfor,NOT_IMPLEMENTED,
65
+ udperror(sock,raw,0,lookfor,not_impl_datatype,
66
"not_impl in proc_query",2,desires_recursion,ect,1);