Electroneum
module_qstate Struct Reference

#include <module.h>

Collaboration diagram for module_qstate:

Public Attributes

struct query_info qinfo
 
uint16_t query_flags
 
int is_priming
 
int is_valrec
 
struct comm_replyreply
 
struct dns_msgreturn_msg
 
int return_rcode
 
struct sock_listreply_origin
 
struct sock_listblacklist
 
struct regionalregion
 
struct config_strlisterrinf
 
int curmod
 
enum module_ext_state ext_state [MAX_MODULE]
 
void * minfo [MAX_MODULE]
 
struct module_envenv
 
struct mesh_statemesh_info
 
time_t prefetch_leeway
 
struct edns_optionedns_opts_front_in
 
struct edns_optionedns_opts_back_out
 
struct edns_optionedns_opts_back_in
 
struct edns_optionedns_opts_front_out
 
int no_cache_lookup
 
int no_cache_store
 
int need_refetch
 
struct respip_client_infoclient_info
 
struct respip_action_inforespip_action_info
 
int is_drop
 

Detailed Description

Module state, per query.

Definition at line 571 of file module.h.

Member Data Documentation

◆ blacklist

struct sock_list* module_qstate::blacklist

IP blacklist for queries

Definition at line 591 of file module.h.

◆ client_info

struct respip_client_info* module_qstate::client_info

Attributes of clients that share the qstate that may affect IP-based actions.

Definition at line 629 of file module.h.

◆ curmod

int module_qstate::curmod

which module is executing

Definition at line 598 of file module.h.

◆ edns_opts_back_in

struct edns_option* module_qstate::edns_opts_back_in

incoming edns options from the back end

Definition at line 615 of file module.h.

◆ edns_opts_back_out

struct edns_option* module_qstate::edns_opts_back_out

outgoing edns options to the back end

Definition at line 613 of file module.h.

◆ edns_opts_front_in

struct edns_option* module_qstate::edns_opts_front_in

incoming edns options from the front end

Definition at line 611 of file module.h.

◆ edns_opts_front_out

struct edns_option* module_qstate::edns_opts_front_out

outgoing edns options to the front end

Definition at line 617 of file module.h.

◆ env

struct module_env* module_qstate::env

environment for this query

Definition at line 604 of file module.h.

◆ errinf

struct config_strlist* module_qstate::errinf

failure reason information if val-log-level is high

Definition at line 595 of file module.h.

◆ ext_state

enum module_ext_state module_qstate::ext_state[MAX_MODULE]

module states

Definition at line 600 of file module.h.

◆ is_drop

int module_qstate::is_drop

whether the reply should be dropped

Definition at line 636 of file module.h.

◆ is_priming

int module_qstate::is_priming

if this is a (stub or root) priming query (with hints)

Definition at line 577 of file module.h.

◆ is_valrec

int module_qstate::is_valrec

if this is a validation recursion query that does not get validation itself

Definition at line 580 of file module.h.

◆ mesh_info

struct mesh_state* module_qstate::mesh_info

mesh related information for this query

Definition at line 606 of file module.h.

◆ minfo

void* module_qstate::minfo[MAX_MODULE]

module specific data for query. indexed by module id.

Definition at line 602 of file module.h.

◆ need_refetch

int module_qstate::need_refetch

whether to refetch a fresh answer on finishing this state

Definition at line 623 of file module.h.

◆ no_cache_lookup

int module_qstate::no_cache_lookup

whether modules should answer from the cache

Definition at line 619 of file module.h.

◆ no_cache_store

int module_qstate::no_cache_store

whether modules should store answer in the cache

Definition at line 621 of file module.h.

◆ prefetch_leeway

time_t module_qstate::prefetch_leeway

how many seconds before expiry is this prefetched (0 if not)

Definition at line 608 of file module.h.

◆ qinfo

struct query_info module_qstate::qinfo

which query is being answered: name, type, class

Definition at line 573 of file module.h.

◆ query_flags

uint16_t module_qstate::query_flags

flags uint16 from query

Definition at line 575 of file module.h.

◆ region

struct regional* module_qstate::region

region for this query. Cleared when query process finishes.

Definition at line 593 of file module.h.

◆ reply

struct comm_reply* module_qstate::reply

comm_reply contains server replies

Definition at line 583 of file module.h.

◆ reply_origin

struct sock_list* module_qstate::reply_origin

origin of the reply (can be NULL from cache, list for cnames)

Definition at line 589 of file module.h.

◆ respip_action_info

struct respip_action_info* module_qstate::respip_action_info

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

Definition at line 633 of file module.h.

◆ return_msg

struct dns_msg* module_qstate::return_msg

the reply message, with message for client and calling module

Definition at line 585 of file module.h.

◆ return_rcode

int module_qstate::return_rcode

the rcode, in case of error, instead of a reply message

Definition at line 587 of file module.h.


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