| /src/contrib/unbound/services/cache/ |
| H A D | infra.h | 125 struct infra_cache { struct 230 struct infra_cache* infra_create(struct config_file* cfg); 236 void infra_delete(struct infra_cache* infra); 246 struct infra_cache* infra_adjust(struct infra_cache* infra, 259 struct lruhash_entry* infra_lookup_nottl(struct infra_cache* infra, 281 int infra_host(struct infra_cache* infra, struct sockaddr_storage* addr, 300 int infra_set_lame(struct infra_cache* infra, 320 int infra_rtt_update(struct infra_cache* infra, struct sockaddr_storage* addr, 332 void infra_update_tcp_works(struct infra_cache* infra, 348 int infra_edns_update(struct infra_cache* infra, [all …]
|
| H A D | infra.c | 345 struct infra_cache* 348 struct infra_cache* infra = (struct infra_cache*)calloc(1, in infra_create() 349 sizeof(struct infra_cache)); in infra_create() 428 infra_delete(struct infra_cache* infra) in infra_delete() 441 struct infra_cache* 442 infra_adjust(struct infra_cache* infra, struct config_file* cfg) in infra_adjust() 512 infra_lookup_nottl(struct infra_cache* infra, struct sockaddr_storage* addr, in infra_lookup_nottl() 528 data_entry_init(struct infra_cache* infra, struct lruhash_entry* e, in data_entry_init() 557 new_entry(struct infra_cache* infra, struct sockaddr_storage* addr, in new_entry() 587 infra_host(struct infra_cache* infra, struct sockaddr_storage* addr, in infra_host() [all …]
|
| /src/contrib/unbound/testcode/ |
| H A D | unitinfra.c | 49 static struct infra_data* infra_lookup_host(struct infra_cache* infra, in infra_lookup_host() 66 static void test_keep_probing(struct infra_cache* slab, in test_keep_probing() 121 struct infra_cache* slab; in infra_test()
|
| H A D | fake_event.c | 1127 struct infra_cache* infra, in outside_network_create()
|
| /src/contrib/unbound/services/ |
| H A D | outside_network.h | 58 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 D | mesh.c | 441 if(!infra_wait_limit_allowed(mesh->env->infra_cache, rep, in mesh_new_client() 556 infra_wait_limit_inc(mesh->env->infra_cache, rep, *mesh->env->now, in mesh_new_client() 1069 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_cleanup() 1556 infra_wait_limit_dec(m->s.env->infra_cache, &r->query_reply, in mesh_send_reply() 1743 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done() 1777 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_query_done() 2342 infra_wait_limit_dec(mesh->env->infra_cache, in mesh_state_remove_reply() 2506 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback() 2547 infra_wait_limit_dec(mstate->s.env->infra_cache, in mesh_serve_expired_callback()
|
| H A D | outside_network.c | 1675 int do_ip6, size_t num_tcp, int dscp, struct infra_cache* infra, 3482 if(!infra_ratelimit_inc(env->infra_cache, zone, 3512 infra_ratelimit_dec(env->infra_cache, 3520 infra_ratelimit_dec(env->infra_cache,
|
| /src/contrib/unbound/libunbound/ |
| H A D | context.c | 114 ctx->env->infra_cache = infra_adjust(ctx->env->infra_cache, cfg); in context_finalize() 115 if(!ctx->env->infra_cache) in context_finalize()
|
| H A D | libworker.c | 226 w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id, in libworker_setup()
|
| H A D | libunbound.c | 387 infra_delete(ctx->env->infra_cache); in ub_ctx_delete()
|
| /src/contrib/unbound/util/ |
| H A D | module.h | 346 struct infra_cache* infra_cache; member
|
| /src/contrib/unbound/daemon/ |
| H A D | daemon.c | 943 infra_delete(daemon->env->infra_cache); in daemon_delete() 1069 if((daemon->env->infra_cache = infra_adjust(daemon->env->infra_cache, in daemon_apply_cfg()
|
| H A D | cachedump.c | 870 entry_ttl = infra_get_host_rto(worker->env.infra_cache, in print_dp_details() 888 if(!infra_get_lame_rtt(worker->env.infra_cache, in print_dp_details() 907 if(infra_host(worker->env.infra_cache, &a->addr, a->addrlen, in print_dp_details()
|
| H A D | worker.c | 136 infra = infra_get_mem(worker->env.infra_cache); in worker_mem_report() 222 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report() 228 (unsigned)infra_get_mem(worker->env.infra_cache), in worker_mem_report() 1428 if(!infra_ip_ratelimit_inc(worker->env.infra_cache, addr, addrlen, in check_ip_ratelimit() 2272 worker->daemon->env->infra_cache, worker->rndstate, in worker_init()
|
| H A D | remote.c | 2231 slabhash_clear(worker->env.infra_cache->hosts); in do_flush_infra() 2253 slabhash_traverse(worker->env.infra_cache->hosts, 1, &infra_del_host, in do_flush_infra() 3091 struct infra_cache* infra; 3151 arg.infra = worker->env.infra_cache; in do_dump_infra() 3523 struct infra_cache* infra; 3578 a.infra = worker->env.infra_cache; in do_ratelimit_list() 3597 a.infra = worker->env.infra_cache; in do_ip_ratelimit_list() 6200 slabhash_adjust_size(env->infra_cache->hosts, inframem); in fr_adjust_cache() 6203 slabhash_adjust_size(env->infra_cache->domain_rates, in fr_adjust_cache() 6205 slabhash_adjust_size(env->infra_cache->client_ip_rates, in fr_adjust_cache() [all …]
|
| H A D | stats.c | 307 s->svr.infra_cache_count = (long long)count_slabhash_entries(worker->env.infra_cache->hosts); in server_stats_compile()
|
| /src/contrib/unbound/pythonmod/ |
| H A D | interface.i | 723 struct infra_cache* infra_cache;
|
| /src/contrib/unbound/iterator/ |
| H A D | iter_utils.c | 321 if(infra_get_lame_rtt(env->infra_cache, &a->addr, a->addrlen, in iter_filter_unsuitable()
|
| H A D | iterator.c | 3627 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse() 3646 if(!infra_set_lame(qstate->env->infra_cache, in processQueryResponse()
|