Home
last modified time | relevance | path

Searched refs:infra_cache (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/external/bsd/unbound/dist/services/cache/
H A Dinfra.h112 struct infra_cache { struct
201 struct infra_cache* infra_create(struct config_file* cfg);
207 void infra_delete(struct infra_cache* infra);
217 struct infra_cache* infra_adjust(struct infra_cache* infra,
230 struct lruhash_entry* infra_lookup_nottl(struct infra_cache* infra,
252 int infra_host(struct infra_cache* infra, struct sockaddr_storage* addr,
271 int infra_set_lame(struct infra_cache* infra,
291 int infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr,
303 void infra_update_tcp_works(struct infra_cache* infra,
319 int infra_edns_update(struct infra_cache* infra,
[all …]
H A Dinfra.c158 struct infra_cache* infra, char* name) in domain_limit_findcreate()
205 static int infra_ratelimit_cfg_insert(struct infra_cache* infra, in infra_ratelimit_cfg_insert()
227 setup_domain_limits(struct infra_cache* infra, struct config_file* cfg) in setup_domain_limits()
237 struct infra_cache*
240 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create()
241 sizeof(struct infra_cache)); in infra_create()
291 infra_delete(struct infra_cache* infra) in infra_delete()
302 struct infra_cache*
303 infra_adjust(struct infra_cache* infra, struct config_file* cfg) in infra_adjust()
372 infra_lookup_nottl(struct infra_cache* infra, struct sockaddr_storage* addr, in infra_lookup_nottl()
[all …]
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dreplay.h149 struct infra_cache;
299 struct infra_cache* infra;
H A Dunitmain.c439 static struct infra_data* infra_lookup_host(struct infra_cache* infra, in infra_lookup_host()
464 struct infra_cache* slab; in infra_test()
H A Dfake_event.c1034 struct infra_cache* infra, in outside_network_create()
/netbsd-src/external/bsd/unbound/dist/services/
H A Doutside_network.h58 struct infra_cache;
139 struct infra_cache* infra;
567 int do_ip4, int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
H A Doutside_network.c1660 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra,
3448 if(!infra_ratelimit_inc(env->infra_cache, zone,
3475 infra_ratelimit_dec(env->infra_cache,
3483 infra_ratelimit_dec(env->infra_cache,
/netbsd-src/external/bsd/unbound/dist/libunbound/
H A Dcontext.c104 ctx->env->infra_cache = infra_adjust(ctx->env->infra_cache, cfg); in context_finalize()
105 if(!ctx->env->infra_cache) in context_finalize()
H A Dlibworker.c241 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
H A Dlibunbound.c378 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
/netbsd-src/external/bsd/unbound/dist/util/
H A Dmodule.h342 struct infra_cache* infra_cache; member
/netbsd-src/external/bsd/unbound/dist/daemon/
H A Ddaemon.c882 infra_delete(daemon->env->infra_cache); in daemon_delete()
1002 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
H A Dcachedump.c747 entry_ttl = infra_get_host_rto(worker->env.infra_cache, in print_dp_details()
765 if(!infra_get_lame_rtt(worker->env.infra_cache, in print_dp_details()
784 if(infra_host(worker->env.infra_cache, &a->addr, a->addrlen, in print_dp_details()
H A Dremote.c1664 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra()
1685 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra()
2445 struct infra_cache* infra;
2505 arg.infra = worker->env.infra_cache; in do_dump_infra()
2843 struct infra_cache* infra;
2898 a.infra = worker->env.infra_cache; in do_ratelimit_list()
2917 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list()
H A Dworker.c136 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report()
220 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
226 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report()
1344 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, addr, addrlen, in check_ip_ratelimit()
2185 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
H A Dstats.c300 s->svr.infra_cache_count = (long long)count_slabhash_entries(worker->env.infra_cache->hosts); in server_stats_compile()
/netbsd-src/external/bsd/unbound/dist/pythonmod/
H A Dinterface.i723 struct infra_cache* infra_cache;
/netbsd-src/external/bsd/unbound/dist/iterator/
H A Diter_utils.c278 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()
H A Diterator.c3414 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
3433 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()