Home | History | Annotate | Download | only in dns

Lines Matching defs:CACHE

47 #include <dns/cache.h>
395 dns_db_t *cache;
671 ncache_adderesult(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
4467 dns_db_detach(&fctx->cache);
4874 * Attach to the view's adb, dispatchmgr and cache adb.
4886 dns_db_attach(res->view->cachedb, &fctx->cache);
5154 #define CACHE(r) (((r)->attributes & DNS_RDATASETATTR_CACHE) != 0)
5360 * want to cache the result anyway (if this was a validation
5389 result = dns_db_findnode(fctx->cache, val->name,
5393 (void)dns_db_deleterdataset(fctx->cache, node,
5399 fctx->cache, node, NULL,
5403 dns_db_detachnode(fctx->cache, &node);
5408 * Cache the data as pending for later
5413 result = dns_db_findnode(fctx->cache, val->name,
5418 fctx->cache, node, NULL, now,
5424 fctx->cache, node, NULL, now,
5428 dns_db_detachnode(fctx->cache, &node);
5462 * Cache DS NXDOMAIN separately to other types.
5485 result = dns_db_findnode(fctx->cache, val->name, true, &node);
5492 * If we are asking for a SOA record set the cache time
5503 result = ncache_adderesult(message, fctx->cache, node, covers,
5545 * Re-cache it as secure and bind the cached
5549 result = dns_db_findnode(fctx->cache, val->name, true, &node);
5558 result = dns_db_addrdataset(fctx->cache, node, NULL, now, val->rdataset,
5570 result = dns_db_addrdataset(fctx->cache, node, NULL, now,
5581 * cache the data, destroy now.
5583 dns_db_detachnode(fctx->cache, &node);
5607 dns_db_detachnode(fctx->cache, &node);
5616 * Cache any SOA/NS/NSEC records that happened to be validated.
5650 * Don't cache NSEC if missing NSEC or RRSIG types.
5659 * Don't cache "white lies" but do cache
5687 result = dns_db_findnode(fctx->cache, name, true,
5693 result = dns_db_addrdataset(fctx->cache, nsnode, NULL,
5697 fctx->cache, nsnode, NULL, now,
5700 dns_db_detachnode(fctx->cache, &nsnode);
5720 result = dns_db_findnode(fctx->cache, wild, true, &wnode);
5722 result = dns_db_addrdataset(fctx->cache, wnode, NULL,
5727 (void)dns_db_addrdataset(fctx->cache, wnode, NULL, now,
5731 dns_db_detachnode(fctx->cache, &wnode);
5771 dns_db_attach(fctx->cache, &hresp->db);
5772 dns_db_transfernode(fctx->cache, &node, &hresp->node);
5778 dns_db_detachnode(fctx->cache, &node);
6031 * Find or create the cache node.
6033 result = dns_db_findnode(fctx->cache, name, true, &node);
6039 * Cache or validate each cacheable rdataset.
6045 if (!CACHE(rdataset)) {
6065 dns_db_detachnode(fctx->cache, &node);
6073 * Enforce the configure maximum cache TTL.
6080 * Enforce configured minimum cache TTL.
6160 * Cache this rdataset/sigrdataset pair as
6210 * This allows us to continue and cache RRSIGs
6218 fctx->cache, node, NULL, now, rdataset,
6228 * cache is better than
6231 * cache entry, we
6255 fctx->cache, node, NULL, now,
6277 * cache the rest of the
6312 * It's OK to cache this rdataset now.
6341 * over the existing cache contents.
6368 result = dns_db_addrdataset(fctx->cache, node, NULL,
6377 * The answer in the cache is
6380 * cache entry, so we must set
6444 dns_db_attach(fctx->cache, adbp);
6445 dns_db_transfernode(fctx->cache, &node, anodep);
6451 dns_db_detachnode(fctx->cache, &node);
6477 if (name->attributes.cache) {
6504 ncache_adderesult(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
6516 result = dns_ncache_addoptout(message, cache, node, covers, now,
6520 result = dns_ncache_add(message, cache, node, covers, now,
6525 * If the cache now contains a negative entry and we
6531 * The cache data is a negative cache entry.
6540 * The attempt to add a negative cache entry
6670 result = dns_db_findnode(fctx->cache, name, true, &node);
6688 * If we are asking for a SOA record set the cache time
6699 result = ncache_adderesult(message, fctx->cache, node, covers, now,
6716 dns_db_attach(fctx->cache, adbp);
6717 dns_db_transfernode(fctx->cache, &node, anodep);
6726 dns_db_detachnode(fctx->cache, &node);
6735 name->attributes.cache = true;
6751 if (!CACHE(rdataset)) {
6807 * then don't cache.
6840 * changed: play it safe and don't cache.
6846 * can't cache this response.
7895 * Clear cache bits.
7962 * Cache the cacheable parts of the message. This may also
8536 * Cache records in the authority section, if there are
8669 * section, and the rdata isn't filtered, cache it.
8709 rctx->aname->attributes.cache = true;
8758 rctx->aname->attributes.cache = true;
8792 * Handle answers containing a CNAME. Cache the CNAME, and flag that
8822 rctx->cname->attributes.cache = true;
8876 rctx->dname->attributes.cache = true;
8925 /* If it's spoofable, don't cache it. */
8955 name->attributes.cache = true;
9116 * Since we're not doing a referral, we don't want to cache any
9120 rctx->ns_name->attributes.cache = false;
9215 name->attributes.cache = true;
9260 * Cache the negatively cacheable parts of the message. This may
9274 * Cache DS NXDOMAIN separately to other types.
9285 * Cache any negative cache entries in the message.
9355 name->attributes.cache = true;
9401 name->attributes.cache = true;
10280 if (resp->result == ISC_R_SUCCESS && res->view->cache != NULL &&
10283 dns_cache_attachdb(res->view->cache, &db);
10493 result = dns_db_find(fctx->cache, &name, NULL,