|
unbound 0.1
|
The queries outstanding for the libunbound resolver. More...
#include <context.h>
Data Fields | |
| struct rbnode_type | node |
| node in rbtree, must be first entry, key is ptr to the querynum | |
| int | querynum |
| query id number, key for node | |
| int | async |
| was this an async query? | |
| int | cancelled |
| was this query cancelled (for bg worker) | |
| ub_callback_type | cb |
| for async query, the callback function of type ub_callback_type | |
| ub_event_callback_type | cb_event |
| for event callbacks the type is ub_event_callback_type | |
| void * | cb_arg |
| for async query, the callback user arg | |
| void * | unique_info |
| for async query the unique info | |
| uint8_t * | msg |
| answer message, result from resolver lookup. | |
| size_t | msg_len |
| resulting message length. | |
| enum sec_status | msg_security |
| validation status on security | |
| struct libworker * | w |
| store libworker that is handling this query | |
| struct ub_result * | res |
| result structure, also contains original query, type, class. | |
The queries outstanding for the libunbound resolver.
These are outstanding for async resolution. But also, outstanding for sync resolution by one of the threads that has joined the threadpool.
| struct rbnode_type ctx_query::node |
node in rbtree, must be first entry, key is ptr to the querynum
Referenced by add_bg_result(), context_deserialize_new_query(), context_new(), libworker_bg_done_cb(), libworker_event_done_cb(), process_answer_detail(), ub_cancel(), ub_resolve(), and ub_resolve_async().
| int ctx_query::querynum |
query id number, key for node
Referenced by context_deserialize_new_query(), context_lookup_new_query(), context_new(), context_serialize_answer(), context_serialize_cancel(), context_serialize_new_query(), libworker_attach_mesh(), and ub_resolve_async().
| int ctx_query::async |
was this an async query?
Referenced by context_deserialize_new_query(), context_lookup_new_query(), context_new(), process_answer_detail(), and ub_cancel().
| int ctx_query::cancelled |
was this query cancelled (for bg worker)
Referenced by handle_cancel(), libworker_bg_done_cb(), libworker_event_done_cb(), process_answer_detail(), and ub_cancel().
| ub_callback_type ctx_query::cb |
for async query, the callback function of type ub_callback_type
Referenced by context_new(), libworker_event_done_cb(), and process_answer_detail().
| ub_event_callback_type ctx_query::cb_event |
for event callbacks the type is ub_event_callback_type
Referenced by context_new(), and libworker_event_done_cb().
| void* ctx_query::cb_arg |
for async query, the callback user arg
Referenced by context_new(), libworker_event_done_cb(), and process_answer_detail().
| void* ctx_query::unique_info |
for async query the unique info
Referenced by handle_newq(), libworker_attach_mesh(), and libworker_fg().
| uint8_t* ctx_query::msg |
answer message, result from resolver lookup.
Referenced by add_bg_result(), context_deserialize_answer(), context_query_delete(), libworker_do_cmd(), libworker_fillup_fg(), process_answer_detail(), ub_cancel(), ub_resolve(), ub_resolve_async(), and ub_stop_bg().
| size_t ctx_query::msg_len |
resulting message length.
Referenced by add_bg_result(), context_deserialize_answer(), libworker_fillup_fg(), process_answer_detail(), and ub_resolve().
| enum sec_status ctx_query::msg_security |
validation status on security
Referenced by context_deserialize_answer(), context_serialize_answer(), handle_newq(), libworker_bg_done_cb(), libworker_fillup_fg(), and process_answer_detail().
| struct libworker* ctx_query::w |
store libworker that is handling this query
Referenced by handle_cancel(), handle_newq(), libworker_attach_mesh(), libworker_bg_done_cb(), libworker_do_cmd(), libworker_event_done_cb(), libworker_fg(), libworker_fg_done_cb(), libworker_fillup_fg(), and setup_qinfo_edns().
| struct ub_result* ctx_query::res |
result structure, also contains original query, type, class.
malloced ptr ready to hand to the client.
Referenced by add_bg_result(), context_deserialize_answer(), context_deserialize_new_query(), context_new(), context_query_delete(), context_serialize_answer(), context_serialize_new_query(), libworker_fillup_fg(), process_answer_detail(), setup_qinfo_edns(), and ub_resolve().