Home
last modified time | relevance | path

Searched refs:sn_env (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/unbound/edns-subnet/
H A Dsubnetmod.c154 struct subnet_env *sn_env; in ecs_whitelist_check() local
158 sn_env = (struct subnet_env*)qstate->env->modinfo[id]; in ecs_whitelist_check()
165 if(!ecs_is_whitelisted(sn_env->whitelist, in ecs_whitelist_check()
192 ecs_is_whitelisted(sn_env->whitelist, in ecs_whitelist_check()
244 struct subnet_env *sn_env = (struct subnet_env*)calloc(1, in subnetmod_init() local
246 if(!sn_env) { in subnetmod_init()
250 alloc_init(&sn_env->alloc, NULL, 0); in subnetmod_init()
251 env->modinfo[id] = (void*)sn_env; in subnetmod_init()
264 sn_env->subnet_msg_cache = slabhash_create(env->cfg->msg_cache_slabs, in subnetmod_init()
268 if(!sn_env->subnet_msg_cache) { in subnetmod_init()
[all …]
/freebsd/contrib/unbound/daemon/
H A Dremote.c2121 struct subnet_env* sn_env = NULL; in do_cache_lookup_domain() local
2131 if(m != -1) sn_env = (struct subnet_env*)worker->env.modinfo[m]; in do_cache_lookup_domain()
2132 if(sn_env) { in do_cache_lookup_domain()
2133 lock_rw_rdlock(&sn_env->biglock); in do_cache_lookup_domain()
2134 slabhash_traverse(sn_env->subnet_msg_cache, 0, in do_cache_lookup_domain()
2136 lock_rw_unlock(&sn_env->biglock); in do_cache_lookup_domain()