summaryrefslogtreecommitdiffstats
path: root/lib/zonecut.h
diff options
context:
space:
mode:
authorMarek Vavruša <marek.vavrusa@nic.cz>2015-06-06 21:03:26 +0200
committerMarek Vavruša <marek.vavrusa@nic.cz>2015-06-06 22:02:20 +0200
commit149d5e1ccd4f2e0603a1affaf29504510e41a9f6 (patch)
tree2cbe8f995c280190b79d7a3b1ad2f0532152a723 /lib/zonecut.h
parentlib/zonecut: prefetch A/AAAA records from cache (diff)
downloadknot-resolver-149d5e1ccd4f2e0603a1affaf29504510e41a9f6.tar.xz
knot-resolver-149d5e1ccd4f2e0603a1affaf29504510e41a9f6.zip
lib/nsrep: NS reputation cache in addition to RTT cache
this LRU-like cache tracks lame nameservers, unresolvable nameservers (to not waste resources in trying to resolve them), and possibly other features (extension support, …)
Diffstat (limited to 'lib/zonecut.h')
-rw-r--r--lib/zonecut.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/zonecut.h b/lib/zonecut.h
index 545098d3..990220ab 100644
--- a/lib/zonecut.h
+++ b/lib/zonecut.h
@@ -21,6 +21,7 @@
#include "lib/cache.h"
struct kr_rplan;
+struct kr_context;
/**
* Current zone cut representation.
@@ -98,11 +99,13 @@ int kr_zonecut_set_sbelt(struct kr_zonecut *cut);
/**
* Populate zone cut address set from cache.
- *
+ *
+ * @param ctx resolution context (to fetch data from LRU caches)
* @param cut zone cut to be populated
* @param name QNAME to start finding zone cut for
* @param txn cache transaction (read)
* @param timestamp transaction timestamp
* @return 0 or error code
*/
-int kr_zonecut_find_cached(struct kr_zonecut *cut, const knot_dname_t *name, struct kr_cache_txn *txn, uint32_t timestamp);
+int kr_zonecut_find_cached(struct kr_context *ctx, struct kr_zonecut *cut, const knot_dname_t *name,
+ struct kr_cache_txn *txn, uint32_t timestamp);