aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/util/data/msgreply.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/util/data/msgreply.h')
-rw-r--r--contrib/unbound/util/data/msgreply.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/contrib/unbound/util/data/msgreply.h b/contrib/unbound/util/data/msgreply.h
index 385780268a3c..c6b220ed8d71 100644
--- a/contrib/unbound/util/data/msgreply.h
+++ b/contrib/unbound/util/data/msgreply.h
@@ -554,11 +554,14 @@ struct edns_option* edns_opt_list_find(struct edns_option* list, uint16_t code);
* @param edns: edns data of the reply.
* @param repinfo: comm_reply. Reply information for a communication point.
* @param region: region to store data.
+ * @param start_time: the start time of recursion, when the packet arrived,
+ * or the current time for cache responses.
* @return false on failure (a callback function returned an error).
*/
int inplace_cb_reply_call(struct module_env* env, struct query_info* qinfo,
struct module_qstate* qstate, struct reply_info* rep, int rcode,
- struct edns_data* edns, struct comm_reply* repinfo, struct regional* region);
+ struct edns_data* edns, struct comm_reply* repinfo, struct regional* region,
+ struct timeval* start_time);
/**
* Call the registered functions in the inplace_cb_reply_cache linked list.
@@ -571,12 +574,15 @@ int inplace_cb_reply_call(struct module_env* env, struct query_info* qinfo,
* @param edns: edns data of the reply. Edns input can be found here.
* @param repinfo: comm_reply. Reply information for a communication point.
* @param region: region to store data.
+ * @param start_time: the start time of recursion, when the packet arrived,
+ * or the current time for cache responses.
* @return false on failure (a callback function returned an error).
*/
int inplace_cb_reply_cache_call(struct module_env* env,
struct query_info* qinfo, struct module_qstate* qstate,
struct reply_info* rep, int rcode, struct edns_data* edns,
- struct comm_reply* repinfo, struct regional* region);
+ struct comm_reply* repinfo, struct regional* region,
+ struct timeval* start_time);
/**
* Call the registered functions in the inplace_cb_reply_local linked list.
@@ -589,12 +595,15 @@ int inplace_cb_reply_cache_call(struct module_env* env,
* @param edns: edns data of the reply. Edns input can be found here.
* @param repinfo: comm_reply. Reply information for a communication point.
* @param region: region to store data.
+ * @param start_time: the start time of recursion, when the packet arrived,
+ * or the current time for cache responses.
* @return false on failure (a callback function returned an error).
*/
int inplace_cb_reply_local_call(struct module_env* env,
struct query_info* qinfo, struct module_qstate* qstate,
struct reply_info* rep, int rcode, struct edns_data* edns,
- struct comm_reply* repinfo, struct regional* region);
+ struct comm_reply* repinfo, struct regional* region,
+ struct timeval* start_time);
/**
* Call the registered functions in the inplace_cb_reply linked list.
@@ -608,12 +617,15 @@ int inplace_cb_reply_local_call(struct module_env* env,
* is NULL.
* @param repinfo: comm_reply. Reply information for a communication point.
* @param region: region to store data.
+ * @param start_time: the start time of recursion, when the packet arrived,
+ * or the current time for cache responses.
* @return false on failure (a callback function returned an error).
*/
int inplace_cb_reply_servfail_call(struct module_env* env,
struct query_info* qinfo, struct module_qstate* qstate,
struct reply_info* rep, int rcode, struct edns_data* edns,
- struct comm_reply* repinfo, struct regional* region);
+ struct comm_reply* repinfo, struct regional* region,
+ struct timeval* start_time);
/**
* Call the registered functions in the inplace_cb_query linked list.