154 #ifndef UTIL_MODULE_H
155 #define UTIL_MODULE_H
182 struct respip_addr_info;
185 #define MAX_MODULE 16
188 #define MAX_KNOWN_EDNS_OPTS 256
256 struct regional* region,
int id,
void* callback);
278 int id,
void* callback);
289 int id,
void* cb_args);
350 uint16_t flags,
int dnssec,
int want_dnssec,
int nocaps,
void inplace_cb_lists_delete(struct module_env *env)
int inplace_cb_edns_back_parsed_func_type(struct module_qstate *qstate, int id, void *cb_args)
int inplace_cb_query_func_type(struct query_info *qinfo, uint16_t flags, struct module_qstate *qstate, struct sockaddr_storage *addr, socklen_t addrlen, uint8_t *zone, size_t zonelen, struct regional *region, int id, void *callback)
void edns_known_options_delete(struct module_env *env)
void inplace_cb_delete(struct module_env *env, enum inplace_cb_list_type type, int id)
void log_edns_known_options(enum verbosity_value level, struct module_env *env)
int edns_bypass_cache_stage(struct edns_option *list, struct module_env *env)
int inplace_cb_reply_func_type(struct query_info *qinfo, struct module_qstate *qstate, struct reply_info *rep, int rcode, struct edns_data *edns, struct edns_option **opt_list_out, struct regional *region, int id, void *callback)
int unique_mesh_state(struct edns_option *list, struct module_env *env)
@ inplace_cb_edns_back_parsed
@ inplace_cb_reply_servfail
@ inplace_cb_query_response
int edns_register_option(uint16_t opt_code, int bypass_cache_stage, int no_aggregation, struct module_env *env)
const char * strmodulevent(enum module_ev e)
const char * strextstate(enum module_ext_state s)
int inplace_cb_register(void *cb, enum inplace_cb_list_type type, void *cbarg, struct module_env *env, int id)
int edns_known_options_init(struct module_env *env)
struct edns_known_option * edns_option_is_known(uint16_t opt_code, struct module_env *env)
int inplace_cb_query_response_func_type(struct module_qstate *qstate, struct dns_msg *response, int id, void *cb_args)
epee::misc_utils::struct_init< response_t > response
struct val_neg_cache * neg_cache
struct iter_hints * hints
size_t edns_known_options_num
int(* attach_sub)(struct module_qstate *qstate, struct query_info *qinfo, uint16_t qflags, int prime, int valrec, struct module_qstate **newq)
struct regional * scratch
struct infra_cache * infra_cache
struct val_anchors * anchors
struct sldns_buffer * scratch_buffer
struct inplace_cb * inplace_cb_lists[inplace_cb_types_total]
void(* detach_subs)(struct module_qstate *qstate)
void(* kill_sub)(struct module_qstate *newq)
struct outside_network * outnet
struct alloc_cache * alloc
struct slabhash * msg_cache
struct edns_known_option * edns_known_options
int(* detect_cycle)(struct module_qstate *qstate, struct query_info *qinfo, uint16_t flags, int prime, int valrec)
struct key_cache * key_cache
struct iter_forwards * fwds
struct comm_timer * probe_timer
struct ub_randstate * rnd
struct rrset_cache * rrset_cache
int(* add_sub)(struct module_qstate *qstate, struct query_info *qinfo, uint16_t qflags, int prime, int valrec, struct module_qstate **newq, struct mesh_state **sub)
struct auth_zones * auth_zones
struct comm_base * worker_base
void * modinfo[MAX_MODULE]
size_t(* get_mem)(struct module_env *env, int id)
void(* deinit)(struct module_env *env, int id)
void(* clear)(struct module_qstate *qstate, int id)
int(* init)(struct module_env *env, int id)
void(* operate)(struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
void(* inform_super)(struct module_qstate *qstate, int id, struct module_qstate *super)
struct sock_list * blacklist
struct respip_action_info * respip_action_info
struct edns_option * edns_opts_back_in
struct config_strlist * errinf
struct mesh_state * mesh_info
struct sock_list * reply_origin
struct edns_option * edns_opts_back_out
enum module_ext_state ext_state[MAX_MODULE]
struct respip_client_info * client_info
struct comm_reply * reply
struct edns_option * edns_opts_front_out
struct edns_option * edns_opts_front_in
struct dns_msg * return_msg
struct sockaddr_storage addr