Commit 3648e3e2 authored by Marek Vavrusa's avatar Marek Vavrusa

lib/cache: fixed incorrect ranking in some places

fixed incorrect tagging in rrmap where secure rank would overflow

found by @gdemidov
parent 1070c49a
......@@ -40,16 +40,16 @@ enum kr_cache_rank {
KR_RANK_INSECURE = 1, /* Entry is DNSSEC insecure (e.g. RRSIG not exists). */
KR_RANK_NONAUTH = 8, /* Entry from authority section (i.e. parent-side) */
KR_RANK_AUTH = 16, /* Entry from answer (authoritative data) */
KR_RANK_SECURE = 64, /* Entry is DNSSEC valid (e.g. RRSIG exists). */
KR_RANK_SECURE = 32, /* Entry is DNSSEC valid (e.g. RRSIG exists). */
/* @note Rank must not exceed 6 bits */
};
/** Cache entry flags */
enum kr_cache_flag {
KR_CACHE_FLAG_NONE = 0,
KR_CACHE_FLAG_WCARD_PROOF = 1 /* Entry contains either packet with wildcard
* answer either record for which wildcard
* expansion proof is needed */
KR_CACHE_FLAG_NONE = 0,
KR_CACHE_FLAG_WCARD_PROOF = 1, /* Entry contains either packet with wildcard
* answer either record for which wildcard
* expansion proof is needed */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment