Data Fields
module_qstate Struct Reference

Module state, per query. More...

#include <module.h>

Data Fields

struct query_info qinfo
 which query is being answered: name, type, class
uint16_t query_flags
 flags uint16 from query
int is_priming
 if this is a (stub or root) priming query (with hints)
int is_valrec
 if this is a validation recursion query that does not get validation itself
struct comm_replyreply
 comm_reply contains server replies
struct dns_msgreturn_msg
 the reply message, with message for client and calling module
int return_rcode
 the rcode, in case of error, instead of a reply message
struct sock_listreply_origin
 origin of the reply (can be NULL from cache, list for cnames)
struct sock_listblacklist
 IP blacklist for queries.
struct regionalregion
 region for this query. More...
struct config_strlisterrinf
 failure reason information if val-log-level is high
int curmod
 which module is executing
enum module_ext_state ext_state [MAX_MODULE]
 module states
void * minfo [MAX_MODULE]
 module specific data for query. More...
struct module_envenv
 environment for this query
struct mesh_statemesh_info
 mesh related information for this query
time_t prefetch_leeway
 how many seconds before expiry is this prefetched (0 if not)
struct edns_optionedns_opts_front_in
 incoming edns options from the front end
struct edns_optionedns_opts_back_out
 outgoing edns options to the back end
struct edns_optionedns_opts_back_in
 incoming edns options from the back end
struct edns_optionedns_opts_front_out
 outgoing edns options to the front end
int no_cache_lookup
 whether modules should answer from the cache
int no_cache_store
 whether modules should store answer in the cache
int need_refetch
 whether to refetch a fresh answer on finishing this state
struct respip_client_infoclient_info
 Attributes of clients that share the qstate that may affect IP-based actions.
struct respip_action_inforespip_action_info
 Extended result of response-ip action processing, mainly for logging purposes. More...
int is_drop
 whether the reply should be dropped

Detailed Description

Module state, per query.

Field Documentation

◆ region

struct regional* module_qstate::region

◆ minfo

void* module_qstate::minfo[MAX_MODULE]

◆ respip_action_info

struct respip_action_info* module_qstate::respip_action_info

Extended result of response-ip action processing, mainly for logging purposes.

Referenced by mesh_query_done(), and respip_operate().

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