summaryrefslogtreecommitdiff
path: root/util/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/module.h')
-rw-r--r--util/module.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/module.h b/util/module.h
index 5bdb622a2515..abad3c8dd114 100644
--- a/util/module.h
+++ b/util/module.h
@@ -319,13 +319,15 @@ typedef int inplace_cb_query_response_func_type(struct module_qstate* qstate,
/**
* Function called when looking for (expired) cached answers during the serve
* expired logic.
- * Called as func(qstate, lookup_qinfo)
+ * Called as func(qstate, lookup_qinfo, &is_expired)
* Where:
* qstate: the query state.
* lookup_qinfo: the qinfo to lookup for.
+ * is_expired: set if the cached answer is expired.
*/
typedef struct dns_msg* serve_expired_lookup_func_type(
- struct module_qstate* qstate, struct query_info* lookup_qinfo);
+ struct module_qstate* qstate, struct query_info* lookup_qinfo,
+ int* is_expired);
/**
* Module environment.
@@ -696,6 +698,8 @@ struct module_qstate {
/** Extended result of response-ip action processing, mainly
* for logging purposes. */
struct respip_action_info* respip_action_info;
+ /** if the query has been modified by rpz processing. */
+ int rpz_applied;
/** if the query is rpz passthru, no further rpz processing for it */
int rpz_passthru;
/* Flag tcp required. */