summaryrefslogtreecommitdiff
path: root/pythonmod
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-08-05 20:02:55 +0000
committerCy Schubert <cy@FreeBSD.org>2022-08-05 20:02:55 +0000
commit9b76d32f2310b735dbeb896cbf2776cad61f23e8 (patch)
treecac9730d14d9c15b0c773429e65bba9e97506c93 /pythonmod
parentd57351465531b38689892ec862de2725b52842dd (diff)
Diffstat (limited to 'pythonmod')
-rw-r--r--pythonmod/interface.i5
-rw-r--r--pythonmod/pythonmod_utils.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/pythonmod/interface.i b/pythonmod/interface.i
index 2fac5f884006..0d95613f8c97 100644
--- a/pythonmod/interface.i
+++ b/pythonmod/interface.i
@@ -1375,7 +1375,8 @@ int set_return_msg(struct module_qstate* qstate,
/* Functions which we will need to lookup delegations */
struct delegpt* dns_cache_find_delegation(struct module_env* env,
uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass,
- struct regional* region, struct dns_msg** msg, uint32_t timenow);
+ struct regional* region, struct dns_msg** msg, uint32_t timenow,
+ int noexpiredabove, uint8_t* expiretop, size_t expiretoplen);
int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags,
struct delegpt* dp, int supports_ipv4, int supports_ipv6);
struct iter_hints_stub* hints_lookup_stub(struct iter_hints* hints,
@@ -1404,7 +1405,7 @@ struct delegpt* find_delegation(struct module_qstate* qstate, char *nm, size_t n
qinfo.qclass = LDNS_RR_CLASS_IN;
while(1) {
- dp = dns_cache_find_delegation(qstate->env, (uint8_t*)nm, nmlen, qinfo.qtype, qinfo.qclass, region, &msg, timenow);
+ dp = dns_cache_find_delegation(qstate->env, (uint8_t*)nm, nmlen, qinfo.qtype, qinfo.qclass, region, &msg, timenow, 0, NULL, 0);
if(!dp)
return NULL;
if(iter_dp_is_useless(&qinfo, BIT_RD, dp,
diff --git a/pythonmod/pythonmod_utils.c b/pythonmod/pythonmod_utils.c
index 34a20ba76485..1f6f2512918f 100644
--- a/pythonmod/pythonmod_utils.c
+++ b/pythonmod/pythonmod_utils.c
@@ -72,7 +72,8 @@ int storeQueryInCache(struct module_qstate* qstate, struct query_info* qinfo,
}
return dns_cache_store(qstate->env, qinfo, msgrep, is_referral,
- qstate->prefetch_leeway, 0, NULL, qstate->query_flags);
+ qstate->prefetch_leeway, 0, NULL, qstate->query_flags,
+ qstate->qstarttime);
}
/* Invalidate the message associated with query_info stored in message cache */