]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/cache: noted that rank is limited to 6 bits
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 27 Oct 2015 09:03:39 +0000 (10:03 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 27 Oct 2015 09:03:39 +0000 (10:03 +0100)
lib/cache.h

index 4243c1bc3528e6505ba7044645c60696162c87b2..211eb20cf5754112083a43b611409610fec8e8cb 100644 (file)
@@ -39,7 +39,8 @@ 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    = 256,  /* Entry is DNSSEC valid (e.g. RRSIG exists). */
+       KR_RANK_SECURE    = 64, /* Entry is DNSSEC valid (e.g. RRSIG exists). */
+       /* @note Rank must not exceed 6 bits */
 };
 
 /**