Data Fields
ctx_query Struct Reference

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
 
void * cb_arg
 for async query, the callback user arg
 
uint8_t * msg
 answer message, result from resolver lookup. More...
 
size_t msg_len
 resulting message length. More...
 
enum sec_status msg_security
 validation status on security
 
struct libworkerw
 store libworker that is handling this query
 
struct ub_resultres
 result structure, also contains original query, type, class. More...
 

Detailed Description

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.

Field Documentation

◆ msg

uint8_t* ctx_query::msg

answer message, result from resolver lookup.

Referenced by add_bg_result(), context_query_delete(), ub_cancel(), ub_resolve(), ub_resolve_async(), and ub_stop_bg().

◆ msg_len

size_t ctx_query::msg_len

resulting message length.

Referenced by add_bg_result(), process_answer_detail(), and ub_resolve().

◆ res

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_new(), context_query_delete(), context_serialize_answer(), context_serialize_new_query(), libworker_fillup_fg(), process_answer_detail(), setup_qinfo_edns(), and ub_resolve().


The documentation for this struct was generated from the following file: