Lines Matching defs:cache
35 #include <dns/cache.h>
298 dns_db_t * cache;
506 dns_badcache_t * badcache; /* Bad cache. */
559 dns_db_t *cache, dns_dbnode_t *node,
3901 dns_db_detach(&fctx->cache);
4476 * Attach to the view's cache and adb.
4478 fctx->cache = NULL;
4479 dns_db_attach(res->view->cachedb, &fctx->cache);
4888 * to cache the result anyway (if this was a validation started by
4916 result = dns_db_findnode(fctx->cache,
4920 (void)dns_db_deleterdataset(fctx->cache, node,
4925 (void)dns_db_deleterdataset(fctx->cache, node,
4930 dns_db_detachnode(fctx->cache, &node);
4938 result = dns_db_findnode(fctx->cache,
4942 (void)dns_db_addrdataset(fctx->cache, node,
4949 (void)dns_db_addrdataset(fctx->cache, node,
4954 dns_db_detachnode(fctx->cache, &node);
5002 result = dns_db_findnode(fctx->cache, vevent->name, ISC_TRUE,
5008 * If we are asking for a SOA record set the cache time
5017 result = ncache_adderesult(fctx->rmessage, fctx->cache, node,
5055 * Re-cache it as secure and bind the cached
5059 result = dns_db_findnode(fctx->cache, vevent->name, ISC_TRUE, &node);
5066 result = dns_db_addrdataset(fctx->cache, node, NULL, now,
5077 result = dns_db_addrdataset(fctx->cache, node, NULL, now,
5088 * If we only deferred the destroy because we wanted to cache
5091 dns_db_detachnode(fctx->cache, &node);
5110 dns_db_detachnode(fctx->cache, &node);
5143 result = dns_db_findnode(fctx->cache, name, ISC_TRUE,
5148 result = dns_db_addrdataset(fctx->cache, nsnode, NULL,
5151 result = dns_db_addrdataset(fctx->cache, nsnode,
5155 dns_db_detachnode(fctx->cache, &nsnode);
5185 dns_db_attach(fctx->cache, &hevent->db);
5186 dns_db_transfernode(fctx->cache, &node, &hevent->node);
5192 dns_db_detachnode(fctx->cache, &node);
5436 * Find or create the cache node.
5439 result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
5472 dns_db_detachnode(fctx->cache, &node);
5480 * Enforce the configure maximum cache TTL.
5602 result = dns_db_addrdataset(fctx->cache, node,
5613 * The answer in the cache is
5616 * cache entry, so we must set
5628 * from the cache so don't
5640 result = dns_db_addrdataset(fctx->cache,
5663 * validate it, but first we cache
5699 * It's OK to cache this rdataset now.
5727 * over the existing cache contents.
5755 result = dns_db_addrdataset(fctx->cache,
5767 * The answer in the cache is better
5769 * a negative cache entry, so we
5817 dns_db_attach(fctx->cache, adbp);
5818 dns_db_transfernode(fctx->cache, &node, anodep);
5824 dns_db_detachnode(fctx->cache, &node);
5873 ncache_adderesult(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
5886 result = dns_ncache_addoptout(message, cache, node, covers,
5889 result = dns_ncache_add(message, cache, node, covers, now,
5893 * If the cache now contains a negative entry and we
5899 * The cache data is a negative cache entry.
5908 * cache rdataset (because no fetch is interested
5909 * in the outcome), or the cache rdataset is not
5910 * a negative cache entry. Whichever case it is,
6049 result = dns_db_findnode(fctx->cache, name, ISC_TRUE, &node);
6054 * If we are asking for a SOA record set the cache time
6064 result = ncache_adderesult(fctx->rmessage, fctx->cache, node,
6079 dns_db_attach(fctx->cache, adbp);
6080 dns_db_transfernode(fctx->cache, &node, anodep);
6089 dns_db_detachnode(fctx->cache, &node);
6872 * Since we're not doing a referral, we don't want to cache any
8010 * EDNS may not be supported so we can now cache the lack of
8160 * response contains an OPT RR and don't cache the
8340 * Clear cache bits.
8528 * Cache any negative cache entries in the message.
9111 res->view->cache != NULL && res->view->hints != NULL) {
9112 dns_cache_attachdb(res->view->cache, &db);
9810 (void) dns_badcache_print(resolver->badcache, "Bad cache", fp);