---
Index: unboundfastrpz/Makefile.in
===================================================================
---- unboundfastrpz/Makefile.in (revision 4923)
+--- unboundfastrpz/Makefile.in (revision 4987)
+++ unboundfastrpz/Makefile.in (working copy)
@@ -23,6 +23,8 @@
CHECKLOCK_OBJ=@CHECKLOCK_OBJ@
pythonmod/interface.h \
Index: unboundfastrpz/config.h.in
===================================================================
---- unboundfastrpz/config.h.in (revision 4923)
+--- unboundfastrpz/config.h.in (revision 4987)
+++ unboundfastrpz/config.h.in (working copy)
-@@ -1272,4 +1272,11 @@
+@@ -1275,4 +1275,11 @@
/** the version of unbound-control that this software implements */
#define UNBOUND_CONTROL_VERSION 1
+#undef ENABLE_FASTRPZ
Index: unboundfastrpz/configure.ac
===================================================================
---- unboundfastrpz/configure.ac (revision 4923)
+--- unboundfastrpz/configure.ac (revision 4987)
+++ unboundfastrpz/configure.ac (working copy)
@@ -6,6 +6,7 @@
sinclude(acx_python.m4)
sinclude(dnscrypt/dnscrypt.m4)
# must be numbers. ac_defun because of later processing
-@@ -1565,6 +1566,9 @@
+@@ -1573,6 +1574,9 @@
;;
esac
# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
Index: unboundfastrpz/daemon/daemon.c
===================================================================
---- unboundfastrpz/daemon/daemon.c (revision 4923)
+--- unboundfastrpz/daemon/daemon.c (revision 4987)
+++ unboundfastrpz/daemon/daemon.c (working copy)
@@ -91,6 +91,9 @@
#include "sldns/keyraw.h"
Index: unboundfastrpz/daemon/daemon.h
===================================================================
---- unboundfastrpz/daemon/daemon.h (revision 4923)
+--- unboundfastrpz/daemon/daemon.h (revision 4987)
+++ unboundfastrpz/daemon/daemon.h (working copy)
@@ -136,6 +136,11 @@
/** the dnscrypt environment */
/**
Index: unboundfastrpz/daemon/worker.c
===================================================================
---- unboundfastrpz/daemon/worker.c (revision 4923)
+--- unboundfastrpz/daemon/worker.c (revision 4987)
+++ unboundfastrpz/daemon/worker.c (working copy)
@@ -75,6 +75,9 @@
#include "libunbound/context.h"
verbose(VERB_ALGO, "answer norec from cache -- "
Index: unboundfastrpz/doc/unbound.conf.5.in
===================================================================
---- unboundfastrpz/doc/unbound.conf.5.in (revision 4923)
+--- unboundfastrpz/doc/unbound.conf.5.in (revision 4987)
+++ unboundfastrpz/doc/unbound.conf.5.in (working copy)
-@@ -1728,6 +1728,81 @@
+@@ -1745,6 +1745,81 @@
used by dns64 processing instead. Can be entered multiple times, list a
new domain for which it applies, one per line. Applies also to names
underneath the name given.
+])
Index: unboundfastrpz/iterator/iterator.c
===================================================================
---- unboundfastrpz/iterator/iterator.c (revision 4923)
+--- unboundfastrpz/iterator/iterator.c (revision 4987)
+++ unboundfastrpz/iterator/iterator.c (working copy)
@@ -68,6 +68,9 @@
#include "sldns/str2wire.h"
+#include "fastrpz/rpz.h"
+#endif
- int
- iter_init(struct module_env* env, int id)
-@@ -525,6 +528,23 @@
+ /* in msec */
+ int UNKNOWN_SERVER_NICENESS = 376;
+@@ -551,6 +554,23 @@
if(ntohs(r->rk.type) == LDNS_RR_TYPE_CNAME &&
query_dname_compare(*mname, r->rk.dname) == 0 &&
!iter_find_rrset_in_prepend_answer(iq, r)) {
/* Add this relevant CNAME rrset to the prepend list.*/
if(!iter_add_prepend_answer(qstate, iq, r))
return 0;
-@@ -533,6 +553,9 @@
+@@ -559,6 +579,9 @@
/* Other rrsets in the section are ignored. */
}
/* add authority rrsets to authority prepend, for wildcarded CNAMEs */
for(i=msg->rep->an_numrrsets; i<msg->rep->an_numrrsets +
msg->rep->ns_numrrsets; i++) {
-@@ -1216,6 +1239,7 @@
+@@ -1195,6 +1218,7 @@
uint8_t* delname;
size_t delnamelen;
struct dns_msg* msg = NULL;
log_query_info(VERB_DETAIL, "resolving", &qstate->qinfo);
/* check effort */
-@@ -1302,8 +1326,7 @@
+@@ -1281,8 +1305,7 @@
}
if(msg) {
/* handle positive cache response */
if(verbosity >= VERB_ALGO) {
log_dns_msg("msg from cache lookup", &msg->qinfo,
msg->rep);
-@@ -1311,7 +1334,22 @@
+@@ -1290,7 +1313,22 @@
(int)msg->rep->ttl,
(int)msg->rep->prefetch_ttl);
}
if(type == RESPONSE_TYPE_CNAME) {
uint8_t* sname = 0;
size_t slen = 0;
-@@ -2716,6 +2754,62 @@
+@@ -2695,6 +2733,62 @@
sock_list_insert(&qstate->reply_origin,
&qstate->reply->addr, qstate->reply->addrlen,
qstate->region);
if(iq->minimisation_state != DONOT_MINIMISE_STATE
&& !(iq->chase_flags & BIT_RD)) {
if(FLAGS_GET_RCODE(iq->response->rep->flags) !=
-@@ -3462,6 +3556,10 @@
+@@ -3441,6 +3535,10 @@
* but only if we did recursion. The nonrecursion referral
* from cache does not need to be stored in the msg cache. */
if(!qstate->no_cache_store && qstate->query_flags&BIT_RD) {
iter_dns_store(qstate->env, &qstate->qinfo,
iq->response->rep, 0, qstate->prefetch_leeway,
iq->dp&&iq->dp->has_parent_side_NS,
-@@ -3468,6 +3566,34 @@
+@@ -3447,6 +3545,34 @@
qstate->region, qstate->query_flags);
}
}
return 0;
Index: unboundfastrpz/iterator/iterator.h
===================================================================
---- unboundfastrpz/iterator/iterator.h (revision 4923)
+--- unboundfastrpz/iterator/iterator.h (revision 4987)
+++ unboundfastrpz/iterator/iterator.h (working copy)
@@ -386,6 +386,16 @@
*/
* the QNAME minimisation QTYPE is blocked. */
Index: unboundfastrpz/services/cache/dns.c
===================================================================
---- unboundfastrpz/services/cache/dns.c (revision 4923)
+--- unboundfastrpz/services/cache/dns.c (revision 4987)
+++ unboundfastrpz/services/cache/dns.c (working copy)
-@@ -928,6 +928,14 @@
+@@ -939,6 +939,14 @@
struct regional* region, uint32_t flags)
{
struct reply_info* rep = NULL;
if(!rep)
Index: unboundfastrpz/services/mesh.c
===================================================================
---- unboundfastrpz/services/mesh.c (revision 4923)
+--- unboundfastrpz/services/mesh.c (revision 4987)
+++ unboundfastrpz/services/mesh.c (working copy)
@@ -60,6 +60,9 @@
#include "sldns/wire2str.h"
r->edns.opt_list = edns_opt_copy_region(edns->opt_list,
Index: unboundfastrpz/util/config_file.c
===================================================================
---- unboundfastrpz/util/config_file.c (revision 4923)
+--- unboundfastrpz/util/config_file.c (revision 4987)
+++ unboundfastrpz/util/config_file.c (working copy)
-@@ -1386,6 +1386,8 @@
+@@ -1401,6 +1401,8 @@
free(cfg->dnstap_socket_path);
free(cfg->dnstap_identity);
free(cfg->dnstap_version);
#ifdef USE_IPSECMOD
Index: unboundfastrpz/util/config_file.h
===================================================================
---- unboundfastrpz/util/config_file.h (revision 4923)
+--- unboundfastrpz/util/config_file.h (revision 4987)
+++ unboundfastrpz/util/config_file.h (working copy)
-@@ -468,6 +468,11 @@
+@@ -480,6 +480,11 @@
/** true to disable DNSSEC lameness check in iterator */
int disable_dnssec_lame_check;
/** number of slabs for ip_ratelimit cache */
Index: unboundfastrpz/util/configlexer.lex
===================================================================
---- unboundfastrpz/util/configlexer.lex (revision 4923)
+--- unboundfastrpz/util/configlexer.lex (revision 4987)
+++ unboundfastrpz/util/configlexer.lex (working copy)
-@@ -429,6 +429,10 @@
+@@ -434,6 +434,10 @@
YDVAR(1, VAR_DNSTAP_LOG_FORWARDER_QUERY_MESSAGES) }
dnstap-log-forwarder-response-messages{COLON} {
YDVAR(1, VAR_DNSTAP_LOG_FORWARDER_RESPONSE_MESSAGES) }
ratelimit{COLON} { YDVAR(1, VAR_RATELIMIT) }
Index: unboundfastrpz/util/configparser.y
===================================================================
---- unboundfastrpz/util/configparser.y (revision 4923)
+--- unboundfastrpz/util/configparser.y (revision 4987)
+++ unboundfastrpz/util/configparser.y (working copy)
@@ -125,6 +125,7 @@
%token VAR_DNSTAP_LOG_CLIENT_RESPONSE_MESSAGES
%token VAR_RESPONSE_IP_TAG VAR_RESPONSE_IP VAR_RESPONSE_IP_DATA
%token VAR_HARDEN_ALGO_DOWNGRADE VAR_IP_TRANSPARENT
%token VAR_DISABLE_DNSSEC_LAME_CHECK
-@@ -164,7 +165,7 @@
+@@ -168,7 +169,7 @@
%%
toplevelvars: /* empty */ | toplevelvars toplevelvar ;
forwardstart contents_forward | pythonstart contents_py |
rcstart contents_rc | dtstart contents_dt | viewstart contents_view |
dnscstart contents_dnsc | cachedbstart contents_cachedb |
-@@ -2546,6 +2547,50 @@
+@@ -2639,6 +2640,50 @@
(strcmp($2, "yes")==0);
}
;
OUTYY(("\nP(python:)\n"));
Index: unboundfastrpz/util/data/msgencode.c
===================================================================
---- unboundfastrpz/util/data/msgencode.c (revision 4923)
+--- unboundfastrpz/util/data/msgencode.c (revision 4987)
+++ unboundfastrpz/util/data/msgencode.c (working copy)
-@@ -585,6 +585,35 @@
+@@ -590,6 +590,35 @@
return RETVAL_OK;
}
/** store query section in wireformat buffer, return RETVAL */
static int
insert_query(struct query_info* qinfo, struct compress_tree_node** tree,
-@@ -748,6 +777,19 @@
+@@ -753,6 +782,19 @@
return 0;
}
sldns_buffer_write_u16_at(buffer, 10, arcount);
return 1;
Index: unboundfastrpz/util/data/packed_rrset.c
===================================================================
---- unboundfastrpz/util/data/packed_rrset.c (revision 4923)
+--- unboundfastrpz/util/data/packed_rrset.c (revision 4987)
+++ unboundfastrpz/util/data/packed_rrset.c (working copy)
@@ -255,6 +255,10 @@
case sec_status_insecure: return "sec_status_insecure";
}
Index: unboundfastrpz/util/data/packed_rrset.h
===================================================================
---- unboundfastrpz/util/data/packed_rrset.h (revision 4923)
+--- unboundfastrpz/util/data/packed_rrset.h (revision 4987)
+++ unboundfastrpz/util/data/packed_rrset.h (working copy)
@@ -193,7 +193,15 @@
sec_status_secure_sentinel_fail,
/**
Index: unboundfastrpz/util/netevent.c
===================================================================
---- unboundfastrpz/util/netevent.c (revision 4923)
+--- unboundfastrpz/util/netevent.c (revision 4987)
+++ unboundfastrpz/util/netevent.c (working copy)
@@ -56,6 +56,9 @@
#ifdef HAVE_OPENSSL_ERR_H
return;
Index: unboundfastrpz/util/netevent.h
===================================================================
---- unboundfastrpz/util/netevent.h (revision 4923)
+--- unboundfastrpz/util/netevent.h (revision 4987)
+++ unboundfastrpz/util/netevent.h (working copy)
@@ -120,6 +120,10 @@
/** return type 0 (none), 4(IP4), 6(IP6) */
uint8_t nmkey[crypto_box_BEFORENMBYTES];
Index: unboundfastrpz/validator/validator.c
===================================================================
---- unboundfastrpz/validator/validator.c (revision 4923)
+--- unboundfastrpz/validator/validator.c (revision 4987)
+++ unboundfastrpz/validator/validator.c (working copy)
@@ -2755,6 +2755,12 @@
default: