The queries outstanding for the libunbound resolver. More...
#include <context.h>
Data Fields | |
struct rbnode_t | 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_t | cb |
for async query, the callback function | |
void * | cb_arg |
for async query, the callback user arg | |
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.
uint8_t* ctx_query::msg |
answer message, result from resolver lookup.
Referenced by add_bg_result(), context_deserialize_answer(), context_query_delete(), libworker_fillup_fg(), process_answer_detail(), ub_cancel(), ub_resolve(), and ub_resolve_async().
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().
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().