Home
last modified time | relevance | path

Searched refs:rrset_cache (Results 1 – 25 of 32) sorted by relevance

12

/netbsd-src/external/bsd/unbound/dist/services/cache/
H A Drrset.h56 struct rrset_cache { struct
67 struct rrset_cache* rrset_cache_create(struct config_file* cfg, argument
74 void rrset_cache_delete(struct rrset_cache* r);
85 struct rrset_cache* rrset_cache_adjust(struct rrset_cache* r,
104 void rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key,
133 int rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref,
150 void rrset_cache_update_wildcard(struct rrset_cache* rrset_cache,
168 struct ub_packed_rrset_key* rrset_cache_lookup(struct rrset_cache* r,
206 void rrset_array_unlock_touch(struct rrset_cache* r, struct regional* scratch,
219 void rrset_update_sec_status(struct rrset_cache* r,
[all …]
H A Drrset.c60 struct rrset_cache* rrset_cache_create(struct config_file* cfg, in rrset_cache_create()
67 struct rrset_cache *r = (struct rrset_cache*)slabhash_create(slabs, in rrset_cache_create()
74 void rrset_cache_delete(struct rrset_cache* r) in rrset_cache_delete()
82 struct rrset_cache* rrset_cache_adjust(struct rrset_cache *r, in rrset_cache_adjust()
95 rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key, in rrset_cache_touch()
186 rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref, in rrset_cache_update()
242 void rrset_cache_update_wildcard(struct rrset_cache* rrset_cache, in rrset_cache_update_wildcard() argument
272 (void)rrset_cache_update(rrset_cache, &ref, alloc, timenow); in rrset_cache_update_wildcard()
276 rrset_cache_lookup(struct rrset_cache* r, uint8_t* qname, size_t qnamelen, in rrset_cache_lookup()
338 rrset_array_unlock_touch(struct rrset_cache* r, struct regional* scratch, in rrset_array_unlock_touch()
[all …]
H A Ddns.c88 switch(rrset_cache_update(env->rrset_cache, &rep->ref[i], in store_rrsets()
204 if((rrset = rrset_cache_lookup(env->rrset_cache, *qname, in rrset_expired_above()
244 if((rrset = rrset_cache_lookup(env->rrset_cache, qname, in find_closest_of_type()
271 rrset_cache, origqname, origqnamelen, in find_closest_of_type()
335 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in find_add_addrs()
355 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in find_add_addrs()
392 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in cache_fill_missing()
413 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in cache_fill_missing()
445 env->rrset_cache, dp->name, dp->namelen, LDNS_RR_TYPE_DS, in find_add_ds()
450 rrset = rrset_cache_lookup(env->rrset_cache, dp->name, in find_add_ds()
[all …]
/netbsd-src/external/bsd/unbound/dist/validator/
H A Dval_neg.c1059 grab_nsec(struct rrset_cache* rrset_cache, uint8_t* qname, size_t qname_len, in grab_nsec() argument
1064 struct ub_packed_rrset_key* r, *k = rrset_cache_lookup(rrset_cache, in grab_nsec()
1109 uint16_t qclass, struct rrset_cache* rrset_cache, time_t now, in neg_find_nsec() argument
1156 nsec = grab_nsec(rrset_cache, data->name, data->len, LDNS_RR_TYPE_NSEC, in neg_find_nsec()
1215 struct rrset_cache* rrset_cache, struct regional* region, in neg_nsec3_getnc() argument
1236 nc_rrset = grab_nsec(rrset_cache, data->name, data->len, in neg_nsec3_getnc()
1248 int qlabs, sldns_buffer* buf, struct rrset_cache* rrset_cache, in neg_nsec3_proof_ds() argument
1276 ce_rrset = grab_nsec(rrset_cache, data->name, data->len, in neg_nsec3_proof_ds()
1307 nc_rrset = neg_nsec3_getnc(zone, hashnc, nclen, rrset_cache, in neg_nsec3_proof_ds()
1347 static int add_soa(struct rrset_cache* rrset_cache, time_t now, in add_soa() argument
[all …]
H A Dval_neg.h53 struct rrset_cache;
246 struct rrset_cache* rrset_cache, struct sldns_buffer* buf, time_t now,
H A Dval_utils.h56 struct rrset_cache;
329 struct val_anchors* anchors, struct rrset_cache* r,
341 struct rrset_cache* r, struct module_env* env);
H A Dval_utils.c358 rrset_check_sec_status(env->rrset_cache, rrset, *env->now); in val_verify_rrset()
393 rrset_update_sec_status(env->rrset_cache, rrset, *env->now); in val_verify_rrset()
1065 struct rrset_cache* r, struct module_env* env) in val_mark_indeterminate()
1085 struct rrset_cache* r, struct module_env* env) in val_mark_insecure()
1194 env->rrset_cache, nm, nmlen, LDNS_RR_TYPE_DS, c, 0, in val_find_DS()
1218 msg = val_neg_getmsg(env->neg_cache, &qinfo, region, env->rrset_cache, in val_find_DS()
H A Dval_nsec.c188 rrset_check_sec_status(env->rrset_cache, nsec, *env->now); in nsec_verify_rrset()
194 rrset_update_sec_status(env->rrset_cache, nsec, *env->now); in nsec_verify_rrset()
H A Dvalidator.c993 rrset_cache_update_wildcard(env->rrset_cache, s, wc, wl, in validate_positive_response()
1803 qstate->env->rrset_cache, qstate->env); in processInit()
1883 qstate->env->rrset_cache, qstate->env); in processInit()
1911 qstate->env->rrset_cache, qstate->env); in processInit()
2148 qstate->env->rrset_cache, qstate->env); in processValidate()
H A Dval_nsec3.c1459 rrset_check_sec_status(env->rrset_cache, list[i], *env->now); in list_is_secure()
1469 rrset_update_sec_status(env->rrset_cache, list[i], *env->now); in list_is_secure()
/netbsd-src/external/bsd/unbound/dist/util/
H A Dmodule.h161 struct rrset_cache;
340 struct rrset_cache* rrset_cache; member
/netbsd-src/external/bsd/unbound/dist/daemon/
H A Ddaemon.c831 slabhash_clear(&daemon->env->rrset_cache->table); in daemon_cleanup()
881 rrset_cache_delete(daemon->env->rrset_cache); in daemon_delete()
979 !slabhash_is_size(&daemon->env->rrset_cache->table, in daemon_apply_cfg()
983 slabhash_clear(&daemon->env->rrset_cache->table); in daemon_apply_cfg()
999 if((daemon->env->rrset_cache = rrset_cache_adjust( in daemon_apply_cfg()
1000 daemon->env->rrset_cache, cfg, &daemon->superalloc)) == 0) in daemon_apply_cfg()
H A Ddaemon.h53 struct rrset_cache;
H A Dcachedump.c125 struct rrset_cache* r = worker->env.rrset_cache; in dump_rrset_cache()
434 (void)rrset_cache_update(worker->env.rrset_cache, &ref, in move_into_cache()
609 k = rrset_cache_lookup(worker->env.rrset_cache, qinfo.qname, in load_ref()
H A Dworker.c135 rrset = slabhash_get_mem(&worker->env.rrset_cache->table); in worker_mem_report()
219 (unsigned)slabhash_get_mem(&worker->env.rrset_cache->table), in worker_mem_report()
225 (unsigned)slabhash_get_mem(&worker->env.rrset_cache->table), in worker_mem_report()
722 rrset_array_unlock_touch(worker->env.rrset_cache, in answer_from_cache()
813 rrset_array_unlock_touch(worker->env.rrset_cache, worker->scratchpad, in answer_from_cache()
819 rrset_array_unlock_touch(worker->env.rrset_cache, in answer_from_cache()
2410 slabhash_clear(&worker->env.rrset_cache->table); in worker_alloc_cleanup()
H A Dremote.c782 rrset = slabhash_get_mem(&daemon->env->rrset_cache->table); in print_mem()
1560 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen, t, c, 0); in do_cache_remove()
1562 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen, t, c, in do_cache_remove()
1770 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_zone()
1839 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_bogus()
1914 slabhash_traverse(&worker->env.rrset_cache->table, 1, in do_flush_negative()
H A Dstats.c298 get_slabhash_stats(&worker->env.rrset_cache->table, in server_stats_compile()
/netbsd-src/external/bsd/unbound/dist/libunbound/
H A Dcontext.c100 ctx->env->rrset_cache = rrset_cache_adjust(ctx->env->rrset_cache, in context_finalize()
102 if(!ctx->env->rrset_cache) in context_finalize()
/netbsd-src/external/bsd/unbound/dist/iterator/
H A Diter_utils.c1137 (void)rrset_cache_update(env->rrset_cache, &ref, env->alloc, *env->now); in iter_store_parentside_rrset()
1227 akey = rrset_cache_lookup(env->rrset_cache, dp->name, in iter_lookup_parent_NS_from_cache()
1254 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in iter_lookup_parent_glue_from_cache()
1266 akey = rrset_cache_lookup(env->rrset_cache, ns->name, in iter_lookup_parent_glue_from_cache()
H A Diter_scrub.c675 (void)rrset_cache_update(env->rrset_cache, &ref, env->alloc, now); in store_rrset()
/netbsd-src/external/bsd/unbound/dist/util/shm_side/
H A Dshm_main.c261 shm_stat->mem.rrset = (long long)slabhash_get_mem(&worker->env.rrset_cache->table); in shm_main_run()
/netbsd-src/external/bsd/unbound/dist/dns64/
H A Ddns64.c874 rrset_cache_remove(super->env->rrset_cache, dk->rk.dname, in dns64_adjust_a()
/netbsd-src/external/bsd/unbound/dist/contrib/
H A Dredirect-bogus.patch26 rrset_array_unlock_touch(worker->env.rrset_cache,
/netbsd-src/external/bsd/unbound/dist/pythonmod/
H A Dinterface.i722 struct rrset_cache* rrset_cache;
/netbsd-src/external/bsd/unbound/dist/cachedb/
H A Dcachedb.c691 qstate->region, qstate->env->rrset_cache, in cachedb_intcache_lookup()

12