Home
last modified time | relevance | path

Searched refs:edns_strings (Results 1 – 9 of 9) sorted by relevance

/src/contrib/unbound/util/
H A Dedns.c59 struct edns_strings* edns_strings_create(void) in edns_strings_create()
61 struct edns_strings* edns_strings = calloc(1, in edns_strings_create() local
62 sizeof(struct edns_strings)); in edns_strings_create()
63 if(!edns_strings) in edns_strings_create()
65 if(!(edns_strings->region = regional_create())) { in edns_strings_create()
66 edns_strings_delete(edns_strings); in edns_strings_create()
69 return edns_strings; in edns_strings_create()
72 void edns_strings_delete(struct edns_strings* edns_strings) in edns_strings_delete() argument
74 if(!edns_strings) in edns_strings_delete()
76 regional_destroy(edns_strings->region); in edns_strings_delete()
[all …]
H A Dedns.h56 struct edns_strings { struct
117 struct edns_strings* edns_strings_create(void);
122 void edns_strings_delete(struct edns_strings* edns_strings);
130 int edns_strings_apply_cfg(struct edns_strings* edns_strings,
149 size_t edns_strings_get_mem(struct edns_strings* edns_strings);
157 void edns_strings_swap_tree(struct edns_strings* edns_strings,
158 struct edns_strings* data);
H A Dmodule.h546 struct edns_strings* edns_strings; member
/src/contrib/unbound/libunbound/
H A Dlibunbound.c160 ctx->env->edns_strings = edns_strings_create(); in ub_ctx_create_nopipe()
161 if(!ctx->env->edns_strings) { in ub_ctx_create_nopipe()
196 edns_strings_delete(ctx->env->edns_strings); in ub_ctx_create()
212 edns_strings_delete(ctx->env->edns_strings); in ub_ctx_create()
390 edns_strings_delete(ctx->env->edns_strings); in ub_ctx_delete()
H A Dcontext.c98 if(!edns_strings_apply_cfg(ctx->env->edns_strings, cfg)) in context_finalize()
/src/contrib/unbound/daemon/
H A Ddaemon.c313 if(!(daemon->env->edns_strings = edns_strings_create())) { in daemon_init()
783 if(!edns_strings_apply_cfg(daemon->env->edns_strings, daemon->cfg)) in daemon_fork()
945 edns_strings_delete(daemon->env->edns_strings); in daemon_delete()
H A Dremote.c4655 struct edns_strings* edns_strings; member
5034 edns_strings_delete(ct->edns_strings); in fr_construct_clear()
5303 mem += edns_strings_get_mem(ct->edns_strings); in fr_printmem()
5654 if(!(ct->edns_strings = edns_strings_create())) { in fr_construct_from_config()
5658 if(!edns_strings_apply_cfg(ct->edns_strings, newcfg)) { in fr_construct_from_config()
6399 edns_strings_swap_tree(env->edns_strings, ct->edns_strings); in fr_reload_config()
/src/contrib/unbound/testcode/
H A Dfake_event.c1332 &env->edns_strings->client_strings, in outnet_serviced_query()
1335 env->edns_strings->client_string_opcode, in outnet_serviced_query()
/src/contrib/unbound/services/
H A Doutside_network.c3467 &env->edns_strings->client_strings, addr, addrlen))) {
3469 env->edns_strings->client_string_opcode,