]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
nitpicks in comments
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 13 Dec 2016 12:00:13 +0000 (13:00 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 13 Dec 2016 12:00:13 +0000 (13:00 +0100)
lib/cache.h
lib/rplan.h

index b6ac0fe420a2b1e3983c80d1fd1dda4ed29b17f3..c758a2900c1594c0cb29b19318e4ecda5bd636bf 100644 (file)
@@ -35,9 +35,11 @@ enum kr_cache_tag {
  * - AUTH must be > than NONAUTH
  * - AUTH INSECURE must be > than AUTH (because it attempted validation)
  * - NONAUTH SECURE must be > than AUTH (because it's valid)
+ *
+ * Ref: https://tools.ietf.org/html/rfc2181#section-5.4.1
  */
 enum kr_cache_rank {
-       KR_RANK_BAD       = 0,  /* BAD cache, do not use. */ 
+       KR_RANK_BAD       = 0,  /* BAD cache, do not use. */
        KR_RANK_INSECURE  = 1,  /* Entry is DNSSEC insecure (e.g. RRSIG not exists). */
        KR_RANK_EXTRA     = 4,  /* Entry from additional section. */
        KR_RANK_NONAUTH   = 8,  /* Entry from authority section (i.e. parent-side). */
index 66bdef0995a1741aace3502913f302be04568bb3..5c65a711e487a1db3815718e2c946cda42547640 100644 (file)
@@ -39,7 +39,8 @@
        X(NO_CACHE,        1 << 11) /**< Do not use expiring cache for lookup. */ \
        X(EXPIRING,        1 << 12) /**< Query response is cached, but expiring. */ \
        X(ALLOW_LOCAL,     1 << 13) /**< Allow queries to local or private address ranges. */ \
-       X(DNSSEC_WANT,     1 << 14) /**< Want DNSSEC secured answer. */ \
+       X(DNSSEC_WANT,     1 << 14) /**< Want DNSSEC secured answer; exception: +cd, \
+                                    *   i.e. knot_wire_set_cd(request->answer->wire). */ \
        X(DNSSEC_BOGUS,    1 << 15) /**< Query response is DNSSEC bogus. */ \
        X(DNSSEC_INSECURE, 1 << 16) /**< Query response is DNSSEC insecure. */ \
        X(STUB,            1 << 17) /**< Stub resolution, accept received answer as solved. */ \
@@ -48,7 +49,7 @@
        X(PERMISSIVE,      1 << 20) /**< Permissive resolver mode. */ \
        X(STRICT,          1 << 21) /**< Strict resolver mode. */ \
        X(BADCOOKIE_AGAIN, 1 << 22) /**< Query again because bad cookie returned. */ \
-       X(CNAME,           1 << 23) /**< Query response contains CNAME in answer section. */ \
+       X(CNAME,           1 << 23) /**< Query response contains CNAME in answer section. */ \
        X(REORDER_RR,      1 << 24) /**< Reorder cached RRs. */
 
 /** Query flags */