diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2024-10-18 13:52:55 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2024-10-18 13:52:55 +0000 |
| commit | 0a6d797cf6eb751d7eb613900cd19803e05d905f (patch) | |
| tree | c52b0ffbf8879fbe81816528e0fc7c3dd0f64e1f /util/module.h | |
| parent | 9b8db746ac608ff7cdad3c9ac7ac395319e4ea0f (diff) | |
Diffstat (limited to 'util/module.h')
| -rw-r--r-- | util/module.h | 8 |
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. */ |
