]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
rrcache, pktcache: better explain passing of ranks
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 3 Apr 2017 12:07:22 +0000 (14:07 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 3 Apr 2017 12:07:22 +0000 (14:07 +0200)
lib/layer/pktcache.c
lib/layer/rrcache.c

index 806351f2d8cc60e52e517d20f49b9d87d2ba2a3e..39f4405045c88b5e93ca150883f54d2dd8b555d2 100644 (file)
@@ -19,7 +19,7 @@
  * This builtin module caches whole packets from/for negative answers.
  *
  * Note: it also persists some QUERY_DNSSEC_* flags.
- * The ranks are stored in *rrset->additional (all are the same for one packet).
+ * The ranks are stored in *(uint8_t *)rrset->additional (all are the same for one packet).
  */
 
 #include <libknot/descriptor.h>
index ac54db38c37ef5e1f7bca3f450f4c4585c3fb322..a9c72547299ba7415de705259231bcb5e3f79c31 100644 (file)
@@ -21,7 +21,7 @@
  * Produce phase: if an RRset answering the query exists, the packet is filled
  * by it, including the corresponding RRSIGs (subject to some conditions).
  * Such a packet is recognizable: pkt->size == PKT_SIZE_NOWIRE, and QUERY_CACHED
- * is set in the query.  The ranks are stored in *rrset->additional.
+ * is set in the query.  The ranks are stored in *(uint8_t *)rrset->additional.
  *
  * TODO
  */