]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #1202: Fix code comment that packed_rrset_data is not always
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 9 Jan 2017 09:47:06 +0000 (09:47 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 9 Jan 2017 09:47:06 +0000 (09:47 +0000)
  'packed'.

git-svn-id: file:///svn/unbound/trunk@3984 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/data/packed_rrset.h

index 4cec01bc31ea53826d9ef9ae9aaf0de29a394091..332482ac73d9c93459f94cf7315bb4d6c2ec5160 100644 (file)
@@ -1,3 +1,7 @@
+9 January 2017: Wouter
+       - Fix #1202: Fix code comment that packed_rrset_data is not always
+         'packed'.
+
 6 January 2017: Wouter
        - Fix #1201: Fix missing unlock in answer_from_cache error condition.
 
index 6039aef242ca5eee5c6f5ff0e19d213bde4e82de..e956054455bb3fb37d2e8c8fed96e5c5d6ad4ae4 100644 (file)
@@ -191,6 +191,12 @@ enum sec_status {
  * RRset data.
  *
  * The data is packed, stored contiguously in memory.
+ *
+ * It is not always stored contiguously, in that case, an unpacked-packed
+ * rrset has the arrays separate.  A bunch of routines work on that, but
+ * the packed rrset that is contiguous is for the rrset-cache and the
+ * cache-response routines in daemon/worker.c.
+ *
  * memory layout:
  *     o base struct
  *     o rr_len size_t array