diff options
author | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-06-06 21:03:26 +0200 |
---|---|---|
committer | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-06-06 22:02:20 +0200 |
commit | 149d5e1ccd4f2e0603a1affaf29504510e41a9f6 (patch) | |
tree | 2cbe8f995c280190b79d7a3b1ad2f0532152a723 /lib/zonecut.h | |
parent | lib/zonecut: prefetch A/AAAA records from cache (diff) | |
download | knot-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.h | 7 |
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); |