Lines Matching refs:cache

36 #include <dns/cache.h>
216 dns_db_t * cache;
407 /* Bad cache. */
449 dns_db_t *cache, dns_dbnode_t *node,
3196 dns_db_detach(&fctx->cache);
3730 * Attach to the view's cache and adb.
3732 fctx->cache = NULL;
3733 dns_db_attach(res->view->cachedb, &fctx->cache);
4064 * to cache the result anyway (if this was a validation started by
4092 result = dns_db_findnode(fctx->cache,
4096 (void)dns_db_deleterdataset(fctx->cache, node,
4101 (void)dns_db_deleterdataset(fctx->cache, node,
4106 dns_db_detachnode(fctx->cache, &node);
4114 result = dns_db_findnode(fctx->cache,
4118 (void)dns_db_addrdataset(fctx->cache, node,
4125 (void)dns_db_addrdataset(fctx->cache, node,
4130 dns_db_detachnode(fctx->cache, &node);
4174 result = dns_db_findnode(fctx->cache, vevent->name, ISC_TRUE,
4180 * If we are asking for a SOA record set the cache time
4189 result = ncache_adderesult(fctx->rmessage, fctx->cache, node,
4227 * Re-cache it as secure and bind the cached
4231 result = dns_db_findnode(fctx->cache, vevent->name, ISC_TRUE, &node);
4235 result = dns_db_addrdataset(fctx->cache, node, NULL, now,
4246 result = dns_db_addrdataset(fctx->cache, node, NULL, now,
4257 * If we only deferred the destroy because we wanted to cache
4260 dns_db_detachnode(fctx->cache, &node);
4279 dns_db_detachnode(fctx->cache, &node);
4312 result = dns_db_findnode(fctx->cache, name, ISC_TRUE,
4317 result = dns_db_addrdataset(fctx->cache, nsnode, NULL,
4320 result = dns_db_addrdataset(fctx->cache, nsnode,
4324 dns_db_detachnode(fctx->cache, &nsnode);
4346 dns_db_attach(fctx->cache, &hevent->db);
4347 dns_db_transfernode(fctx->cache, &node, &hevent->node);
4353 dns_db_detachnode(fctx->cache, &node);
4592 * Find or create the cache node.
4595 result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
4625 dns_db_detachnode(fctx->cache, &node);
4633 * Enforce the configure maximum cache TTL.
4720 result = dns_db_addrdataset(fctx->cache, node,
4729 * The answer in the cache is
4732 * cache entry, so we must set
4743 * from the cache so don't
4754 result = dns_db_addrdataset(fctx->cache,
4772 * validate it, but first we cache
4815 * It's OK to cache this rdataset now.
4841 * over the existing cache contents.
4864 result = dns_db_addrdataset(fctx->cache,
4875 * The answer in the cache is better
4877 * a negative cache entry, so we
4908 dns_db_attach(fctx->cache, adbp);
4909 dns_db_transfernode(fctx->cache, &node, anodep);
4915 dns_db_detachnode(fctx->cache, &node);
4963 ncache_adderesult(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
4976 result = dns_ncache_addoptout(message, cache, node, covers,
4979 result = dns_ncache_add(message, cache, node, covers, now,
4983 * If the cache now contains a negative entry and we
4989 * The cache data is a negative cache entry.
4998 * cache rdataset (because no fetch is interested
4999 * in the outcome), or the cache rdataset is not
5000 * a negative cache entry. Whichever case it is,
5130 result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
5135 * If we are asking for a SOA record set the cache time
5145 result = ncache_adderesult(fctx->rmessage, fctx->cache, node,
5155 dns_db_attach(fctx->cache, adbp);
5156 dns_db_transfernode(fctx->cache, &node, anodep);
5165 dns_db_detachnode(fctx->cache, &node);
5720 * Since we're not doing a referral, we don't want to cache any
6663 * EDNS may not be supported so we can now cache the lack of
6741 * response contains an OPT RR and don't cache the
6877 * Clear cache bits.
7002 * Cache any negative cache entries in the message.
7517 res->view->cache != NULL && res->view->hints != NULL) {
7518 dns_cache_attachdb(res->view->cache, &db);
8369 fprintf(fp, ";\n; Bad cache\n;\n");