_ZN7DNSName19throwSafeRangeErrorERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS0_17basic_string_viewIcS3_EE:
   64|    561|{
   65|    561|  std::string dots;
   66|    561|  auto length = content.size();
   67|    561|  if (length > s_maxDNSNameLength) {
  ------------------
  |  Branch (67:7): [True: 0, False: 561]
  ------------------
   68|      0|    length = s_maxDNSNameLength;
   69|      0|    dots = "...";
   70|      0|  }
   71|    561|  std::string label;
   72|    561|  DNSName::appendEscapedLabel(label, content.begin(), length);
   73|    561|  throw std::range_error(msg + label + dots);
   74|    561|}
_ZN7DNSNameC2ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   77|  14.1k|{
   78|  14.1k|  if (content.empty() || (content.size() == 1 && content.at(0) == '.')) {
  ------------------
  |  Branch (78:7): [True: 0, False: 14.1k]
  |  Branch (78:27): [True: 7.24k, False: 6.86k]
  |  Branch (78:50): [True: 7.24k, False: 2]
  ------------------
   79|  7.24k|    d_storage.assign(1U, '\0');
   80|  7.24k|    return;
   81|  7.24k|  }
   82|       |
   83|  6.86k|  if (std::memchr(content.data(), '\\', content.size()) != nullptr) {
  ------------------
  |  Branch (83:7): [True: 0, False: 6.86k]
  ------------------
   84|      0|    d_storage = segmentDNSNameRaw(content.data(), content.size());
   85|      0|    if (d_storage.size() > s_maxDNSNameLength) {
  ------------------
  |  Branch (85:9): [True: 0, False: 0]
  ------------------
   86|      0|      throwSafeRangeError("name too long: ", content);
   87|      0|    }
   88|      0|    return;
   89|      0|  }
   90|       |
   91|  6.86k|  unsigned char lenpos = 0;
   92|  6.86k|  unsigned char labellen = 0;
   93|       |
   94|  6.86k|  d_storage.reserve(content.size() + 1U);
   95|  24.7k|  for (size_t position = 0; position < content.size(); ) {
  ------------------
  |  Branch (95:29): [True: 17.9k, False: 6.86k]
  ------------------
   96|  17.9k|    lenpos = d_storage.size();
   97|  17.9k|    if (content.at(position) == '.') {
  ------------------
  |  Branch (97:9): [True: 561, False: 17.3k]
  ------------------
   98|    561|      throwSafeRangeError("Found . in wrong position in DNSName: ", content);
   99|    561|    }
  100|  17.9k|    d_storage.append(1U, '\0');
  101|  17.9k|    labellen = 0;
  102|  17.9k|    size_t begPosition = position;
  103|   114k|    for(; position < content.size() && content.at(position) != '.'; ++position) {
  ------------------
  |  Branch (103:11): [True: 114k, False: 587]
  |  Branch (103:40): [True: 96.6k, False: 17.3k]
  ------------------
  104|  96.6k|      labellen++;
  105|  96.6k|    }
  106|       |    // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
  107|  17.9k|    d_storage.append(content.begin() + begPosition, content.begin() + position);
  108|  17.9k|    if (position < content.size()) {
  ------------------
  |  Branch (108:9): [True: 17.3k, False: 587]
  ------------------
  109|  17.3k|      ++position;
  110|  17.3k|    }
  111|  17.9k|    if (labellen > s_maxDNSLabelLength) {
  ------------------
  |  Branch (111:9): [True: 0, False: 17.9k]
  ------------------
  112|      0|      throwSafeRangeError("label too long to append: ", content);
  113|      0|    }
  114|       |
  115|  17.9k|    if (position > s_maxDNSNameLength - 1U) {
  ------------------
  |  Branch (115:9): [True: 0, False: 17.9k]
  ------------------
  116|       |      // reserve two bytes, one for length and one for the root label
  117|      0|      throwSafeRangeError("name too long to append: ", content);
  118|      0|    }
  119|       |
  120|  17.9k|    d_storage.at(lenpos) = static_cast<char>(labellen);
  121|  17.9k|  }
  122|  6.86k|  if (d_storage.size() > s_maxDNSNameLength - 1U) {
  ------------------
  |  Branch (122:7): [True: 0, False: 6.86k]
  ------------------
  123|      0|    throwSafeRangeError("name too long: ", content);
  124|      0|  }
  125|  6.86k|  d_storage.append(1U, '\0');
  126|  6.86k|}
_ZN7DNSNameC2EPKcmmbPtS2_PjtPm:
  129|  16.5k|{
  130|  16.5k|  if (offset >= len)
  ------------------
  |  Branch (130:7): [True: 74, False: 16.4k]
  ------------------
  131|     74|    throw std::range_error("Trying to read past the end of the buffer ("+std::to_string(offset)+ " >= "+std::to_string(len)+")");
  132|       |
  133|  16.4k|  if(!uncompress) {
  ------------------
  |  Branch (133:6): [True: 0, False: 16.4k]
  ------------------
  134|      0|    if(const void * fnd=memchr(pos+offset, 0, len-offset)) {
  ------------------
  |  Branch (134:21): [True: 0, False: 0]
  ------------------
  135|      0|      d_storage.reserve(2+(const char*)fnd-(pos+offset));
  136|      0|    }
  137|      0|  }
  138|       |
  139|  16.4k|  packetParser(pos, len, offset, uncompress, qtype, qclass, consumed, 0, minOffset, 0, pointerBudget);
  140|  16.4k|}
_ZN7DNSName23parsePacketUncompressedERKN4pdns5views16UnsignedCharViewEmb:
  154|  20.9k|{
  155|  20.9k|  const size_t initialPos = pos;
  156|  20.9k|  auto existingSize = d_storage.size();
  157|  20.9k|  const size_t neededSizeForFinalLabel = /* final empty label length */ (existingSize == 0 ? 1U : 0U);
  ------------------
  |  Branch (157:74): [True: 18.4k, False: 2.56k]
  ------------------
  158|  20.9k|  size_t totalLength = 0;
  159|  20.9k|  unsigned char labellen = 0;
  160|       |
  161|  38.1k|  do {
  162|  38.1k|    labellen = view.at(pos);
  163|  38.1k|    ++pos;
  164|       |
  165|  38.1k|    if (labellen == 0) {
  ------------------
  |  Branch (165:9): [True: 16.3k, False: 21.8k]
  ------------------
  166|  16.3k|      --pos;
  167|  16.3k|      break;
  168|  16.3k|    }
  169|       |
  170|  21.8k|    if (labellen >= 0xc0) {
  ------------------
  |  Branch (170:9): [True: 4.64k, False: 17.2k]
  ------------------
  171|  4.64k|      if (!uncompress) {
  ------------------
  |  Branch (171:11): [True: 0, False: 4.64k]
  ------------------
  172|      0|        throw std::range_error("Found compressed label, instructed not to follow");
  173|      0|      }
  174|  4.64k|      --pos;
  175|  4.64k|      break;
  176|  4.64k|    }
  177|       |
  178|  17.2k|    if ((labellen & 0xc0) != 0) {
  ------------------
  |  Branch (178:9): [True: 27, False: 17.1k]
  ------------------
  179|     27|      throw std::range_error("Found an invalid label length in qname (only one of the first two bits is set)");
  180|     27|    }
  181|  17.1k|    checkLabelLength(labellen);
  182|       |
  183|       |    // reserve one byte for the label length, plus one byte for the final empty label if we were empty before
  184|  17.1k|    if ((existingSize + totalLength + labellen + 1U + neededSizeForFinalLabel) > s_maxDNSNameLength) {
  ------------------
  |  Branch (184:9): [True: 2, False: 17.1k]
  ------------------
  185|      2|      throw std::range_error("name too long to append");
  186|      2|    }
  187|  17.1k|    if (pos + labellen >= view.size()) {
  ------------------
  |  Branch (187:9): [True: 19, False: 17.1k]
  ------------------
  188|     19|      throw std::range_error("Found an invalid label length in qname");
  189|     19|    }
  190|  17.1k|    pos += labellen;
  191|  17.1k|    totalLength += 1U + labellen;
  192|  17.1k|  }
  193|  20.9k|  while (pos < view.size());
  ------------------
  |  Branch (193:10): [True: 17.1k, False: 0]
  ------------------
  194|       |
  195|  20.9k|  if (totalLength != 0) {
  ------------------
  |  Branch (195:7): [True: 8.80k, False: 12.1k]
  ------------------
  196|  8.80k|    if (existingSize > 0) {
  ------------------
  |  Branch (196:9): [True: 2.52k, False: 6.27k]
  ------------------
  197|       |      // remove the last label count, we are about to override it */
  198|  2.52k|      --existingSize;
  199|  2.52k|    }
  200|  8.80k|    if ((existingSize + totalLength + 1U) > s_maxDNSNameLength) {
  ------------------
  |  Branch (200:9): [True: 0, False: 8.80k]
  ------------------
  201|      0|      throw std::range_error("name too long to append");
  202|      0|    }
  203|  8.80k|    d_storage.reserve(existingSize + totalLength + 1);
  204|  8.80k|    d_storage.resize(existingSize + totalLength);
  205|  8.80k|    memcpy(&d_storage.at(existingSize), &view.at(initialPos), totalLength);
  206|  8.80k|    d_storage.append(1, static_cast<char>(0));
  207|  8.80k|  }
  208|  20.9k|  return pos;
  209|  20.9k|}
_ZN7DNSName12packetParserEPKcmmbPtS2_PjittPm:
  213|  20.9k|{
  214|  20.9k|  if (offset >= len) {
  ------------------
  |  Branch (214:7): [True: 0, False: 20.9k]
  ------------------
  215|      0|    throw std::range_error("Trying to read past the end of the buffer ("+std::to_string(offset)+ " >= "+std::to_string(len)+")");
  216|      0|  }
  217|       |
  218|  20.9k|  if (offset < static_cast<size_t>(minOffset)) {
  ------------------
  |  Branch (218:7): [True: 0, False: 20.9k]
  ------------------
  219|      0|    throw std::range_error("Trying to read before the beginning of the buffer ("+std::to_string(offset)+ " < "+std::to_string(minOffset)+")");
  220|      0|  }
  221|  20.9k|  unsigned char labellen{0};
  222|       |
  223|  20.9k|  pdns::views::UnsignedCharView view(qpos, len);
  224|  20.9k|  auto pos = parsePacketUncompressed(view, offset, uncompress);
  225|       |
  226|       |
  227|  20.9k|  labellen = view.at(pos);
  228|  20.9k|  if (pos == offset && labellen != 0) {
  ------------------
  |  Branch (228:7): [True: 12.1k, False: 8.84k]
  |  Branch (228:24): [True: 2.07k, False: 10.0k]
  ------------------
  229|       |    // It's a pointer
  230|  2.07k|    if (pointerBudget != nullptr) {
  ------------------
  |  Branch (230:9): [True: 2.07k, False: 0]
  ------------------
  231|  2.07k|      if (*pointerBudget == 0) {
  ------------------
  |  Branch (231:11): [True: 0, False: 2.07k]
  ------------------
  232|      0|        throw std::range_error("Too many compression pointers processed in packet");
  233|      0|      }
  234|  2.07k|      (*pointerBudget)--;
  235|  2.07k|    }
  236|       |    // Are we chasing a pointer chain already for this name?
  237|  2.07k|    if (pointerChainLength++ > s_maxPointersToPointers) {
  ------------------
  |  Branch (237:9): [True: 1, False: 2.07k]
  ------------------
  238|      1|      throw std::range_error("Too many pointer to pointers during decompression (" + std::to_string(pointerChainLength) + ")");
  239|      1|    }
  240|  2.07k|  }
  241|  18.9k|  else {
  242|  18.9k|    pointerChainLength = 0; // not an immediate pointer to pointer case any more
  243|  18.9k|  }
  244|  20.9k|  pos++;
  245|  20.9k|  if (labellen != 0 && pos < view.size()) {
  ------------------
  |  Branch (245:7): [True: 4.64k, False: 16.3k]
  |  Branch (245:24): [True: 4.59k, False: 51]
  ------------------
  246|  4.59k|    if (labellen < 0xc0) {
  ------------------
  |  Branch (246:9): [True: 0, False: 4.59k]
  ------------------
  247|      0|      throw std::range_error("Invalid label byte during decompression ("+std::to_string(labellen)+")");
  248|      0|    }
  249|       |
  250|  4.59k|    if (!uncompress) {
  ------------------
  |  Branch (250:9): [True: 0, False: 4.59k]
  ------------------
  251|      0|      throw std::range_error("Found compressed label, instructed not to follow");
  252|      0|    }
  253|       |
  254|  4.59k|    labellen &= (~0xc0);
  255|  4.59k|    size_t newpos = (labellen << 8) + view.at(pos);
  256|       |
  257|  4.59k|    if (newpos >= offset) {
  ------------------
  |  Branch (257:9): [True: 46, False: 4.54k]
  ------------------
  258|     46|      throw std::range_error("Found a forward reference during label decompression");
  259|     46|    }
  260|       |
  261|  4.54k|    if (newpos < minOffset) {
  ------------------
  |  Branch (261:9): [True: 1, False: 4.54k]
  ------------------
  262|      1|      throw std::range_error("Invalid label position during decompression ("+std::to_string(newpos)+ " < "+std::to_string(minOffset)+")");
  263|      1|    }
  264|       |
  265|  4.54k|    if (++depth > s_maxPointersPerName) {
  ------------------
  |  Branch (265:9): [True: 1, False: 4.54k]
  ------------------
  266|      1|      throw std::range_error("Abort label decompression after too many redirects (" + std::to_string(depth) + ")");
  267|      1|    }
  268|       |
  269|  4.54k|    packetParser(qpos, len, newpos, true, nullptr, nullptr, nullptr, depth, minOffset, pointerChainLength, pointerBudget);
  270|       |
  271|  4.54k|    pos++;
  272|  4.54k|  }
  273|       |
  274|  20.9k|  if (d_storage.empty()) {
  ------------------
  |  Branch (274:7): [True: 10.0k, False: 10.8k]
  ------------------
  275|  10.0k|    d_storage.append(1, static_cast<char>(0)); // we just parsed the root
  276|  10.0k|  }
  277|       |
  278|  20.9k|  if (consumed != nullptr) {
  ------------------
  |  Branch (278:7): [True: 16.3k, False: 4.59k]
  ------------------
  279|  16.3k|    *consumed = pos - offset;
  280|  16.3k|  }
  281|       |
  282|  20.9k|  if (qtype != nullptr) {
  ------------------
  |  Branch (282:7): [True: 0, False: 20.9k]
  ------------------
  283|      0|    if (pos + 2 > view.size()) {
  ------------------
  |  Branch (283:9): [True: 0, False: 0]
  ------------------
  284|      0|      throw std::range_error("Trying to read qtype past the end of the buffer ("+std::to_string(pos + 2)+ " > "+std::to_string(len)+")");
  285|      0|    }
  286|      0|    *qtype = view.at(pos)*256 + view.at(pos+1);
  287|      0|  }
  288|       |
  289|  20.9k|  pos += 2;
  290|  20.9k|  if (qclass != nullptr) {
  ------------------
  |  Branch (290:7): [True: 0, False: 20.9k]
  ------------------
  291|      0|    if (pos + 2 > view.size()) {
  ------------------
  |  Branch (291:9): [True: 0, False: 0]
  ------------------
  292|      0|      throw std::range_error("Trying to read qclass past the end of the buffer ("+std::to_string(pos + 2)+ " > "+std::to_string(len)+")");
  293|      0|    }
  294|      0|    *qclass = view.at(pos)*256 + view.at(pos+1);
  295|      0|  }
  296|  20.9k|}
_ZNK7DNSName10wirelengthEv:
  367|  4.20k|size_t DNSName::wirelength() const {
  368|  4.20k|  return d_storage.length();
  369|  4.20k|}
_ZN7DNSName18appendEscapedLabelERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcm:
  723|    561|{
  724|    561|  size_t pos = 0;
  725|       |
  726|  8.08k|  while (pos < len) {
  ------------------
  |  Branch (726:10): [True: 7.51k, False: 561]
  ------------------
  727|  7.51k|    auto p = static_cast<uint8_t>(orig[pos]);
  728|  7.51k|    if (p=='.') {
  ------------------
  |  Branch (728:9): [True: 1.12k, False: 6.39k]
  ------------------
  729|  1.12k|      appendTo+="\\.";
  730|  1.12k|    }
  731|  6.39k|    else if (p=='\\') {
  ------------------
  |  Branch (731:14): [True: 0, False: 6.39k]
  ------------------
  732|      0|      appendTo+="\\\\";
  733|      0|    }
  734|  6.39k|    else if (p > 0x20 && p < 0x7f) {
  ------------------
  |  Branch (734:14): [True: 6.39k, False: 0]
  |  Branch (734:26): [True: 6.39k, False: 0]
  ------------------
  735|  6.39k|      appendTo.append(1, static_cast<char>(p));
  736|  6.39k|    }
  737|      0|    else {
  738|      0|      char buf[] = "000";
  739|      0|      auto got = snprintf(buf, sizeof(buf), "%03" PRIu8, p);
  740|      0|      if (got < 0 || static_cast<size_t>(got) >= sizeof(buf)) {
  ------------------
  |  Branch (740:11): [True: 0, False: 0]
  |  Branch (740:22): [True: 0, False: 0]
  ------------------
  741|      0|        throw std::runtime_error("Error, snprintf returned " + std::to_string(got) + " while escaping label " + std::string(orig, len));
  742|      0|      }
  743|      0|      appendTo.append(1, '\\');
  744|      0|      appendTo += buf;
  745|      0|    }
  746|  7.51k|    ++pos;
  747|  7.51k|  }
  748|    561|}
_ZN8ZoneName20findVariantSeparatorENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  939|      2|{
  940|      2|  std::string_view::size_type pos{0};
  941|       |
  942|       |  // Try to be as fast as possible in the non-variant case and exit
  943|       |  // quickly if we don't find two dots in a row.
  944|      2|  while ((pos = name.find('.', pos)) != std::string_view::npos) {
  ------------------
  |  Branch (944:10): [True: 2, False: 0]
  ------------------
  945|      2|    ++pos;
  946|      2|    if (pos >= name.length()) { // trailing single dot
  ------------------
  |  Branch (946:9): [True: 2, False: 0]
  ------------------
  947|      2|      return std::string_view::npos;
  948|      2|    }
  949|      0|    if (name.at(pos) == '.') {
  ------------------
  |  Branch (949:9): [True: 0, False: 0]
  ------------------
  950|       |      // We have found two dots in a row, but the first dot might have been
  951|       |      // escaped. So we now need to count how many \ characters we can find a
  952|       |      // row before it; if their number is odd, the first dot is escaped and
  953|       |      // we need to keep searching.
  954|      0|      size_t slashes{0};
  955|      0|      while (pos >= 2 + slashes && name.at(pos - 2 - slashes) == '\\') {
  ------------------
  |  Branch (955:14): [True: 0, False: 0]
  |  Branch (955:36): [True: 0, False: 0]
  ------------------
  956|      0|        ++slashes;
  957|      0|      }
  958|      0|      if ((slashes % 2) == 0) {
  ------------------
  |  Branch (958:11): [True: 0, False: 0]
  ------------------
  959|      0|        break;
  960|      0|      }
  961|      0|    }
  962|      0|  }
  963|      0|  return pos;
  964|      2|}
_ZN8ZoneNameC2ENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  967|      2|{
  968|      2|  if (auto sep = findVariantSeparator(name); sep != std::string_view::npos) {
  ------------------
  |  Branch (968:46): [True: 0, False: 2]
  ------------------
  969|      0|    setVariant(name.substr(sep + 1)); // ignore leading dot in variant name
  970|      0|    name = name.substr(0, sep); // keep trailing dot in zone name
  971|      0|  }
  972|      2|  d_name = DNSName(name);
  973|      2|}
dnsname.cc:_ZL16checkLabelLengthh:
  143|  17.1k|{
  144|  17.1k|  if (length == 0) {
  ------------------
  |  Branch (144:7): [True: 0, False: 17.1k]
  ------------------
  145|      0|    throw std::range_error("no such thing as an empty label to append");
  146|      0|  }
  147|  17.1k|  if (length > DNSName::s_maxDNSLabelLength) {
  ------------------
  |  Branch (147:7): [True: 0, False: 17.1k]
  ------------------
  148|      0|    throw std::range_error("label too long to append");
  149|      0|  }
  150|  17.1k|}

_Z11dns_tolowerh:
   58|    978|{
   59|    978|  return dns_tolower_table[chr];
   60|    978|}
_Z39pdns_ilexicographical_compare_three_wayNSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
   64|  10.1k|{
   65|  10.1k|  const unsigned char *aPtr = (const unsigned char*)a.data(), *bPtr = (const unsigned char*)b.data();
   66|  10.1k|  const unsigned char *aEptr = aPtr + a.length(), *bEptr = bPtr + b.length();
   67|  51.3k|  while(aPtr != aEptr && bPtr != bEptr) {
  ------------------
  |  Branch (67:9): [True: 41.7k, False: 9.65k]
  |  Branch (67:26): [True: 41.7k, False: 0]
  ------------------
   68|  41.7k|    if (*aPtr != *bPtr) {
  ------------------
  |  Branch (68:9): [True: 489, False: 41.2k]
  ------------------
   69|    489|      if (int rc = dns_tolower(*aPtr) - dns_tolower(*bPtr); rc != 0) {
  ------------------
  |  Branch (69:61): [True: 489, False: 0]
  ------------------
   70|    489|        return rc;
   71|    489|      }
   72|    489|    }
   73|  41.2k|    aPtr++;
   74|  41.2k|    bPtr++;
   75|  41.2k|  }
   76|       |  // At this point, one of the strings has been completely processed.
   77|       |  // Either both have the same length, and they are equal, or one of them
   78|       |  // is larger, and compares as higher.
   79|  9.65k|  if (aPtr == aEptr) {
  ------------------
  |  Branch (79:7): [True: 9.65k, False: 0]
  ------------------
   80|  9.65k|    if (bPtr != bEptr) {
  ------------------
  |  Branch (80:9): [True: 0, False: 9.65k]
  ------------------
   81|      0|      return -1; // a < b
   82|      0|    }
   83|  9.65k|  }
   84|      0|  else {
   85|      0|    return 1; // a > b
   86|      0|  }
   87|  9.65k|  return 0; // a == b
   88|  9.65k|}
_ZN7DNSNameaSERKS_:
  151|    561|  {
  152|    561|    if (this != &rhs) {
  ------------------
  |  Branch (152:9): [True: 561, False: 0]
  ------------------
  153|    561|      d_storage = rhs.d_storage;
  154|    561|    }
  155|    561|    return *this;
  156|    561|  }
_ZN7DNSNameaSEOS_:
  158|  25.6k|  {
  159|  25.6k|    if (this != &rhs) {
  ------------------
  |  Branch (159:9): [True: 25.6k, False: 0]
  ------------------
  160|  25.6k|      d_storage = std::move(rhs.d_storage);
  161|  25.6k|    }
  162|  25.6k|    return *this;
  163|  25.6k|  }
_ZNK7DNSName5emptyEv:
  210|  27.5k|  bool empty() const { return d_storage.empty(); }
_ZNK7DNSName6isRootEv:
  211|  24.8k|  bool isRoot() const { return d_storage.size()==1 && d_storage[0]==0; }
  ------------------
  |  Branch (211:32): [True: 12.2k, False: 12.5k]
  |  Branch (211:55): [True: 12.2k, False: 0]
  ------------------
_ZNK7DNSName10getStorageEv:
  261|  12.5k|  const string_t& getStorage() const {
  262|  12.5k|    return d_storage;
  263|  12.5k|  }
_ZNK7DNSNameeqERKS_:
  826|  6.27k|{
  827|  6.27k|  if (rhs.empty() != empty() || rhs.d_storage.size() != d_storage.size()) {
  ------------------
  |  Branch (827:7): [True: 0, False: 6.27k]
  |  Branch (827:33): [True: 6.27k, False: 0]
  ------------------
  828|  6.27k|    return false;
  829|  6.27k|  }
  830|       |
  831|      0|  const auto* us = d_storage.cbegin();
  832|      0|  const auto* p = rhs.d_storage.cbegin();
  833|      0|  for (; us != d_storage.cend() && p != rhs.d_storage.cend(); ++us, ++p) {
  ------------------
  |  Branch (833:10): [True: 0, False: 0]
  |  Branch (833:36): [True: 0, False: 0]
  ------------------
  834|      0|    if (dns_tolower(*p) != dns_tolower(*us)) {
  ------------------
  |  Branch (834:9): [True: 0, False: 0]
  ------------------
  835|      0|      return false;
  836|      0|    }
  837|      0|  }
  838|      0|  return true;
  839|      0|}
_ZN7DNSNameC2ERKS_:
  164|  5.86k|  DNSName(const DNSName& a) = default;
_ZN7DNSNameC2Ev:
  148|  26.5k|  DNSName() = default; //!< Constructs an *empty* DNSName, NOT the root!
_ZN7DNSNameC2EOS_:
  165|  7.35k|  DNSName(DNSName&& a) = default;

_ZN16DNSRecordContent4makeERK9DNSRecordR12PacketReadert:
  259|  9.04k|{
  260|       |  // For opcode UPDATE and where the DNSRecord is an answer record, we don't care about content, because this is
  261|       |  // not used within the prerequisite section of RFC2136, so - we can simply use unknownrecordcontent.
  262|       |  // For section 3.2.3, we do need content so we need to get it properly. But only for the correct QClasses.
  263|  9.04k|  if (oc == Opcode::Update && dr.d_place == DNSResourceRecord::ANSWER && dr.d_class != 1)
  ------------------
  |  Branch (263:7): [True: 0, False: 9.04k]
  |  Branch (263:31): [True: 0, False: 0]
  |  Branch (263:74): [True: 0, False: 0]
  ------------------
  264|      0|    return std::make_shared<UnknownRecordContent>(dr, pr);
  265|       |
  266|  9.04k|  uint16_t searchclass = (dr.d_type == QType::OPT) ? 1 : dr.d_class; // class is invalid for OPT
  ------------------
  |  Branch (266:26): [True: 530, False: 8.51k]
  ------------------
  267|       |
  268|  9.04k|  auto i = getTypemap().find(pair(searchclass, dr.d_type));
  269|  9.04k|  if(i==getTypemap().end() || !i->second) {
  ------------------
  |  Branch (269:6): [True: 1.66k, False: 7.38k]
  |  Branch (269:6): [True: 1.66k, False: 7.38k]
  |  Branch (269:31): [True: 0, False: 7.38k]
  ------------------
  270|  1.66k|    return std::make_shared<UnknownRecordContent>(dr, pr);
  271|  1.66k|  }
  272|       |
  273|  7.38k|  return i->second(dr, pr);
  274|  9.04k|}
_ZN16DNSRecordContent10getTypemapEv:
  284|  18.1k|{
  285|  18.1k|  static DNSRecordContent::typemap_t typemap;
  286|  18.1k|  return typemap;
  287|  18.1k|}
_ZN16DNSRecordContent12getN2TypemapEv:
  290|    118|{
  291|    118|  static DNSRecordContent::n2typemap_t n2typemap;
  292|    118|  return n2typemap;
  293|    118|}
_ZN16DNSRecordContent12getT2NamemapEv:
  296|    118|{
  297|    118|  static DNSRecordContent::t2namemap_t t2namemap;
  298|    118|  return t2namemap;
  299|    118|}
_ZN16DNSRecordContent12getZmakermapEv:
  302|    115|{
  303|    115|  static DNSRecordContent::zmakermap_t zmakermap;
  304|    115|  return zmakermap;
  305|    115|}
_ZN12MOADNSParser4initEbRKNSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEm:
  336|  4.14k|{
  337|  4.14k|  if (packet.size() < sizeof(dnsheader))
  ------------------
  |  Branch (337:7): [True: 0, False: 4.14k]
  ------------------
  338|      0|    throw MOADNSException("Packet shorter than minimal header");
  339|       |
  340|  4.14k|  memcpy(&d_header, packet.data(), sizeof(dnsheader));
  341|       |
  342|  4.14k|  if(d_header.opcode != Opcode::Query && d_header.opcode != Opcode::Notify && d_header.opcode != Opcode::Update)
  ------------------
  |  Branch (342:6): [True: 0, False: 4.14k]
  |  Branch (342:42): [True: 0, False: 0]
  |  Branch (342:79): [True: 0, False: 0]
  ------------------
  343|      0|    throw MOADNSException("Can't parse non-query packet with opcode="+ std::to_string(d_header.opcode));
  344|       |
  345|  4.14k|  d_header.qdcount=ntohs(d_header.qdcount);
  346|  4.14k|  d_header.ancount=ntohs(d_header.ancount);
  347|  4.14k|  d_header.nscount=ntohs(d_header.nscount);
  348|  4.14k|  d_header.arcount=ntohs(d_header.arcount);
  349|       |
  350|  4.14k|  if (query && (d_header.qdcount > 1))
  ------------------
  |  Branch (350:7): [True: 0, False: 4.14k]
  |  Branch (350:16): [True: 0, False: 0]
  ------------------
  351|      0|    throw MOADNSException("Query with QD > 1 ("+std::to_string(d_header.qdcount)+")");
  352|       |
  353|  4.14k|  unsigned int n=0;
  354|       |
  355|  4.14k|  PacketReader pr(packet);
  356|  4.14k|  if (pointerBudget != 0) {
  ------------------
  |  Branch (356:7): [True: 0, False: 4.14k]
  ------------------
  357|      0|    pr.setPointerBudget(pointerBudget);
  358|      0|  }
  359|  4.14k|  bool validPacket=false;
  360|  4.14k|  try {
  361|  4.14k|    d_qtype = d_qclass = 0; // sometimes replies come in with no question, don't present garbage then
  362|       |
  363|  8.29k|    for(n=0;n < d_header.qdcount; ++n) {
  ------------------
  |  Branch (363:13): [True: 4.14k, False: 4.14k]
  ------------------
  364|  4.14k|      d_qname=pr.getName();
  365|  4.14k|      d_qtype=pr.get16BitInt();
  366|  4.14k|      d_qclass=pr.get16BitInt();
  367|  4.14k|    }
  368|       |
  369|  4.14k|    struct dnsrecordheader ah;
  370|  4.14k|    vector<unsigned char> record;
  371|  4.14k|    bool seenTSIG = false;
  372|  4.14k|    validPacket=true;
  373|  4.14k|    unsigned int supposedRecordCount = d_header.ancount + d_header.nscount + d_header.arcount;
  374|       |    // No need to reserve more memory for more records than the request can
  375|       |    // contain. We could try to be smarter and actually count the records
  376|       |    // by doing getDnsrecordheader and skip the payload in a loop, but all
  377|       |    // we really want here is to avoid reserving too much memory in case of
  378|       |    // maliciously high record counts.
  379|  4.14k|    auto reserveRecordCount = std::min(1 + (packet.size() - sizeof(dnsheader)) / sizeof(dnsrecordheader), static_cast<size_t>(supposedRecordCount));
  380|  4.14k|    d_answers.reserve(reserveRecordCount);
  381|  13.1k|    for (n = 0; n < supposedRecordCount; ++n) {
  ------------------
  |  Branch (381:17): [True: 9.04k, False: 4.14k]
  ------------------
  382|  9.04k|      DNSRecord dr;
  383|       |
  384|  9.04k|      if(n < d_header.ancount)
  ------------------
  |  Branch (384:10): [True: 8.55k, False: 488]
  ------------------
  385|  8.55k|        dr.d_place=DNSResourceRecord::ANSWER;
  386|    488|      else if(n < d_header.ancount + d_header.nscount)
  ------------------
  |  Branch (386:15): [True: 0, False: 488]
  ------------------
  387|      0|        dr.d_place=DNSResourceRecord::AUTHORITY;
  388|    488|      else
  389|    488|        dr.d_place=DNSResourceRecord::ADDITIONAL;
  390|       |
  391|  9.04k|      unsigned int recordStartPos=pr.getPosition();
  392|       |
  393|  9.04k|      DNSName name=pr.getName();
  394|       |
  395|  9.04k|      pr.getDnsrecordheader(ah);
  396|  9.04k|      dr.d_ttl=ah.d_ttl;
  397|  9.04k|      dr.d_type=ah.d_type;
  398|  9.04k|      dr.d_class=ah.d_class;
  399|       |
  400|  9.04k|      dr.d_name = std::move(name);
  401|  9.04k|      dr.d_clen = ah.d_clen;
  402|       |
  403|  9.04k|      auto recordContentStartPos = pr.getPosition();
  404|       |
  405|  9.04k|      if (query &&
  ------------------
  |  Branch (405:11): [True: 0, False: 9.04k]
  ------------------
  406|      0|          !(d_qtype == QType::IXFR && dr.d_place == DNSResourceRecord::AUTHORITY && dr.d_type == QType::SOA) && // IXFR queries have a SOA in their AUTHORITY section
  ------------------
  |  Branch (406:13): [True: 0, False: 0]
  |  Branch (406:39): [True: 0, False: 0]
  |  Branch (406:85): [True: 0, False: 0]
  ------------------
  407|      0|          (dr.d_place == DNSResourceRecord::ANSWER || dr.d_place == DNSResourceRecord::AUTHORITY || (dr.d_type != QType::OPT && dr.d_type != QType::TSIG && dr.d_type != QType::SIG && dr.d_type != QType::TKEY) || ((dr.d_type == QType::TSIG || dr.d_type == QType::SIG || dr.d_type == QType::TKEY) && dr.d_class != QClass::ANY))) {
  ------------------
  |  Branch (407:12): [True: 0, False: 0]
  |  Branch (407:55): [True: 0, False: 0]
  |  Branch (407:102): [True: 0, False: 0]
  |  Branch (407:129): [True: 0, False: 0]
  |  Branch (407:157): [True: 0, False: 0]
  |  Branch (407:184): [True: 0, False: 0]
  |  Branch (407:215): [True: 0, False: 0]
  |  Branch (407:243): [True: 0, False: 0]
  |  Branch (407:270): [True: 0, False: 0]
  |  Branch (407:299): [True: 0, False: 0]
  ------------------
  408|       |//        cerr<<"discarding RR, query is "<<query<<", place is "<<dr.d_place<<", type is "<<dr.d_type<<", class is "<<dr.d_class<<endl;
  409|      0|        dr.setContent(std::make_shared<UnknownRecordContent>(dr, pr));
  410|      0|      }
  411|  9.04k|      else {
  412|       |//        cerr<<"parsing RR, query is "<<query<<", place is "<<dr.d_place<<", type is "<<dr.d_type<<", class is "<<dr.d_class<<endl;
  413|  9.04k|        dr.setContent(DNSRecordContent::make(dr, pr, d_header.opcode));
  414|  9.04k|      }
  415|       |
  416|  9.04k|      if (dr.d_place == DNSResourceRecord::ADDITIONAL && seenTSIG) {
  ------------------
  |  Branch (416:11): [True: 488, False: 8.55k]
  |  Branch (416:58): [True: 0, False: 488]
  ------------------
  417|      0|        throw MOADNSException("Packet ("+d_qname.toString()+"|#"+std::to_string(d_qtype)+") has an unexpected record ("+std::to_string(dr.d_type)+") after a TSIG one.");
  418|      0|      }
  419|       |
  420|  9.04k|      if(dr.d_type == QType::TSIG && dr.d_class == QClass::ANY) {
  ------------------
  |  Branch (420:10): [True: 26, False: 9.01k]
  |  Branch (420:38): [True: 0, False: 26]
  ------------------
  421|      0|        if(seenTSIG || dr.d_place != DNSResourceRecord::ADDITIONAL) {
  ------------------
  |  Branch (421:12): [True: 0, False: 0]
  |  Branch (421:24): [True: 0, False: 0]
  ------------------
  422|      0|          throw MOADNSException("Packet ("+d_qname.toLogString()+"|#"+std::to_string(d_qtype)+") has a TSIG record in an invalid position.");
  423|      0|        }
  424|      0|        seenTSIG = true;
  425|      0|        d_tsigPos = recordStartPos;
  426|      0|      }
  427|       |
  428|  9.04k|      if (pr.getPosition() != recordContentStartPos + ah.d_clen) {
  ------------------
  |  Branch (428:11): [True: 0, False: 9.04k]
  ------------------
  429|      0|        throw MOADNSException("Packet ("+d_qname.toLogString()+"|#"+std::to_string(d_qtype)+") has a record content that does not end on the record boundary");
  430|      0|      }
  431|       |
  432|  9.04k|      d_answers.emplace_back(std::move(dr));
  433|  9.04k|    }
  434|       |
  435|       |#if 0
  436|       |    if(pr.getPosition()!=packet.size()) {
  437|       |      throw MOADNSException("Packet ("+d_qname+"|#"+std::to_string(d_qtype)+") has trailing garbage ("+ std::to_string(pr.getPosition()) + " < " +
  438|       |                            std::to_string(packet.size()) + ")");
  439|       |    }
  440|       |#endif
  441|  4.14k|  }
  442|  4.14k|  catch(const std::out_of_range &re) {
  443|  1.20k|    if(validPacket && d_header.tc) { // don't sweat it over truncated packets, but do adjust an, ns and arcount
  ------------------
  |  Branch (443:8): [True: 1.20k, False: 0]
  |  Branch (443:23): [True: 0, False: 1.20k]
  ------------------
  444|      0|      if(n < d_header.ancount) {
  ------------------
  |  Branch (444:10): [True: 0, False: 0]
  ------------------
  445|      0|        d_header.ancount=n; d_header.nscount = d_header.arcount = 0;
  446|      0|      }
  447|      0|      else if(n < d_header.ancount + d_header.nscount) {
  ------------------
  |  Branch (447:15): [True: 0, False: 0]
  ------------------
  448|      0|        d_header.nscount = n - d_header.ancount; d_header.arcount=0;
  449|      0|      }
  450|      0|      else {
  451|      0|        d_header.arcount = n - d_header.ancount - d_header.nscount;
  452|      0|      }
  453|      0|    }
  454|  1.20k|    else {
  455|  1.20k|      throw MOADNSException("Error parsing packet of "+std::to_string(packet.size())+" bytes (rd="+
  456|  1.20k|                            std::to_string(d_header.rd)+
  457|  1.20k|                            "), out of bounds: "+string(re.what()));
  458|  1.20k|    }
  459|  1.20k|  }
  460|  4.14k|}
_ZN12PacketReader18getDnsrecordheaderER15dnsrecordheader:
  475|  9.04k|{
  476|  9.04k|  unsigned char *p = reinterpret_cast<unsigned char*>(&ah);
  477|       |
  478|  99.4k|  for(unsigned int n = 0; n < sizeof(dnsrecordheader); ++n) {
  ------------------
  |  Branch (478:27): [True: 90.4k, False: 9.04k]
  ------------------
  479|  90.4k|    p[n] = d_content.at(d_pos++);
  480|  90.4k|  }
  481|       |
  482|  9.04k|  ah.d_type = ntohs(ah.d_type);
  483|  9.04k|  ah.d_class = ntohs(ah.d_class);
  484|  9.04k|  ah.d_clen = ntohs(ah.d_clen);
  485|  9.04k|  ah.d_ttl = ntohl(ah.d_ttl);
  486|       |
  487|  9.04k|  d_startrecordpos = d_pos; // needed for getBlob later on
  488|  9.04k|  d_recordlen = ah.d_clen;
  489|  9.04k|  if (d_pos > d_content.size() || (d_content.size() - d_pos) < (d_recordlen)) {
  ------------------
  |  Branch (489:7): [True: 0, False: 9.04k]
  |  Branch (489:35): [True: 0, False: 9.04k]
  ------------------
  490|      0|    throw std::out_of_range("DNS record length (" + std::to_string(d_recordlen) + " starting at " + std::to_string(d_pos) + ") goes beyond the packet's content (" + std::to_string(d_content.size()) + ")");
  491|      0|  }
  492|  9.04k|}
_ZN12PacketReader10copyRecordERNSt3__16vectorIhNS0_9allocatorIhEEEEt:
  496|  1.66k|{
  497|  1.66k|  if (len == 0) {
  ------------------
  |  Branch (497:7): [True: 654, False: 1.00k]
  ------------------
  498|    654|    return;
  499|    654|  }
  500|  1.00k|  if ((d_pos + len) > d_content.size()) {
  ------------------
  |  Branch (500:7): [True: 0, False: 1.00k]
  ------------------
  501|      0|    throw std::out_of_range("Attempt to copy outside of packet");
  502|      0|  }
  503|  1.00k|  if (!isWithinRecordBoundaries(d_pos, d_pos + len)) {
  ------------------
  |  Branch (503:7): [True: 0, False: 1.00k]
  ------------------
  504|      0|    throw std::out_of_range("Attempt to copy outside of record");
  505|      0|  }
  506|       |
  507|  1.00k|  dest.resize(len);
  508|       |
  509|  3.32M|  for (uint16_t n = 0; n < len; ++n) {
  ------------------
  |  Branch (509:24): [True: 3.31M, False: 1.00k]
  ------------------
  510|  3.31M|    dest.at(n) = d_content.at(d_pos++);
  511|  3.31M|  }
  512|  1.00k|}
_ZN12PacketReader10copyRecordEPht:
  515|    122|{
  516|    122|  if (d_pos + len > d_content.size()) {
  ------------------
  |  Branch (516:7): [True: 0, False: 122]
  ------------------
  517|      0|    throw std::out_of_range("Attempt to copy outside of packet");
  518|      0|  }
  519|    122|  if (!isWithinRecordBoundaries(d_pos, d_pos + len)) {
  ------------------
  |  Branch (519:7): [True: 0, False: 122]
  ------------------
  520|      0|    throw std::out_of_range("Attempt to copy outside of record");
  521|      0|  }
  522|       |
  523|    122|  memcpy(dest, &d_content.at(d_pos), len);
  524|    122|  d_pos += len;
  525|    122|}
_ZN12PacketReader18xfrNodeOrLocatorIDER15NodeOrLocatorID:
  528|    129|{
  529|    129|  if (d_pos + sizeof(ret) > d_content.size()) {
  ------------------
  |  Branch (529:7): [True: 7, False: 122]
  ------------------
  530|      7|    throw std::out_of_range("Attempt to read 64 bit value outside of packet");
  531|      7|  }
  532|    122|  if (!isWithinRecordBoundaries(d_pos, d_pos + sizeof(ret))) {
  ------------------
  |  Branch (532:7): [True: 12, False: 110]
  ------------------
  533|     12|    throw std::out_of_range("Attempt to read node or locator ID outside of record");
  534|     12|  }
  535|       |
  536|    110|  memcpy(&ret.content, &d_content.at(d_pos), sizeof(ret.content));
  537|    110|  d_pos += sizeof(ret);
  538|    110|}
_ZN12PacketReader11get32BitIntEv:
  560|  1.53k|{
  561|  1.53k|  uint32_t ret=0;
  562|  1.53k|  if (!isWithinRecordBoundaries(d_pos, d_pos + sizeof(ret))) {
  ------------------
  |  Branch (562:7): [True: 91, False: 1.44k]
  ------------------
  563|     91|    throw std::out_of_range("Attempt to read 32 bit value outside of record");
  564|     91|  }
  565|  1.44k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  566|  1.44k|  ret<<=8;
  567|  1.44k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  568|  1.44k|  ret<<=8;
  569|  1.44k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  570|  1.44k|  ret<<=8;
  571|  1.44k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  572|       |
  573|  1.44k|  return ret;
  574|  1.53k|}
_ZN12PacketReader11get16BitIntEv:
  578|   237k|{
  579|   237k|  uint16_t ret=0;
  580|   237k|  if (!isWithinRecordBoundaries(d_pos, d_pos + sizeof(ret))) {
  ------------------
  |  Branch (580:7): [True: 254, False: 237k]
  ------------------
  581|    254|    throw std::out_of_range("Attempt to read 16 bit value outside of record");
  582|    254|  }
  583|   237k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  584|   237k|  ret<<=8;
  585|   237k|  ret+=static_cast<uint8_t>(d_content.at(d_pos++));
  586|       |
  587|   237k|  return ret;
  588|   237k|}
_ZN12PacketReader10get8BitIntEv:
  591|  74.3k|{
  592|  74.3k|  if (!isWithinRecordBoundaries(d_pos, d_pos + sizeof(uint8_t))) {
  ------------------
  |  Branch (592:7): [True: 123, False: 74.2k]
  ------------------
  593|    123|    throw std::out_of_range("Attempt to read 8 bit value outside of record");
  594|    123|  }
  595|  74.2k|  return d_content.at(d_pos++);
  596|  74.3k|}
_ZN12PacketReader7getNameEv:
  599|  16.5k|{
  600|  16.5k|  unsigned int consumed{0};
  601|  16.5k|  const auto initialPosition = d_pos;
  602|  16.5k|  try {
  603|  16.5k|    uint16_t minOffset = d_standalone ? 0 : sizeof(dnsheader);
  ------------------
  |  Branch (603:26): [True: 0, False: 16.5k]
  ------------------
  604|  16.5k|    bool uncompress = !d_standalone;
  605|       |
  606|  16.5k|    DNSName name((const char*) d_content.data(), d_content.size(), d_pos, uncompress, nullptr /* qtype */, nullptr /* qclass */, &consumed, minOffset, &d_pointerBudget);
  607|       |
  608|  16.5k|    d_pos += consumed;
  609|       |    // if we know the length of the record, and we were parsing a DNS name inside the record contents
  610|       |    // (not the owner name, in which case d_startrecordpos and d_recordlen still refer to the content of the previous record),
  611|       |    // check that we did not go over the record boundary
  612|  16.5k|    if (!isWithinRecordBoundaries(initialPosition, d_pos, true)) {
  ------------------
  |  Branch (612:9): [True: 19, False: 16.5k]
  ------------------
  613|     19|      throw std::out_of_range("Attempt to read DNS name outside of record");
  614|     19|    }
  615|  16.5k|    return name;
  616|  16.5k|  }
  617|  16.5k|  catch(const std::range_error& re) {
  618|    171|    throw std::out_of_range(string("dnsname issue: ")+re.what());
  619|    171|  }
  620|  16.5k|  catch(...) {
  621|     19|    throw std::out_of_range("dnsname issue");
  622|     19|  }
  623|  16.5k|}
_Z9txtEscapeRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  627|  22.5k|{
  628|  22.5k|  string ret;
  629|  22.5k|  ret.reserve(name.length()); // In the typical case no escaping is needed
  630|  22.5k|  std::array<char, 5> ebuf{};
  631|       |
  632|   824k|  for (char letter : name) {
  ------------------
  |  Branch (632:20): [True: 824k, False: 22.5k]
  ------------------
  633|   824k|    const unsigned uch = static_cast<unsigned char>(letter);
  634|   824k|    if (uch >= 127 || uch < 32) {
  ------------------
  |  Branch (634:9): [True: 169k, False: 654k]
  |  Branch (634:23): [True: 525k, False: 129k]
  ------------------
  635|   694k|      snprintf(ebuf.data(), ebuf.size(), "\\%03u", uch);
  636|   694k|      ret += ebuf.data();
  637|   694k|    }
  638|   129k|    else if (letter == '"' || letter == '\\'){
  ------------------
  |  Branch (638:14): [True: 1.74k, False: 127k]
  |  Branch (638:31): [True: 1.05k, False: 126k]
  ------------------
  639|  2.79k|      ret += '\\';
  640|  2.79k|      ret += letter;
  641|  2.79k|    }
  642|   126k|    else {
  643|   126k|      ret += letter;
  644|   126k|    }
  645|   824k|  }
  646|  22.5k|  return ret;
  647|  22.5k|}
_ZN12PacketReader7getTextEbb:
  651|    830|{
  652|    830|  string ret;
  653|    830|  ret.reserve(40);
  654|   147k|  while (d_pos < d_startrecordpos + d_recordlen ) {
  ------------------
  |  Branch (654:10): [True: 147k, False: 565]
  ------------------
  655|   147k|    if (!ret.empty()) {
  ------------------
  |  Branch (655:9): [True: 146k, False: 567]
  ------------------
  656|   146k|      ret.append(1,' ');
  657|   146k|    }
  658|   147k|    uint16_t labellen;
  659|   147k|    if (lenField) {
  ------------------
  |  Branch (659:9): [True: 147k, False: 168]
  ------------------
  660|   147k|      labellen = static_cast<uint8_t>(d_content.at(d_pos++));
  661|   147k|    }
  662|    168|    else {
  663|    168|      labellen = d_recordlen - (d_pos - d_startrecordpos);
  664|    168|    }
  665|       |
  666|   147k|    const uint16_t remaining = (d_startrecordpos + d_recordlen) - d_pos;
  667|   147k|    if (labellen > remaining) {
  ------------------
  |  Branch (667:9): [True: 54, False: 147k]
  ------------------
  668|     54|      throw std::out_of_range("label length in text record exceeds record boundary");
  669|     54|    }
  670|       |
  671|   147k|    ret.append(1, '"');
  672|   147k|    if (labellen) { // no need to do anything for an empty string
  ------------------
  |  Branch (672:9): [True: 22.5k, False: 124k]
  ------------------
  673|  22.5k|      string val(&d_content.at(d_pos), &d_content.at(d_pos + labellen - 1) + 1);
  674|  22.5k|      ret.append(txtEscape(val)); // the end is one beyond the packet
  675|  22.5k|    }
  676|   147k|    ret.append(1, '"');
  677|   147k|    d_pos += labellen;
  678|   147k|    if (!multi) {
  ------------------
  |  Branch (678:9): [True: 211, False: 147k]
  ------------------
  679|    211|      break;
  680|    211|    }
  681|   147k|  }
  682|       |
  683|    776|  if (ret.empty() && !lenField) {
  ------------------
  |  Branch (683:7): [True: 263, False: 513]
  |  Branch (683:22): [True: 84, False: 179]
  ------------------
  684|       |    // all lenField == false cases (CAA and URI at the time of this writing) want that emptiness to be explicit
  685|     84|    return "\"\"";
  686|     84|  }
  687|    692|  return ret;
  688|    776|}
_ZN12PacketReader15getUnquotedTextEbRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  691|    336|{
  692|    336|  uint16_t stop_at{};
  693|    336|  if (lenField) {
  ------------------
  |  Branch (693:7): [True: 336, False: 0]
  ------------------
  694|    336|    stop_at = static_cast<uint8_t>(d_content.at(d_pos)) + d_pos + 1;
  695|    336|    d_pos++; // d_pos now points at the start of the text
  696|    336|  }
  697|      0|  else {
  698|      0|    stop_at = d_recordlen;
  699|      0|  }
  700|       |
  701|       |  /* think unsigned overflow */
  702|    336|  if (stop_at < d_pos) {
  ------------------
  |  Branch (702:7): [True: 1, False: 335]
  ------------------
  703|      1|    throw std::out_of_range("getUnquotedText out of record range");
  704|      1|  }
  705|       |
  706|       |  /* Validate against record boundary */
  707|    335|  const uint16_t recordEnd = d_startrecordpos + d_recordlen;
  708|    335|  if (stop_at > recordEnd) {
  ------------------
  |  Branch (708:7): [True: 24, False: 311]
  ------------------
  709|     24|    throw std::out_of_range("getUnquotedText: length exceeds record boundary");
  710|     24|  }
  711|       |
  712|    311|  if (stop_at == d_pos) {
  ------------------
  |  Branch (712:7): [True: 128, False: 183]
  ------------------
  713|    128|    return "";
  714|    128|  }
  715|       |
  716|    183|  string ret(d_content.substr(d_pos, stop_at-d_pos));
  717|    183|  if (!validChars.empty() && ret.find_first_not_of(validChars) != string::npos) {
  ------------------
  |  Branch (717:7): [True: 179, False: 4]
  |  Branch (717:30): [True: 143, False: 36]
  ------------------
  718|    143|    throw std::out_of_range("getUnquotedText: invalid character found in record content");
  719|    143|  }
  720|     40|  d_pos = stop_at;
  721|     40|  return ret;
  722|    183|}
_ZN12PacketReader7xfrBlobERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  725|  2.26k|{
  726|  2.26k|  try {
  727|  2.26k|    if (d_recordlen != 0 && !(d_pos == (d_startrecordpos + d_recordlen))) {
  ------------------
  |  Branch (727:9): [True: 1.94k, False: 312]
  |  Branch (727:29): [True: 1.52k, False: 424]
  ------------------
  728|  1.52k|      if (d_pos > (d_startrecordpos + d_recordlen)) {
  ------------------
  |  Branch (728:11): [True: 2, False: 1.52k]
  ------------------
  729|      2|        throw std::out_of_range("xfrBlob out of record range");
  730|      2|      }
  731|  1.52k|      blob.assign(&d_content.at(d_pos), &d_content.at(d_startrecordpos + d_recordlen - 1 ) + 1);
  732|  1.52k|    }
  733|    736|    else {
  734|    736|      blob.clear();
  735|    736|    }
  736|       |
  737|  2.25k|    d_pos = d_startrecordpos + d_recordlen;
  738|  2.25k|  }
  739|  2.26k|  catch(...)
  740|  2.26k|  {
  741|      2|    throw std::out_of_range("xfrBlob out of range");
  742|      2|  }
  743|  2.26k|}
_ZN12PacketReader15xfrBlobNoSpacesERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi:
  745|     34|void PacketReader::xfrBlobNoSpaces(string& blob, int length) {
  746|     34|  xfrBlob(blob, length);
  747|     34|}
_ZN12PacketReader7xfrBlobERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi:
  750|  63.2k|{
  751|  63.2k|  if(length) {
  ------------------
  |  Branch (751:6): [True: 62.7k, False: 544]
  ------------------
  752|  62.7k|    if (length < 0) {
  ------------------
  |  Branch (752:9): [True: 0, False: 62.7k]
  ------------------
  753|      0|      throw std::out_of_range("xfrBlob out of range (negative length)");
  754|      0|    }
  755|  62.7k|    auto available = (d_startrecordpos + d_recordlen) - d_pos;
  756|  62.7k|    if (available < length) {
  ------------------
  |  Branch (756:9): [True: 24, False: 62.6k]
  ------------------
  757|     24|      throw std::out_of_range("xfrBlob out of range (excessive length)");
  758|     24|    }
  759|       |
  760|  62.6k|    blob.assign(&d_content.at(d_pos), &d_content.at(d_pos + length - 1 ) + 1 );
  761|       |
  762|  62.6k|    d_pos += length;
  763|  62.6k|  }
  764|    544|  else {
  765|    544|    blob.clear();
  766|    544|  }
  767|  63.2k|}
_ZN12PacketReader18xfrSvcParamKeyValsERNSt3__13setI8SvcParamNS0_4lessIS2_EENS0_9allocatorIS2_EEEE:
  769|    901|void PacketReader::xfrSvcParamKeyVals(set<SvcParam> &kvs) {
  770|    901|  int32_t lastKey{-1}; // Keep track of the last key, as ordering should be strict
  771|       |
  772|  1.96k|  while (d_pos < (d_startrecordpos + d_recordlen)) {
  ------------------
  |  Branch (772:10): [True: 1.31k, False: 653]
  ------------------
  773|  1.31k|    if (d_pos + 2 > (d_startrecordpos + d_recordlen)) {
  ------------------
  |  Branch (773:9): [True: 13, False: 1.30k]
  ------------------
  774|     13|      throw std::out_of_range("incomplete key");
  775|     13|    }
  776|  1.30k|    uint16_t keyInt;
  777|  1.30k|    xfr16BitInt(keyInt);
  778|       |
  779|  1.30k|    if (keyInt <= lastKey) {
  ------------------
  |  Branch (779:9): [True: 47, False: 1.25k]
  ------------------
  780|     47|      throw std::out_of_range("Found SVCParamKey " + std::to_string(keyInt) + " after SVCParamKey " + std::to_string(lastKey));
  781|     47|    }
  782|  1.25k|    lastKey = keyInt;
  783|       |
  784|       |    // NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange): this is fine, we will handle that in the switch/case
  785|  1.25k|    auto key = static_cast<SvcParam::SvcParamKey>(keyInt);
  786|       |
  787|  1.25k|    uint16_t len;
  788|  1.25k|    xfr16BitInt(len);
  789|       |
  790|  1.25k|    if (d_pos + len > (d_startrecordpos + d_recordlen)) {
  ------------------
  |  Branch (790:9): [True: 67, False: 1.18k]
  ------------------
  791|     67|      throw std::out_of_range("record is shorter than SVCB lengthfield implies");
  792|     67|    }
  793|       |
  794|  1.18k|    switch (key)
  795|  1.18k|    {
  796|    164|    case SvcParam::mandatory: {
  ------------------
  |  Branch (796:5): [True: 164, False: 1.02k]
  ------------------
  797|    164|      if (len % 2 != 0) {
  ------------------
  |  Branch (797:11): [True: 1, False: 163]
  ------------------
  798|      1|        throw std::out_of_range("mandatory SvcParam has invalid length");
  799|      1|      }
  800|    163|      if (len == 0) {
  ------------------
  |  Branch (800:11): [True: 4, False: 159]
  ------------------
  801|      4|        throw std::out_of_range("empty 'mandatory' values");
  802|      4|      }
  803|    159|      std::set<SvcParam::SvcParamKey> paramKeys;
  804|    159|      size_t stop = d_pos + len;
  805|   155k|      while (d_pos < stop) {
  ------------------
  |  Branch (805:14): [True: 155k, False: 159]
  ------------------
  806|   155k|        uint16_t keyval;
  807|   155k|        xfr16BitInt(keyval);
  808|   155k|        paramKeys.insert(static_cast<SvcParam::SvcParamKey>(keyval));
  809|   155k|      }
  810|    159|      kvs.insert(SvcParam(key, std::move(paramKeys)));
  811|    159|      break;
  812|    163|    }
  813|    145|    case SvcParam::alpn: [[fallthrough]];
  ------------------
  |  Branch (813:5): [True: 145, False: 1.04k]
  ------------------
  814|    183|    case SvcParam::docpath: {
  ------------------
  |  Branch (814:5): [True: 38, False: 1.14k]
  ------------------
  815|    183|      size_t stop = d_pos + len;
  816|    183|      std::vector<string> alpns;
  817|  16.3k|      while (d_pos < stop) {
  ------------------
  |  Branch (817:14): [True: 16.2k, False: 115]
  ------------------
  818|  16.2k|        string alpn;
  819|  16.2k|        uint8_t alpnLen = 0;
  820|  16.2k|        xfr8BitInt(alpnLen);
  821|  16.2k|        if (alpnLen == 0) {
  ------------------
  |  Branch (821:13): [True: 20, False: 16.1k]
  ------------------
  822|     20|          throw std::out_of_range("alpn length of 0");
  823|     20|        }
  824|  16.1k|        if (d_pos + alpnLen > stop) {
  ------------------
  |  Branch (824:13): [True: 48, False: 16.1k]
  ------------------
  825|     48|          throw std::out_of_range("alpn length is larger than rest of alpn SVC Param");
  826|     48|        }
  827|  16.1k|        xfrBlob(alpn, alpnLen);
  828|  16.1k|        alpns.push_back(std::move(alpn));
  829|  16.1k|      }
  830|    115|      kvs.insert(SvcParam(key, std::move(alpns)));
  831|    115|      break;
  832|    183|    }
  833|     22|    case SvcParam::no_default_alpn: [[fallthrough]];
  ------------------
  |  Branch (833:5): [True: 22, False: 1.16k]
  ------------------
  834|     42|    case SvcParam::ohttp: [[fallthrough]];
  ------------------
  |  Branch (834:5): [True: 20, False: 1.16k]
  ------------------
  835|     67|    case SvcParam::pvd: {
  ------------------
  |  Branch (835:5): [True: 25, False: 1.16k]
  ------------------
  836|     67|      if (len != 0) {
  ------------------
  |  Branch (836:11): [True: 2, False: 65]
  ------------------
  837|      2|        throw std::out_of_range("invalid length for " + SvcParam::keyToString(key));
  838|      2|      }
  839|     65|      kvs.insert(SvcParam(key));
  840|     65|      break;
  841|     67|    }
  842|     14|    case SvcParam::port: {
  ------------------
  |  Branch (842:5): [True: 14, False: 1.17k]
  ------------------
  843|     14|      if (len != 2) {
  ------------------
  |  Branch (843:11): [True: 1, False: 13]
  ------------------
  844|      1|        throw std::out_of_range("invalid length for port");
  845|      1|      }
  846|     13|      uint16_t port;
  847|     13|      xfr16BitInt(port);
  848|     13|      kvs.insert(SvcParam(key, port));
  849|     13|      break;
  850|     14|    }
  851|    122|    case SvcParam::ipv4hint:
  ------------------
  |  Branch (851:5): [True: 122, False: 1.06k]
  ------------------
  852|    161|    case SvcParam::ipv6hint: {
  ------------------
  |  Branch (852:5): [True: 39, False: 1.14k]
  ------------------
  853|    161|      size_t addrLen = (key == SvcParam::ipv4hint ? 4 : 16);
  ------------------
  |  Branch (853:25): [True: 122, False: 39]
  ------------------
  854|    161|      if (len % addrLen != 0) {
  ------------------
  |  Branch (854:11): [True: 2, False: 159]
  ------------------
  855|      2|        throw std::out_of_range("invalid length for " + SvcParam::keyToString(key));
  856|      2|      }
  857|    159|      vector<ComboAddress> addresses;
  858|    159|      auto stop = d_pos + len;
  859|  46.4k|      while (d_pos < stop)
  ------------------
  |  Branch (859:14): [True: 46.3k, False: 159]
  ------------------
  860|  46.3k|      {
  861|  46.3k|        ComboAddress addr;
  862|  46.3k|        xfrCAWithoutPort(key, addr);
  863|  46.3k|        addresses.push_back(addr);
  864|  46.3k|      }
  865|       |      // If there were no addresses, and the input comes from internal
  866|       |      // representation, we can reasonably assume this is the serialization
  867|       |      // of "auto".
  868|    159|      bool doAuto{d_internal && len == 0};
  ------------------
  |  Branch (868:19): [True: 0, False: 159]
  |  Branch (868:33): [True: 0, False: 0]
  ------------------
  869|    159|      auto param = SvcParam(key, std::move(addresses));
  870|    159|      param.setAutoHint(doAuto);
  871|    159|      kvs.insert(std::move(param));
  872|    159|      break;
  873|    161|    }
  874|     34|    case SvcParam::ech: {
  ------------------
  |  Branch (874:5): [True: 34, False: 1.15k]
  ------------------
  875|     34|      std::string blob;
  876|     34|      blob.reserve(len);
  877|     34|      xfrBlobNoSpaces(blob, len);
  878|     34|      kvs.insert(SvcParam(key, blob));
  879|     34|      break;
  880|    161|    }
  881|     99|    case SvcParam::tls_supported_groups: {
  ------------------
  |  Branch (881:5): [True: 99, False: 1.08k]
  ------------------
  882|     99|      if (len % 2 != 0) {
  ------------------
  |  Branch (882:11): [True: 1, False: 98]
  ------------------
  883|      1|        throw std::out_of_range("invalid length for " + SvcParam::keyToString(key));
  884|      1|      }
  885|     98|      vector<uint16_t> groups;
  886|     98|      groups.reserve(len / 2);
  887|     98|      auto stop = d_pos + len;
  888|  46.5k|      while (d_pos < stop)
  ------------------
  |  Branch (888:14): [True: 46.4k, False: 98]
  ------------------
  889|  46.4k|      {
  890|  46.4k|        uint16_t group = 0;
  891|  46.4k|        xfr16BitInt(group);
  892|  46.4k|        groups.push_back(group);
  893|  46.4k|      }
  894|     98|      auto param = SvcParam(key, std::move(groups));
  895|     98|      kvs.insert(std::move(param));
  896|     98|      break;
  897|     99|    }
  898|    422|    default: {
  ------------------
  |  Branch (898:5): [True: 422, False: 764]
  ------------------
  899|    422|      std::string blob;
  900|    422|      blob.reserve(len);
  901|    422|      xfrBlob(blob, len);
  902|    422|      kvs.insert(SvcParam(key, blob));
  903|    422|      break;
  904|     99|    }
  905|  1.18k|    }
  906|  1.18k|  }
  907|    901|}
_ZN12PacketReader10xfrHexBlobERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEb:
  911|    398|{
  912|    398|  xfrBlob(blob);
  913|    398|}

_ZN9DNSRecordC2Ev:
  383|  9.04k|    d_class(QClass::IN)
  384|  9.04k|  {}
_ZN15MOADNSExceptionC2ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
   61|  1.69k|  MOADNSException(const string& str) : runtime_error(str)
   62|  1.69k|  {}
_ZN16DNSRecordContentD2Ev:
  273|  8.99k|  virtual ~DNSRecordContent() = default;
_ZN12PacketReaderC2ERKNSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEtbb:
   72|  4.14k|    : d_pos(initialPos), d_startrecordpos(initialPos), d_internal(internalRepresentation), d_standalone(standalone), d_content(content)
   73|  4.14k|  {
   74|  4.14k|    if (content.size() > std::numeric_limits<uint16_t>::max()) {
  ------------------
  |  Branch (74:9): [True: 0, False: 4.14k]
  ------------------
   75|      0|      throw std::out_of_range("packet too large");
   76|      0|    }
   77|       |
   78|  4.14k|    d_recordlen = static_cast<uint16_t>(content.size());
   79|  4.14k|    d_pointerBudget = static_cast<size_t>(d_recordlen) * s_MaxPointersPerByte;
   80|  4.14k|  }
_ZNK12PacketReader11getPositionEv:
  212|  25.4k|  {
  213|  25.4k|    return d_pos;
  214|  25.4k|  }
_ZN9DNSRecord10setContentEONSt3__110shared_ptrIK16DNSRecordContentEE:
  439|  7.35k|  {
  440|  7.35k|    d_content = std::move(content);
  441|  7.35k|  }
_ZNK12PacketReader24isWithinRecordBoundariesEmmb:
  234|   331k|  {
  235|   331k|    if (initialPosition > endPosition) {
  ------------------
  |  Branch (235:9): [True: 0, False: 331k]
  ------------------
  236|      0|      return false;
  237|      0|    }
  238|   331k|    if (canBeOutsideRecordContent && d_recordlen == 0) {
  ------------------
  |  Branch (238:9): [True: 16.3k, False: 314k]
  |  Branch (238:38): [True: 1.67k, False: 14.6k]
  ------------------
  239|       |      // we don't know the record's length, nothing to check
  240|  1.67k|      return true;
  241|  1.67k|    }
  242|   329k|    const size_t endOfRecordContent = d_startrecordpos + d_recordlen;
  243|   329k|    if (canBeOutsideRecordContent && initialPosition >= endOfRecordContent) {
  ------------------
  |  Branch (243:9): [True: 14.6k, False: 314k]
  |  Branch (243:38): [True: 3.62k, False: 11.0k]
  ------------------
  244|       |      // our initial position is after the last known record content,
  245|       |      // we are probably parsing the owner name of the next record,
  246|       |      // nothing to check
  247|  3.62k|      return true;
  248|  3.62k|    }
  249|       |    // are we still inside the record's content?
  250|   325k|    return initialPosition >= d_startrecordpos && initialPosition <= endOfRecordContent && endPosition <= endOfRecordContent;
  ------------------
  |  Branch (250:12): [True: 325k, False: 0]
  |  Branch (250:51): [True: 325k, False: 25]
  |  Branch (250:92): [True: 325k, False: 474]
  ------------------
  251|   329k|  }
_ZN12PacketReader11xfr16BitIntERt:
  131|   229k|  {
  132|   229k|    val=get16BitInt();
  133|   229k|  }
_ZN12PacketReader10xfr8BitIntERh:
  142|  74.3k|  {
  143|  74.3k|    val=get8BitInt();
  144|  74.3k|  }
_ZN12PacketReader16xfrCAWithoutPortEhR12ComboAddress:
  110|  46.3k|  void xfrCAWithoutPort(uint8_t version, ComboAddress &val) {
  111|  46.3k|    string blob;
  112|  46.3k|    if (version == 4) xfrBlob(blob, 4);
  ------------------
  |  Branch (112:9): [True: 45.8k, False: 519]
  ------------------
  113|    519|    else if (version == 6) xfrBlob(blob, 16);
  ------------------
  |  Branch (113:14): [True: 519, False: 0]
  ------------------
  114|      0|    else throw runtime_error("invalid IP protocol");
  115|  46.3k|    val = makeComboAddressFromRaw(version, blob);
  116|  46.3k|  }
_ZN20UnknownRecordContentC2ERK9DNSRecordR12PacketReader:
  537|  1.66k|    : d_dr(dr)
  538|  1.66k|  {
  539|  1.66k|    pr.copyRecord(d_record, dr.d_clen);
  540|  1.66k|  }
_ZN12PacketReader11xfr32BitIntERj:
   96|  1.53k|  {
   97|  1.53k|    val=get32BitInt();
   98|  1.53k|  }
_ZN12PacketReader5xfrIPERj:
  101|     71|  {
  102|     71|    xfr32BitInt(val);
  103|       |    val=htonl(val);
  104|     71|  }
_ZN12PacketReader6xfrIP6ERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  106|     53|  void xfrIP6(std::string &val) {
  107|     53|    xfrBlob(val, 16);
  108|     53|  }
_ZN12PacketReader7xfrTimeERj:
  125|    124|  {
  126|    124|    xfr32BitInt(val);
  127|    124|  }
_ZN12PacketReader7xfrTypeERt:
  136|     71|  {
  137|     71|    xfr16BitInt(val);
  138|     71|  }
_ZN12PacketReader7xfrNameER7DNSNameb:
  147|  3.33k|  {
  148|  3.33k|    name = getName();
  149|  3.33k|  }
_ZN12PacketReader7xfrTextERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbb:
  152|    830|  {
  153|    830|    text=getText(multi, lenField);
  154|    830|  }
_ZN12PacketReader15xfrUnquotedTextERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbRKS6_:
  163|    336|  void xfrUnquotedText(string &text, bool lenField, const std::string& validChars=""){
  164|    336|    text=getUnquotedText(lenField, validChars);
  165|    336|  }
_ZNK12PacketReader3eofEv:
  185|  5.88k|  {
  186|  5.88k|    const auto endOfRecordContent = d_startrecordpos + d_recordlen;
  187|  5.88k|    if (d_pos > endOfRecordContent) {
  ------------------
  |  Branch (187:9): [True: 69, False: 5.81k]
  ------------------
  188|     69|      throw std::out_of_range("Looking for EOF in PacketReader but we are already beyond the record content's end (" + std::to_string(d_pos) + " while the record content starts at " + std::to_string(d_startrecordpos) + " with a size of " + std::to_string(d_recordlen) + ")");
  189|     69|    }
  190|  5.81k|    return d_pos == endOfRecordContent;
  191|  5.88k|  }
_ZNK12PacketReader12getRemainingEv:
  195|    198|  [[nodiscard]] std::string getRemaining() const {
  196|    198|    return "Remaining data from PacketReader, current position " + std::to_string(d_pos) + " in packet of size " + std::to_string(d_content.size()) + ", end of record expected at " + std::to_string(d_startrecordpos + d_recordlen) + ": " + makeHexDump(std::string(d_content.begin() + d_pos, d_content.begin() + d_startrecordpos + d_recordlen));
  197|    198|  };
_ZN12PacketReader16consumeRemainingEv:
  206|    972|  {
  207|    972|    d_pos = (d_startrecordpos + d_recordlen);
  208|    972|  }
_ZN16DNSRecordContent13doRecordCheckERK9DNSRecord:
  310|  5.87k|  void doRecordCheck(const struct DNSRecord&){}
_ZN16DNSRecordContent6registEttPFNSt3__110shared_ptrIS_EERK9DNSRecordR12PacketReaderEPFS2_RKNS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEEPKc:
  316|    118|  {
  317|    118|    assert(!d_locked.load()); // NOLINT: it's the API
  ------------------
  |  Branch (317:5): [True: 118, False: 0]
  ------------------
  318|    118|    if(f)
  ------------------
  |  Branch (318:8): [True: 115, False: 3]
  ------------------
  319|    115|      getTypemap()[pair(cl,ty)]=f;
  320|    118|    if(z)
  ------------------
  |  Branch (320:8): [True: 115, False: 3]
  ------------------
  321|    115|      getZmakermap()[pair(cl,ty)]=z;
  322|       |
  323|    118|    getT2Namemap().emplace(pair(cl, ty), name);
  324|    118|    getN2Typemap().emplace(name, pair(cl, ty));
  325|    118|  }
_ZN16DNSRecordContent4lockEv:
  362|      1|  {
  363|      1|    d_locked.store(true);
  364|      1|  }
_ZN12MOADNSParserC2EbPKcjm:
  577|  4.14k|  MOADNSParser(bool query, const char *packet, unsigned int len, size_t pointerBudget = 0) : d_tsigPos(0)
  578|  4.14k|  {
  579|  4.14k|    init(query, std::string_view(packet, len), pointerBudget);
  580|  4.14k|  }

_ZN14ARecordContent13doRecordCheckERK9DNSRecord:
  141|     56|{
  142|     56|  if(dr.d_clen!=4)
  ------------------
  |  Branch (142:6): [True: 25, False: 31]
  ------------------
  143|     25|    throw MOADNSException("Wrong size for A record ("+std::to_string(dr.d_clen)+")");
  144|     56|}
_ZN19DNSKEYRecordContentC2Ev:
  463|     82|DNSKEYRecordContent::DNSKEYRecordContent() = default;
_ZN18EUI48RecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  500|      1|{
  501|      1|  regist(1, QType::EUI48, &make, &make, "EUI48");
  502|      1|}
_ZN18EUI48RecordContent4makeERK9DNSRecordR12PacketReader:
  504|    108|{
  505|    108|    if(dr.d_clen!=6)
  ------------------
  |  Branch (505:8): [True: 22, False: 86]
  ------------------
  506|     22|      throw MOADNSException("Wrong size for EUI48 record");
  507|       |
  508|     86|    auto ret=std::make_shared<EUI48RecordContent>();
  509|     86|    pr.copyRecord((uint8_t*) &ret->d_eui48, 6);
  510|     86|    if (!pr.eof()) {
  ------------------
  |  Branch (510:9): [True: 0, False: 86]
  ------------------
  511|      0|      throw MOADNSException("When parsing EUI48 trailing data was not parsed: '" + pr.getRemaining() + "'");
  512|      0|    }
  513|     86|    return ret;
  514|     86|}
_ZN18EUI64RecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  547|      1|{
  548|      1|  regist(1, QType::EUI64, &make, &make, "EUI64");
  549|      1|}
_ZN18EUI64RecordContent4makeERK9DNSRecordR12PacketReader:
  551|     58|{
  552|     58|    if(dr.d_clen!=8)
  ------------------
  |  Branch (552:8): [True: 22, False: 36]
  ------------------
  553|     22|      throw MOADNSException("Wrong size for EUI64 record");
  554|       |
  555|     36|    auto ret=std::make_shared<EUI64RecordContent>();
  556|     36|    pr.copyRecord((uint8_t*) &ret->d_eui64, 8);
  557|     36|    if (!pr.eof()) {
  ------------------
  |  Branch (557:9): [True: 0, False: 36]
  ------------------
  558|      0|      throw MOADNSException("When parsing EUI64 trailing data was not parsed: '" + pr.getRemaining() + "'");
  559|      0|    }
  560|     36|    return ret;
  561|     36|}
_ZN16APLRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  596|      1|{
  597|      1|  regist(1, QType::APL, &make, &make, "APL");
  598|      1|}
_ZN16APLRecordContent4makeERK9DNSRecordR12PacketReader:
  601|    197|std::shared_ptr<DNSRecordContent> APLRecordContent::make(const DNSRecord &dr, PacketReader& pr) {
  602|    197|  uint8_t temp;
  603|    197|  APLRDataElement ard;
  604|    197|  size_t processed = 0;
  605|       |
  606|    197|  auto ret=std::make_shared<APLRecordContent>();
  607|       |
  608|  22.7k|  while (processed<dr.d_clen) {
  ------------------
  |  Branch (608:10): [True: 22.6k, False: 118]
  ------------------
  609|  22.6k|    if (dr.d_clen - processed < 4) {
  ------------------
  |  Branch (609:9): [True: 14, False: 22.5k]
  ------------------
  610|     14|      throw MOADNSException("Malformed APL record, element header extends beyond record length");
  611|     14|    }
  612|  22.5k|    pr.xfr16BitInt(ard.d_family);
  613|  22.5k|    pr.xfr8BitInt(ard.d_prefix);
  614|  22.5k|    pr.xfr8BitInt(temp);
  615|  22.5k|    ard.d_n = (temp & 128) >> 7;
  616|  22.5k|    ard.d_afdlength = temp & 127;
  617|       |
  618|  22.5k|    if (ard.d_afdlength > dr.d_clen - processed - 4) {
  ------------------
  |  Branch (618:9): [True: 3, False: 22.5k]
  ------------------
  619|      3|      throw MOADNSException("Malformed APL record, address data extends beyond record length");
  620|      3|    }
  621|       |
  622|  22.5k|    if (ard.d_family == APL_FAMILY_IPV4) {
  ------------------
  |  | 1201|  22.5k|#define APL_FAMILY_IPV4 1
  ------------------
  |  Branch (622:9): [True: 13.7k, False: 8.83k]
  ------------------
  623|  13.7k|      if (ard.d_afdlength > 4) {
  ------------------
  |  Branch (623:11): [True: 5, False: 13.7k]
  ------------------
  624|      5|        throw MOADNSException("Invalid IP length for IPv4 APL");
  625|      5|      }
  626|  13.7k|      memset(ard.d_ip.d_ip4, 0, sizeof(ard.d_ip.d_ip4));
  627|  22.2k|      for (u_int i=0; i < ard.d_afdlength; i++)
  ------------------
  |  Branch (627:23): [True: 8.46k, False: 13.7k]
  ------------------
  628|  8.46k|        pr.xfr8BitInt(ard.d_ip.d_ip4[i]);
  629|  13.7k|    } else if (ard.d_family == APL_FAMILY_IPV6) {
  ------------------
  |  | 1202|  8.83k|#define APL_FAMILY_IPV6 2
  ------------------
  |  Branch (629:16): [True: 8.78k, False: 54]
  ------------------
  630|  8.78k|      if (ard.d_afdlength > 16) {
  ------------------
  |  Branch (630:11): [True: 3, False: 8.78k]
  ------------------
  631|      3|        throw MOADNSException("Invalid IP length for IPv6 APL");
  632|      3|      }
  633|  8.78k|      memset(ard.d_ip.d_ip6, 0, sizeof(ard.d_ip.d_ip6));
  634|  10.1k|      for (u_int i=0; i < ard.d_afdlength; i++)
  ------------------
  |  Branch (634:23): [True: 1.32k, False: 8.78k]
  ------------------
  635|  1.32k|        pr.xfr8BitInt(ard.d_ip.d_ip6[i]);
  636|  8.78k|    } else {
  637|     54|      throw MOADNSException("Unknown family for APL record");
  638|     54|    }
  639|       |
  640|  22.5k|    processed += 4 + ard.d_afdlength;
  641|       |
  642|  22.5k|    ret->aplrdata.push_back(ard);
  643|  22.5k|  }
  644|    118|  if (!pr.eof()) {
  ------------------
  |  Branch (644:7): [True: 0, False: 118]
  ------------------
  645|      0|    throw MOADNSException("When parsing APL trailing data was not parsed: '" + pr.getRemaining() + "'");
  646|      0|  }
  647|       |
  648|    118|  return ret;
  649|    118|}
_Z14reportAllTypesv:
 1065|      1|{
 1066|      1|  ReportIsOnlyCallableByReportAllTypes guard;
 1067|      1|  reportBasicTypes(guard);
 1068|      1|  reportOtherTypes(guard);
 1069|      1|  DNSRecordContent::lock();
 1070|      1|}
dnsrecords.cc:_ZL16reportBasicTypesRK36ReportIsOnlyCallableByReportAllTypes:
  982|      1|{
  983|      1|  ARecordContent::report(guard);
  984|      1|  AAAARecordContent::report(guard);
  985|      1|  NSRecordContent::report(guard);
  986|      1|  CNAMERecordContent::report(guard);
  987|      1|  MXRecordContent::report(guard);
  988|      1|  SOARecordContent::report(guard);
  989|      1|  SRVRecordContent::report(guard);
  990|      1|  PTRRecordContent::report(guard);
  991|      1|  DNSRecordContent::regist(QClass::CHAOS, QType::TXT, &TXTRecordContent::make, &TXTRecordContent::make, "TXT");
  992|      1|  TXTRecordContent::report(guard);
  993|       |#ifdef HAVE_LUA_RECORDS
  994|       |  LUARecordContent::report(guard);
  995|       |#endif
  996|      1|  DNSRecordContent::regist(QClass::IN, QType::ANY, nullptr, nullptr, "ANY");
  997|      1|  DNSRecordContent::regist(QClass::IN, QType::AXFR, nullptr, nullptr, "AXFR");
  998|      1|  DNSRecordContent::regist(QClass::IN, QType::IXFR, nullptr, nullptr, "IXFR");
  999|      1|}
dnsrecords.cc:_ZL16reportOtherTypesRK36ReportIsOnlyCallableByReportAllTypes:
 1002|      1|{
 1003|      1|   MBRecordContent::report(guard);
 1004|      1|   MGRecordContent::report(guard);
 1005|      1|   MRRecordContent::report(guard);
 1006|      1|   AFSDBRecordContent::report(guard);
 1007|      1|   DNAMERecordContent::report(guard);
 1008|      1|#if !defined(RECURSOR)
 1009|      1|   ALIASRecordContent::report(guard);
 1010|      1|#endif
 1011|      1|   SPFRecordContent::report(guard);
 1012|      1|   NAPTRRecordContent::report(guard);
 1013|      1|   KXRecordContent::report(guard);
 1014|      1|   LOCRecordContent::report(guard);
 1015|      1|   ENTRecordContent::report(guard);
 1016|      1|   HINFORecordContent::report(guard);
 1017|      1|   RPRecordContent::report(guard);
 1018|      1|   KEYRecordContent::report(guard);
 1019|      1|   DNSKEYRecordContent::report(guard);
 1020|      1|   DHCIDRecordContent::report(guard);
 1021|      1|   CDNSKEYRecordContent::report(guard);
 1022|      1|   RKEYRecordContent::report(guard);
 1023|      1|   RRSIGRecordContent::report(guard);
 1024|      1|   DSRecordContent::report(guard);
 1025|      1|   CDSRecordContent::report(guard);
 1026|      1|   SSHFPRecordContent::report(guard);
 1027|      1|   CERTRecordContent::report(guard);
 1028|      1|   NSECRecordContent::report(guard);
 1029|      1|   NSEC3RecordContent::report(guard);
 1030|      1|   NSEC3PARAMRecordContent::report(guard);
 1031|      1|   TLSARecordContent::report(guard);
 1032|      1|   SMIMEARecordContent::report(guard);
 1033|      1|   OPENPGPKEYRecordContent::report(guard);
 1034|      1|   SVCBRecordContent::report(guard);
 1035|      1|   HTTPSRecordContent::report(guard);
 1036|      1|   HHITRecordContent::report(guard);
 1037|      1|   BRIDRecordContent::report(guard);
 1038|      1|   DLVRecordContent::report(guard);
 1039|      1|   DNSRecordContent::regist(QClass::ANY, QType::TSIG, &TSIGRecordContent::make, &TSIGRecordContent::make, "TSIG");
 1040|      1|   DNSRecordContent::regist(QClass::ANY, QType::TKEY, &TKEYRecordContent::make, &TKEYRecordContent::make, "TKEY");
 1041|       |   //TSIGRecordContent::report(guard);
 1042|      1|   OPTRecordContent::report(guard);
 1043|      1|   EUI48RecordContent::report(guard);
 1044|      1|   EUI64RecordContent::report(guard);
 1045|      1|   MINFORecordContent::report(guard);
 1046|      1|   URIRecordContent::report(guard);
 1047|      1|   CAARecordContent::report(guard);
 1048|      1|   RESINFORecordContent::report(guard);
 1049|      1|   APLRecordContent::report(guard);
 1050|      1|   IPSECKEYRecordContent::report(guard);
 1051|      1|   CSYNCRecordContent::report(guard);
 1052|      1|   NIDRecordContent::report(guard);
 1053|      1|   L32RecordContent::report(guard);
 1054|      1|   L64RecordContent::report(guard);
 1055|      1|   LPRecordContent::report(guard);
 1056|      1|   WALLETRecordContent::report(guard);
 1057|      1|   ZONEMDRecordContent::report(guard);
 1058|      1|}

_ZN14ARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     56|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     56|{                                                                                                  \
 1293|     56|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     56|}                                                                                                  \
_ZN14ARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     56|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     56|{                                                                                                  \
 1298|     56|  doRecordCheck(dr);                                                                               \
 1299|     56|  xfrPacket(pr);                                                                                   \
 1300|     56|}                                                                                                  \
_ZN14ARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17AAAARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     41|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     41|{                                                                                                  \
 1293|     41|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     41|}                                                                                                  \
_ZN17AAAARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     41|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     41|{                                                                                                  \
 1298|     41|  doRecordCheck(dr);                                                                               \
 1299|     41|  xfrPacket(pr);                                                                                   \
 1300|     41|}                                                                                                  \
_ZN17AAAARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15NSRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    123|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    123|{                                                                                                  \
 1293|    123|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    123|}                                                                                                  \
_ZN15NSRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    123|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    123|{                                                                                                  \
 1298|    123|  doRecordCheck(dr);                                                                               \
 1299|    123|  xfrPacket(pr);                                                                                   \
 1300|    123|}                                                                                                  \
_ZN15NSRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16PTRRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     78|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     78|{                                                                                                  \
 1293|     78|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     78|}                                                                                                  \
_ZN16PTRRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     78|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     78|{                                                                                                  \
 1298|     78|  doRecordCheck(dr);                                                                               \
 1299|     78|  xfrPacket(pr);                                                                                   \
 1300|     78|}                                                                                                  \
_ZN16PTRRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18CNAMERecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     84|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     84|{                                                                                                  \
 1293|     84|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     84|}                                                                                                  \
_ZN18CNAMERecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     84|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     84|{                                                                                                  \
 1298|     84|  doRecordCheck(dr);                                                                               \
 1299|     84|  xfrPacket(pr);                                                                                   \
 1300|     84|}                                                                                                  \
_ZN18CNAMERecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18ALIASRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     68|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     68|{                                                                                                  \
 1293|     68|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     68|}                                                                                                  \
_ZN18ALIASRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     68|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     68|{                                                                                                  \
 1298|     68|  doRecordCheck(dr);                                                                               \
 1299|     68|  xfrPacket(pr);                                                                                   \
 1300|     68|}                                                                                                  \
_ZN18ALIASRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18DNAMERecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     56|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     56|{                                                                                                  \
 1293|     56|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     56|}                                                                                                  \
_ZN18DNAMERecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     56|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     56|{                                                                                                  \
 1298|     56|  doRecordCheck(dr);                                                                               \
 1299|     56|  xfrPacket(pr);                                                                                   \
 1300|     56|}                                                                                                  \
_ZN18DNAMERecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15MBRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     78|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     78|{                                                                                                  \
 1293|     78|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     78|}                                                                                                  \
_ZN15MBRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     78|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     78|{                                                                                                  \
 1298|     78|  doRecordCheck(dr);                                                                               \
 1299|     78|  xfrPacket(pr);                                                                                   \
 1300|     78|}                                                                                                  \
_ZN15MBRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15MGRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     72|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     72|{                                                                                                  \
 1293|     72|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     72|}                                                                                                  \
_ZN15MGRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     72|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     72|{                                                                                                  \
 1298|     72|  doRecordCheck(dr);                                                                               \
 1299|     72|  xfrPacket(pr);                                                                                   \
 1300|     72|}                                                                                                  \
_ZN15MGRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15MRRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     75|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     75|{                                                                                                  \
 1293|     75|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     75|}                                                                                                  \
_ZN15MRRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     75|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     75|{                                                                                                  \
 1298|     75|  doRecordCheck(dr);                                                                               \
 1299|     75|  xfrPacket(pr);                                                                                   \
 1300|     75|}                                                                                                  \
_ZN15MRRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18MINFORecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    101|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    101|{                                                                                                  \
 1293|    101|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    101|}                                                                                                  \
_ZN18MINFORecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    101|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    101|{                                                                                                  \
 1298|    101|  doRecordCheck(dr);                                                                               \
 1299|    101|  xfrPacket(pr);                                                                                   \
 1300|    101|}                                                                                                  \
_ZN18MINFORecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16TXTRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     87|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     87|{                                                                                                  \
 1293|     87|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     87|}                                                                                                  \
_ZN16TXTRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     87|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     87|{                                                                                                  \
 1298|     87|  doRecordCheck(dr);                                                                               \
 1299|     87|  xfrPacket(pr);                                                                                   \
 1300|     87|}                                                                                                  \
_ZN16TXTRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16ENTRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    972|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    972|{                                                                                                  \
 1293|    972|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    972|}                                                                                                  \
_ZN16ENTRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    972|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    972|{                                                                                                  \
 1298|    972|  doRecordCheck(dr);                                                                               \
 1299|    972|  xfrPacket(pr);                                                                                   \
 1300|    972|}                                                                                                  \
_ZN16ENTRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16SPFRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     56|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     56|{                                                                                                  \
 1293|     56|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     56|}                                                                                                  \
_ZN16SPFRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     56|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     56|{                                                                                                  \
 1298|     56|  doRecordCheck(dr);                                                                               \
 1299|     56|  xfrPacket(pr);                                                                                   \
 1300|     56|}                                                                                                  \
_ZN16SPFRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18HINFORecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     52|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     52|{                                                                                                  \
 1293|     52|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     52|}                                                                                                  \
_ZN18HINFORecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     52|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     52|{                                                                                                  \
 1298|     52|  doRecordCheck(dr);                                                                               \
 1299|     52|  xfrPacket(pr);                                                                                   \
 1300|     52|}                                                                                                  \
_ZN18HINFORecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15RPRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    108|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    108|{                                                                                                  \
 1293|    108|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    108|}                                                                                                  \
_ZN15RPRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    108|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    108|{                                                                                                  \
 1298|    108|  doRecordCheck(dr);                                                                               \
 1299|    108|  xfrPacket(pr);                                                                                   \
 1300|    108|}                                                                                                  \
_ZN15RPRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16OPTRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    530|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    530|{                                                                                                  \
 1293|    530|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    530|}                                                                                                  \
_ZN16OPTRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    530|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    530|{                                                                                                  \
 1298|    530|  doRecordCheck(dr);                                                                               \
 1299|    530|  xfrPacket(pr);                                                                                   \
 1300|    530|}                                                                                                  \
_ZN16OPTRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN19WALLETRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     85|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     85|{                                                                                                  \
 1293|     85|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     85|}                                                                                                  \
_ZN19WALLETRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     85|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     85|{                                                                                                  \
 1298|     85|  doRecordCheck(dr);                                                                               \
 1299|     85|  xfrPacket(pr);                                                                                   \
 1300|     85|}                                                                                                  \
_ZN19WALLETRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15MXRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     47|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     47|{                                                                                                  \
 1293|     47|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     47|}                                                                                                  \
_ZN15MXRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     47|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     47|{                                                                                                  \
 1298|     47|  doRecordCheck(dr);                                                                               \
 1299|     47|  xfrPacket(pr);                                                                                   \
 1300|     47|}                                                                                                  \
_ZN15MXRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15KXRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     45|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     45|{                                                                                                  \
 1293|     45|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     45|}                                                                                                  \
_ZN15KXRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     45|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     45|{                                                                                                  \
 1298|     45|  doRecordCheck(dr);                                                                               \
 1299|     45|  xfrPacket(pr);                                                                                   \
 1300|     45|}                                                                                                  \
_ZN15KXRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN21IPSECKEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    115|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    115|{                                                                                                  \
 1293|    115|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    115|}                                                                                                  \
_ZN21IPSECKEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    115|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    115|{                                                                                                  \
 1298|    115|  doRecordCheck(dr);                                                                               \
 1299|    115|  xfrPacket(pr);                                                                                   \
 1300|    115|}                                                                                                  \
_ZN21IPSECKEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18DHCIDRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     59|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     59|{                                                                                                  \
 1293|     59|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     59|}                                                                                                  \
_ZN18DHCIDRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     59|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     59|{                                                                                                  \
 1298|     59|  doRecordCheck(dr);                                                                               \
 1299|     59|  xfrPacket(pr);                                                                                   \
 1300|     59|}                                                                                                  \
_ZN18DHCIDRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18AFSDBRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     36|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     36|{                                                                                                  \
 1293|     36|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     36|}                                                                                                  \
_ZN18AFSDBRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     36|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     36|{                                                                                                  \
 1298|     36|  doRecordCheck(dr);                                                                               \
 1299|     36|  xfrPacket(pr);                                                                                   \
 1300|     36|}                                                                                                  \
_ZN18AFSDBRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18NAPTRRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     68|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     68|{                                                                                                  \
 1293|     68|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     68|}                                                                                                  \
_ZN18NAPTRRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     68|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     68|{                                                                                                  \
 1298|     68|  doRecordCheck(dr);                                                                               \
 1299|     68|  xfrPacket(pr);                                                                                   \
 1300|     68|}                                                                                                  \
_ZN18NAPTRRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16SRVRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     46|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     46|{                                                                                                  \
 1293|     46|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     46|}                                                                                                  \
_ZN16SRVRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     46|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     46|{                                                                                                  \
 1298|     46|  doRecordCheck(dr);                                                                               \
 1299|     46|  xfrPacket(pr);                                                                                   \
 1300|     46|}                                                                                                  \
_ZN16SRVRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16SOARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    217|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    217|{                                                                                                  \
 1293|    217|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    217|}                                                                                                  \
_ZN16SOARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    217|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    217|{                                                                                                  \
 1298|    217|  doRecordCheck(dr);                                                                               \
 1299|    217|  xfrPacket(pr);                                                                                   \
 1300|    217|}                                                                                                  \
_ZN16SOARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16KEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     58|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     58|{                                                                                                  \
 1293|     58|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     58|}                                                                                                  \
_ZN16KEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     58|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     58|{                                                                                                  \
 1298|     58|  doRecordCheck(dr);                                                                               \
 1299|     58|  xfrPacket(pr);                                                                                   \
 1300|     58|}                                                                                                  \
_ZN16KEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN19ZONEMDRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     76|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     76|{                                                                                                  \
 1293|     76|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     76|}                                                                                                  \
_ZN19ZONEMDRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     76|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     76|{                                                                                                  \
 1298|     76|  doRecordCheck(dr);                                                                               \
 1299|     76|  xfrPacket(pr);                                                                                   \
 1300|     76|}                                                                                                  \
_ZN19ZONEMDRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17CERTRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     69|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     69|{                                                                                                  \
 1293|     69|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     69|}                                                                                                  \
_ZN17CERTRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     69|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     69|{                                                                                                  \
 1298|     69|  doRecordCheck(dr);                                                                               \
 1299|     69|  xfrPacket(pr);                                                                                   \
 1300|     69|}                                                                                                  \
_ZN17CERTRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17TLSARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     42|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     42|{                                                                                                  \
 1293|     42|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     42|}                                                                                                  \
_ZN17TLSARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     42|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     42|{                                                                                                  \
 1298|     42|  doRecordCheck(dr);                                                                               \
 1299|     42|  xfrPacket(pr);                                                                                   \
 1300|     42|}                                                                                                  \
_ZN17TLSARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN23OPENPGPKEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     34|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     34|{                                                                                                  \
 1293|     34|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     34|}                                                                                                  \
_ZN23OPENPGPKEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     34|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     34|{                                                                                                  \
 1298|     34|  doRecordCheck(dr);                                                                               \
 1299|     34|  xfrPacket(pr);                                                                                   \
 1300|     34|}                                                                                                  \
_ZN23OPENPGPKEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17SVCBRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    545|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    545|{                                                                                                  \
 1293|    545|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    545|}                                                                                                  \
_ZN17SVCBRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    545|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    545|{                                                                                                  \
 1298|    545|  doRecordCheck(dr);                                                                               \
 1299|    545|  xfrPacket(pr);                                                                                   \
 1300|    545|}                                                                                                  \
_ZN17SVCBRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18HTTPSRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    412|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    412|{                                                                                                  \
 1293|    412|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    412|}                                                                                                  \
_ZN18HTTPSRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    412|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    412|{                                                                                                  \
 1298|    412|  doRecordCheck(dr);                                                                               \
 1299|    412|  xfrPacket(pr);                                                                                   \
 1300|    412|}                                                                                                  \
_ZN18HTTPSRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17HHITRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     33|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     33|{                                                                                                  \
 1293|     33|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     33|}                                                                                                  \
_ZN17HHITRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     33|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     33|{                                                                                                  \
 1298|     33|  doRecordCheck(dr);                                                                               \
 1299|     33|  xfrPacket(pr);                                                                                   \
 1300|     33|}                                                                                                  \
_ZN17HHITRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17BRIDRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     49|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     49|{                                                                                                  \
 1293|     49|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     49|}                                                                                                  \
_ZN17BRIDRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     49|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     49|{                                                                                                  \
 1298|     49|  doRecordCheck(dr);                                                                               \
 1299|     49|  xfrPacket(pr);                                                                                   \
 1300|     49|}                                                                                                  \
_ZN17BRIDRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN19SMIMEARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     40|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     40|{                                                                                                  \
 1293|     40|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     40|}                                                                                                  \
_ZN19SMIMEARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     40|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     40|{                                                                                                  \
 1298|     40|  doRecordCheck(dr);                                                                               \
 1299|     40|  xfrPacket(pr);                                                                                   \
 1300|     40|}                                                                                                  \
_ZN19SMIMEARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15DSRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     53|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     53|{                                                                                                  \
 1293|     53|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     53|}                                                                                                  \
_ZN15DSRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     53|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     53|{                                                                                                  \
 1298|     53|  doRecordCheck(dr);                                                                               \
 1299|     53|  xfrPacket(pr);                                                                                   \
 1300|     53|}                                                                                                  \
_ZN15DSRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16CDSRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     71|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     71|{                                                                                                  \
 1293|     71|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     71|}                                                                                                  \
_ZN16CDSRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     71|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     71|{                                                                                                  \
 1298|     71|  doRecordCheck(dr);                                                                               \
 1299|     71|  xfrPacket(pr);                                                                                   \
 1300|     71|}                                                                                                  \
_ZN16CDSRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16DLVRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     55|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     55|{                                                                                                  \
 1293|     55|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     55|}                                                                                                  \
_ZN16DLVRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     55|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     55|{                                                                                                  \
 1298|     55|  doRecordCheck(dr);                                                                               \
 1299|     55|  xfrPacket(pr);                                                                                   \
 1300|     55|}                                                                                                  \
_ZN16DLVRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18SSHFPRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     49|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     49|{                                                                                                  \
 1293|     49|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     49|}                                                                                                  \
_ZN18SSHFPRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     49|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     49|{                                                                                                  \
 1298|     49|  doRecordCheck(dr);                                                                               \
 1299|     49|  xfrPacket(pr);                                                                                   \
 1300|     49|}                                                                                                  \
_ZN18SSHFPRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN18RRSIGRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     71|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     71|{                                                                                                  \
 1293|     71|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     71|}                                                                                                  \
_ZN18RRSIGRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     71|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     71|{                                                                                                  \
 1298|     71|  doRecordCheck(dr);                                                                               \
 1299|     71|  xfrPacket(pr);                                                                                   \
 1300|     71|}                                                                                                  \
_ZN18RRSIGRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN19DNSKEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     68|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     68|{                                                                                                  \
 1293|     68|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     68|}                                                                                                  \
_ZN19DNSKEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     68|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     68|{                                                                                                  \
 1298|     68|  doRecordCheck(dr);                                                                               \
 1299|     68|  xfrPacket(pr);                                                                                   \
 1300|     68|}                                                                                                  \
_ZN19DNSKEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN20CDNSKEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     45|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     45|{                                                                                                  \
 1293|     45|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     45|}                                                                                                  \
_ZN20CDNSKEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     45|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     45|{                                                                                                  \
 1298|     45|  doRecordCheck(dr);                                                                               \
 1299|     45|  xfrPacket(pr);                                                                                   \
 1300|     45|}                                                                                                  \
_ZN20CDNSKEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN17RKEYRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     40|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     40|{                                                                                                  \
 1293|     40|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     40|}                                                                                                  \
_ZN17RKEYRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     40|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     40|{                                                                                                  \
 1298|     40|  doRecordCheck(dr);                                                                               \
 1299|     40|  xfrPacket(pr);                                                                                   \
 1300|     40|}                                                                                                  \
_ZN17RKEYRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16NIDRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     72|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     72|{                                                                                                  \
 1293|     72|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     72|}                                                                                                  \
_ZN16NIDRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     72|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     72|{                                                                                                  \
 1298|     72|  doRecordCheck(dr);                                                                               \
 1299|     72|  xfrPacket(pr);                                                                                   \
 1300|     72|}                                                                                                  \
_ZN16NIDRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16L32RecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     32|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     32|{                                                                                                  \
 1293|     32|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     32|}                                                                                                  \
_ZN16L32RecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     32|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     32|{                                                                                                  \
 1298|     32|  doRecordCheck(dr);                                                                               \
 1299|     32|  xfrPacket(pr);                                                                                   \
 1300|     32|}                                                                                                  \
_ZN16L32RecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16L64RecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     69|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     69|{                                                                                                  \
 1293|     69|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     69|}                                                                                                  \
_ZN16L64RecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     69|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     69|{                                                                                                  \
 1298|     69|  doRecordCheck(dr);                                                                               \
 1299|     69|  xfrPacket(pr);                                                                                   \
 1300|     69|}                                                                                                  \
_ZN16L64RecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN15LPRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     49|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     49|{                                                                                                  \
 1293|     49|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     49|}                                                                                                  \
_ZN15LPRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     49|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     49|{                                                                                                  \
 1298|     49|  doRecordCheck(dr);                                                                               \
 1299|     49|  xfrPacket(pr);                                                                                   \
 1300|     49|}                                                                                                  \
_ZN15LPRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16URIRecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    123|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    123|{                                                                                                  \
 1293|    123|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    123|}                                                                                                  \
_ZN16URIRecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    123|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    123|{                                                                                                  \
 1298|    123|  doRecordCheck(dr);                                                                               \
 1299|    123|  xfrPacket(pr);                                                                                   \
 1300|    123|}                                                                                                  \
_ZN16URIRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN16CAARecordContent4makeERK9DNSRecordR12PacketReader:
 1291|    346|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|    346|{                                                                                                  \
 1293|    346|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|    346|}                                                                                                  \
_ZN16CAARecordContentC2ERK9DNSRecordR12PacketReader:
 1296|    346|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|    346|{                                                                                                  \
 1298|    346|  doRecordCheck(dr);                                                                               \
 1299|    346|  xfrPacket(pr);                                                                                   \
 1300|    346|}                                                                                                  \
_ZN16CAARecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN20RESINFORecordContent4makeERK9DNSRecordR12PacketReader:
 1291|     71|std::shared_ptr<RNAME##RecordContent::DNSRecordContent> RNAME##RecordContent::make(const DNSRecord& dr, PacketReader& pr) \
 1292|     71|{                                                                                                  \
 1293|     71|  return std::make_shared<RNAME##RecordContent>(dr, pr);                                           \
 1294|     71|}                                                                                                  \
_ZN20RESINFORecordContentC2ERK9DNSRecordR12PacketReader:
 1296|     71|RNAME##RecordContent::RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr)                  \
 1297|     71|{                                                                                                  \
 1298|     71|  doRecordCheck(dr);                                                                               \
 1299|     71|  xfrPacket(pr);                                                                                   \
 1300|     71|}                                                                                                  \
_ZN20RESINFORecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
 1312|      1|void RNAME##RecordContent::report(const ReportIsOnlyCallableByReportAllTypes& /* unused */)        \
 1313|      1|{                                                                                                  \
 1314|      1|  regist(1, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);       \
 1315|      1|  regist(254, QType::RNAME, &RNAME##RecordContent::make, &RNAME##RecordContent::make, #RNAME);     \
 1316|      1|}                                                                                                  \
_ZN14ARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     31|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     31|{                                                                       \
 1343|     31|  CONV;                                                                 \
 1344|     31|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 31]
  ------------------
 1345|     31|}                                                                       \
_ZN17AAAARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     41|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     41|{                                                                       \
 1343|     41|  CONV;                                                                 \
 1344|     41|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 4, False: 37]
  ------------------
 1345|     41|}                                                                       \
_ZN15NSRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    123|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    123|{                                                                       \
 1343|    123|  CONV;                                                                 \
 1344|    123|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 25, False: 98]
  ------------------
 1345|    123|}                                                                       \
_ZN16PTRRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     78|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     78|{                                                                       \
 1343|     78|  CONV;                                                                 \
 1344|     78|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 17, False: 61]
  ------------------
 1345|     78|}                                                                       \
_ZN18CNAMERecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     84|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     84|{                                                                       \
 1343|     84|  CONV;                                                                 \
 1344|     84|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 13, False: 71]
  ------------------
 1345|     84|}                                                                       \
_ZN18ALIASRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     68|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     68|{                                                                       \
 1343|     68|  CONV;                                                                 \
 1344|     68|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 5, False: 63]
  ------------------
 1345|     68|}                                                                       \
_ZN18DNAMERecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     56|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     56|{                                                                       \
 1343|     56|  CONV;                                                                 \
 1344|     56|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 5, False: 51]
  ------------------
 1345|     56|}                                                                       \
_ZN15MBRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     78|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     78|{                                                                       \
 1343|     78|  CONV;                                                                 \
 1344|     78|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 7, False: 71]
  ------------------
 1345|     78|}                                                                       \
_ZN15MGRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     72|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     72|{                                                                       \
 1343|     72|  CONV;                                                                 \
 1344|     72|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 8, False: 64]
  ------------------
 1345|     72|}                                                                       \
_ZN15MRRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     75|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     75|{                                                                       \
 1343|     75|  CONV;                                                                 \
 1344|     75|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 8, False: 67]
  ------------------
 1345|     75|}                                                                       \
_ZN18MINFORecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    101|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    101|{                                                                       \
 1343|    101|  CONV;                                                                 \
 1344|    101|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 3, False: 98]
  ------------------
 1345|    101|}                                                                       \
_ZN16TXTRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     87|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     87|{                                                                       \
 1343|     87|  CONV;                                                                 \
 1344|     87|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 87]
  ------------------
 1345|     87|}                                                                       \
_ZN16ENTRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    972|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    972|{                                                                       \
 1343|    972|  CONV;                                                                 \
 1344|    972|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 972]
  ------------------
 1345|    972|}                                                                       \
_ZN16SPFRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     56|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     56|{                                                                       \
 1343|     56|  CONV;                                                                 \
 1344|     56|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 56]
  ------------------
 1345|     56|}                                                                       \
_ZN18HINFORecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     52|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     52|{                                                                       \
 1343|     52|  CONV;                                                                 \
 1344|     52|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 8, False: 44]
  ------------------
 1345|     52|}                                                                       \
_ZN15RPRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    108|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    108|{                                                                       \
 1343|    108|  CONV;                                                                 \
 1344|    108|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 4, False: 104]
  ------------------
 1345|    108|}                                                                       \
_ZN16OPTRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    530|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    530|{                                                                       \
 1343|    530|  CONV;                                                                 \
 1344|    530|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 530]
  ------------------
 1345|    530|}                                                                       \
_ZN19WALLETRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     85|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     85|{                                                                       \
 1343|     85|  CONV;                                                                 \
 1344|     85|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 85]
  ------------------
 1345|     85|}                                                                       \
_ZN15MXRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     47|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     47|{                                                                       \
 1343|     47|  CONV;                                                                 \
 1344|     47|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 2, False: 45]
  ------------------
 1345|     47|}                                                                       \
_ZN15KXRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     45|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     45|{                                                                       \
 1343|     45|  CONV;                                                                 \
 1344|     45|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 2, False: 43]
  ------------------
 1345|     45|}                                                                       \
_ZN21IPSECKEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    115|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    115|{                                                                       \
 1343|    115|  CONV;                                                                 \
  ------------------
  |  Branch (1343:3): [True: 2, False: 113]
  |  Branch (1343:3): [True: 25, False: 90]
  |  Branch (1343:3): [True: 12, False: 103]
  |  Branch (1343:3): [True: 12, False: 103]
  |  Branch (1343:3): [True: 56, False: 59]
  |  Branch (1343:3): [True: 1, False: 90]
  |  Branch (1343:3): [True: 24, False: 67]
  |  Branch (1343:3): [True: 37, False: 54]
  |  Branch (1343:3): [True: 29, False: 62]
  ------------------
 1344|     88|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 1, False: 87]
  ------------------
 1345|     88|}                                                                       \
_ZN18DHCIDRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     59|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     59|{                                                                       \
 1343|     59|  CONV;                                                                 \
 1344|     59|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 59]
  ------------------
 1345|     59|}                                                                       \
_ZN18AFSDBRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     36|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     36|{                                                                       \
 1343|     36|  CONV;                                                                 \
 1344|     36|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 1, False: 35]
  ------------------
 1345|     36|}                                                                       \
_ZN18NAPTRRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     68|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     68|{                                                                       \
 1343|     68|  CONV;                                                                 \
 1344|     68|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 2, False: 66]
  ------------------
 1345|     68|}                                                                       \
_ZN16SRVRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     46|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     46|{                                                                       \
 1343|     46|  CONV;                                                                 \
 1344|     46|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 1, False: 45]
  ------------------
 1345|     46|}                                                                       \
_ZN16SOARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    217|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    217|{                                                                       \
 1343|    217|  CONV;                                                                 \
 1344|    217|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 19, False: 198]
  ------------------
 1345|    217|}                                                                       \
_ZN16KEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     58|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     58|{                                                                       \
 1343|     58|  CONV;                                                                 \
 1344|     58|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 58]
  ------------------
 1345|     58|}                                                                       \
_ZN19ZONEMDRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     76|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     76|{                                                                       \
 1343|     76|  CONV;                                                                 \
 1344|     76|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 76]
  ------------------
 1345|     76|}                                                                       \
_ZN17CERTRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     69|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     69|{                                                                       \
 1343|     70|  CONV;                                                                 \
  ------------------
  |  Branch (1343:3): [True: 1, False: 68]
  ------------------
 1344|     68|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 68]
  ------------------
 1345|     68|}                                                                       \
_ZN17TLSARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     42|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     42|{                                                                       \
 1343|     42|  CONV;                                                                 \
 1344|     42|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 42]
  ------------------
 1345|     42|}                                                                       \
_ZN23OPENPGPKEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     34|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     34|{                                                                       \
 1343|     34|  CONV;                                                                 \
 1344|     34|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 34]
  ------------------
 1345|     34|}                                                                       \
_ZN17SVCBRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    545|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    545|{                                                                       \
 1343|  1.06k|  CONV;                                                                 \
  ------------------
  |  Branch (1343:3): [True: 517, False: 28]
  ------------------
 1344|    545|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 1, False: 544]
  ------------------
 1345|    545|}                                                                       \
_ZN18HTTPSRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    412|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    412|{                                                                       \
 1343|    796|  CONV;                                                                 \
  ------------------
  |  Branch (1343:3): [True: 384, False: 28]
  ------------------
 1344|    412|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 2, False: 410]
  ------------------
 1345|    412|}                                                                       \
_ZN17HHITRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     33|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     33|{                                                                       \
 1343|     33|  CONV;                                                                 \
 1344|     33|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 33]
  ------------------
 1345|     33|}                                                                       \
_ZN17BRIDRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     49|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     49|{                                                                       \
 1343|     49|  CONV;                                                                 \
 1344|     49|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 49]
  ------------------
 1345|     49|}                                                                       \
_ZN19SMIMEARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     40|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     40|{                                                                       \
 1343|     40|  CONV;                                                                 \
 1344|     40|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 40]
  ------------------
 1345|     40|}                                                                       \
_ZN15DSRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     53|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     53|{                                                                       \
 1343|     53|  CONV;                                                                 \
 1344|     53|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 53]
  ------------------
 1345|     53|}                                                                       \
_ZN16CDSRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     71|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     71|{                                                                       \
 1343|     71|  CONV;                                                                 \
 1344|     71|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 71]
  ------------------
 1345|     71|}                                                                       \
_ZN16DLVRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     55|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     55|{                                                                       \
 1343|     55|  CONV;                                                                 \
 1344|     55|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 55]
  ------------------
 1345|     55|}                                                                       \
_ZN18SSHFPRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     49|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     49|{                                                                       \
 1343|     49|  CONV;                                                                 \
 1344|     49|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 49]
  ------------------
 1345|     49|}                                                                       \
_ZN18RRSIGRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     71|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     71|{                                                                       \
 1343|     71|  CONV;                                                                 \
 1344|     71|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 71]
  ------------------
 1345|     71|}                                                                       \
_ZN19DNSKEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     68|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     68|{                                                                       \
 1343|     68|  CONV;                                                                 \
 1344|     68|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 68]
  ------------------
 1345|     68|}                                                                       \
_ZN20CDNSKEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     45|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     45|{                                                                       \
 1343|     45|  CONV;                                                                 \
 1344|     45|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 45]
  ------------------
 1345|     45|}                                                                       \
_ZN17RKEYRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     40|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     40|{                                                                       \
 1343|     40|  CONV;                                                                 \
 1344|     40|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 40]
  ------------------
 1345|     40|}                                                                       \
_ZN16NIDRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     72|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     72|{                                                                       \
 1343|     72|  CONV;                                                                 \
 1344|     72|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 24, False: 48]
  ------------------
 1345|     72|}                                                                       \
_ZN16L32RecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     32|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     32|{                                                                       \
 1343|     32|  CONV;                                                                 \
 1344|     32|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 2, False: 30]
  ------------------
 1345|     32|}                                                                       \
_ZN16L64RecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     69|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     69|{                                                                       \
 1343|     69|  CONV;                                                                 \
 1344|     69|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 29, False: 40]
  ------------------
 1345|     69|}                                                                       \
_ZN15LPRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     49|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     49|{                                                                       \
 1343|     49|  CONV;                                                                 \
 1344|     49|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 1, False: 48]
  ------------------
 1345|     49|}                                                                       \
_ZN18EUI48RecordContentC2Ev:
 1166|     86|  EUI48RecordContent() = default;
_ZN18EUI64RecordContentC2Ev:
 1185|     36|  EUI64RecordContent() = default;
_ZN16APLRecordContentC2Ev:
 1216|    197|  APLRecordContent() = default;
_ZN16URIRecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    123|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    123|{                                                                       \
 1343|    123|  CONV;                                                                 \
 1344|    123|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 123]
  ------------------
 1345|    123|}                                                                       \
_ZN16CAARecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|    346|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|    346|{                                                                       \
 1343|    346|  CONV;                                                                 \
 1344|    346|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 346]
  ------------------
 1345|    346|}                                                                       \
_ZN20RESINFORecordContent9xfrPacketI12PacketReaderEEvRT_b:
 1341|     71|void RNAME##RecordContent::xfrPacket(Convertor& conv, bool /* noDot */) \
 1342|     71|{                                                                       \
 1343|     71|  CONV;                                                                 \
 1344|     71|  if (conv.eof() == false) throw MOADNSException("When parsing " #RNAME " trailing data was not parsed: '" + conv.getRemaining() + "'"); \
  ------------------
  |  Branch (1344:7): [True: 0, False: 71]
  ------------------
 1345|     71|}                                                                       \
_ZN10NSECBitmapC2Ev:
  820|    908|  NSECBitmap(): d_bitset(nullptr)
  821|    908|  {
  822|    908|  }
_ZN10NSECBitmap3setEt:
  851|  45.5k|  {
  852|  45.5k|    if (!d_bitset) {
  ------------------
  |  Branch (852:9): [True: 41.8k, False: 3.63k]
  ------------------
  853|  41.8k|      if (d_set.size() >= 200) {
  ------------------
  |  Branch (853:11): [True: 149, False: 41.7k]
  ------------------
  854|    149|        migrateToBitSet();
  855|    149|      }
  856|  41.8k|    }
  857|  45.5k|    if (d_bitset) {
  ------------------
  |  Branch (857:9): [True: 3.78k, False: 41.7k]
  ------------------
  858|  3.78k|      d_bitset->set(type);
  859|  3.78k|    }
  860|  41.7k|    else {
  861|  41.7k|      d_set.insert(type);
  862|  41.7k|    }
  863|  45.5k|  }
_ZN10NSECBitmap15migrateToBitSetEv:
  891|    149|  {
  892|    149|    d_bitset = std::make_unique<std::bitset<nbTypes>>();
  893|  29.8k|    for (const auto& type : d_set) {
  ------------------
  |  Branch (893:27): [True: 29.8k, False: 149]
  ------------------
  894|  29.8k|      d_bitset->set(type);
  895|  29.8k|    }
  896|    149|    d_set.clear();
  897|    149|  }
_ZN17NSECRecordContentC2Ev:
  911|    609|  NSECRecordContent() = default;
_ZN18NSEC3RecordContentC2Ev:
  952|    177|  NSEC3RecordContent() = default;
_ZN23NSEC3PARAMRecordContentC2Ev:
 1035|     89|  NSEC3PARAMRecordContent() = default;
_ZN18CSYNCRecordContentC2Ev:
 1002|    122|  CSYNCRecordContent() = default;
_ZN16LOCRecordContentC2Ev:
 1063|     94|  LOCRecordContent() = default;

_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEEC2ERS4_RK7DNSNametth:
   43|  4.20k|  d_qname(qname), d_content(content)
   44|  4.20k|{
   45|  4.20k|  d_content.clear();
   46|  4.20k|  dnsheader dnsheader;
   47|       |
   48|  4.20k|  memset(&dnsheader, 0, sizeof(dnsheader));
   49|  4.20k|  dnsheader.id=0;
   50|  4.20k|  dnsheader.qdcount=htons(1);
   51|  4.20k|  dnsheader.opcode=opcode;
   52|       |
   53|  4.20k|  const uint8_t* ptr=(const uint8_t*)&dnsheader;
   54|  4.20k|  d_content.reserve(sizeof(dnsheader) + qname.wirelength() + sizeof(qtype) + sizeof(qclass));
   55|  4.20k|  d_content.resize(sizeof(dnsheader));
   56|  4.20k|  uint8_t* dptr=(&*d_content.begin());
   57|       |
   58|  4.20k|  memcpy(dptr, ptr, sizeof(dnsheader));
   59|  4.20k|  d_namepositions.reserve(16);
   60|  4.20k|  xfrName(qname, false);
   61|  4.20k|  xfr16BitInt(qtype);
   62|  4.20k|  xfr16BitInt(qclass);
   63|       |
   64|  4.20k|  if (d_content.size() > std::numeric_limits<decltype(d_truncatemarker)>::max()) {
  ------------------
  |  Branch (64:7): [True: 0, False: 4.20k]
  ------------------
   65|      0|    throw std::range_error("Trying to build a packet larger than " + std::to_string(std::numeric_limits<decltype(d_truncatemarker)>::max()) + " bytes");
   66|      0|  }
   67|  4.20k|  d_truncatemarker = d_content.size();
   68|  4.20k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE11startRecordERK7DNSNametjtN17DNSResourceRecord5PlaceEb:
   77|  10.7k|{
   78|  10.7k|  d_compress = compress;
   79|  10.7k|  commit();
   80|  10.7k|  if (d_content.size() > std::numeric_limits<decltype(d_rollbackmarker)>::max()) {
  ------------------
  |  Branch (80:7): [True: 0, False: 10.7k]
  ------------------
   81|      0|    throw std::range_error("Trying to build a packet larger than " + std::to_string(std::numeric_limits<decltype(d_rollbackmarker)>::max()) + " bytes");
   82|      0|  }
   83|  10.7k|  d_rollbackmarker = d_content.size();
   84|       |
   85|  10.7k|  if (compress && !name.isRoot() && d_qname==name) {  // don't do the whole label compression thing if we *know* we can get away with "see question" - except when compressing the root
  ------------------
  |  Branch (85:7): [True: 9.86k, False: 917]
  |  Branch (85:19): [True: 6.27k, False: 3.59k]
  |  Branch (85:37): [True: 0, False: 6.27k]
  ------------------
   86|      0|    static const std::array<unsigned char, 2> marker{0xc0, 0x0c};
   87|      0|    d_content.insert(d_content.end(), reinterpret_cast<const char *>(marker.begin()), reinterpret_cast<const char *>(marker.end()));
   88|      0|  }
   89|  10.7k|  else {
   90|  10.7k|    xfrName(name, compress);
   91|  10.7k|  }
   92|  10.7k|  xfr16BitInt(qtype);
   93|  10.7k|  xfr16BitInt(qclass);
   94|  10.7k|  xfr32BitInt(ttl);
   95|  10.7k|  xfr16BitInt(0); // this will be the record size
   96|  10.7k|  d_recordplace = place;
   97|       |
   98|  10.7k|  d_sor = d_content.size(); // this will remind us where to stuff the record size
   99|  10.7k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE6addOptEtttRKNS1_INS0_4pairItNS0_12basic_stringIcNS0_11char_traitsIcEENS2_IcEEEEEENS2_ISC_EEEEh:
  102|    907|{
  103|    907|  uint32_t ttl=0;
  104|       |
  105|    907|  EDNS0Record stuff;
  106|       |
  107|    907|  stuff.version = version;
  108|    907|  stuff.extFlags = htons(ednsFlags);
  109|       |
  110|       |  /* RFC 6891 section 4 on the Extended RCode wire format
  111|       |   *    EXTENDED-RCODE
  112|       |   *        Forms the upper 8 bits of extended 12-bit RCODE (together with the
  113|       |   *        4 bits defined in [RFC1035].  Note that EXTENDED-RCODE value 0
  114|       |   *        indicates that an unextended RCODE is in use (values 0 through 15).
  115|       |   */
  116|       |  // XXX Should be check for extRCode > 1<<12 ?
  117|    907|  stuff.extRCode = extRCode>>4;
  118|    907|  if (extRCode != 0) { // As this trumps the existing RCODE
  ------------------
  |  Branch (118:7): [True: 0, False: 907]
  ------------------
  119|      0|    getHeader()->rcode = extRCode;
  120|      0|  }
  121|       |
  122|    907|  static_assert(sizeof(EDNS0Record) == sizeof(ttl), "sizeof(EDNS0Record) must match sizeof(ttl)");
  123|    907|  memcpy(&ttl, &stuff, sizeof(stuff));
  124|       |
  125|    907|  ttl=ntohl(ttl); // will be reversed later on
  126|       |
  127|    907|  startRecord(g_rootdnsname, QType::OPT, ttl, udpsize, DNSResourceRecord::ADDITIONAL, false);
  128|  51.7k|  for(auto const &option : options) {
  ------------------
  |  Branch (128:26): [True: 51.7k, False: 907]
  ------------------
  129|  51.7k|    xfr16BitInt(option.first);
  130|  51.7k|    xfr16BitInt(option.second.length());
  131|  51.7k|    xfrBlob(option.second);
  132|  51.7k|  }
  133|    907|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE6commitEv:
  594|  14.9k|{
  595|  14.9k|  if (d_sor == 0) {
  ------------------
  |  Branch (595:7): [True: 4.20k, False: 10.7k]
  ------------------
  596|  4.20k|    return;
  597|  4.20k|  }
  598|       |
  599|  10.7k|  if (d_sor < 2 || d_sor > d_content.size()) {
  ------------------
  |  Branch (599:7): [True: 0, False: 10.7k]
  |  Branch (599:20): [True: 0, False: 10.7k]
  ------------------
  600|      0|    throw std::range_error("Invalid start of record when trying to build a packet: " + std::to_string(d_sor) + " / " + std::to_string(d_content.size()));
  601|      0|  }
  602|       |
  603|  10.7k|  if (d_content.size() > std::numeric_limits<uint16_t>::max()) {
  ------------------
  |  Branch (603:7): [True: 56, False: 10.7k]
  ------------------
  604|     56|    throw std::range_error("Trying to build a packet larger than " + std::to_string(std::numeric_limits<uint16_t>::max()) + " bytes");
  605|     56|  }
  606|       |
  607|  10.7k|  uint16_t rlen = d_content.size() - d_sor;
  608|  10.7k|  d_content.at(d_sor-2) = rlen >> 8;
  609|  10.7k|  d_content.at(d_sor-1) = rlen & 0xff;
  610|  10.7k|  d_sor = 0;
  611|  10.7k|  auto* dh = reinterpret_cast<dnsheader*>( &*d_content.begin());
  612|  10.7k|  switch(d_recordplace) {
  ------------------
  |  Branch (612:10): [True: 10.7k, False: 0]
  ------------------
  613|      0|  case DNSResourceRecord::QUESTION:
  ------------------
  |  Branch (613:3): [True: 0, False: 10.7k]
  ------------------
  614|      0|    dh->qdcount = htons(ntohs(dh->qdcount) + 1);
  615|      0|    break;
  616|  9.84k|  case DNSResourceRecord::ANSWER:
  ------------------
  |  Branch (616:3): [True: 9.84k, False: 861]
  ------------------
  617|  9.84k|    dh->ancount = htons(ntohs(dh->ancount) + 1);
  618|  9.84k|    break;
  619|      0|  case DNSResourceRecord::AUTHORITY:
  ------------------
  |  Branch (619:3): [True: 0, False: 10.7k]
  ------------------
  620|      0|    dh->nscount = htons(ntohs(dh->nscount) + 1);
  621|      0|    break;
  622|    861|  case DNSResourceRecord::ADDITIONAL:
  ------------------
  |  Branch (622:3): [True: 861, False: 9.84k]
  ------------------
  623|    861|    dh->arcount = htons(ntohs(dh->arcount) + 1);
  624|    861|    break;
  625|  10.7k|  }
  626|       |
  627|  10.7k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE11xfr32BitIntEm:
  155|  10.7k|{
  156|  10.7k|  if (val > std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (156:7): [True: 0, False: 10.7k]
  ------------------
  157|      0|    throw runtime_error("Value too large to fit in 32 bits");
  158|      0|  }
  159|  10.7k|  uint32_t rval=htonl(static_cast<uint32_t>(val));
  160|  10.7k|  uint8_t* ptr=reinterpret_cast<uint8_t*>(&rval);
  161|  10.7k|  d_content.insert(d_content.end(), ptr, ptr+4);
  162|  10.7k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE11xfr16BitIntEm:
  165|   144k|{
  166|   144k|  if (val > std::numeric_limits<uint16_t>::max()) {
  ------------------
  |  Branch (166:7): [True: 0, False: 144k]
  ------------------
  167|      0|    throw runtime_error("Value too large to fit in 16 bits");
  168|      0|  }
  169|   144k|  uint16_t rval=htons(static_cast<uint16_t>(val));
  170|   144k|  uint8_t* ptr=reinterpret_cast<uint8_t*>(&rval);
  171|   144k|  d_content.insert(d_content.end(), ptr, ptr+2);
  172|   144k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE7xfrNameERK7DNSNameb:
  415|  14.9k|{
  416|  14.9k|  if(l_verbose)
  ------------------
  |  Branch (416:6): [Folded, False: 14.9k]
  ------------------
  417|      0|    cout<<"Wants to write "<<name<<", compress="<<compress<<", canonic="<<d_canonic<<", LC="<<d_lowerCase<<endl;
  418|  14.9k|  if(d_canonic || d_lowerCase)   // d_lowerCase implies canonic
  ------------------
  |  Branch (418:6): [True: 0, False: 14.9k]
  |  Branch (418:19): [True: 0, False: 14.9k]
  ------------------
  419|      0|    compress=false;
  420|       |
  421|  14.9k|  if(name.empty() || name.isRoot()) { // for speed
  ------------------
  |  Branch (421:6): [True: 0, False: 14.9k]
  |  Branch (421:22): [True: 8.69k, False: 6.27k]
  ------------------
  422|  8.69k|    d_content.push_back(0);
  423|  8.69k|    return;
  424|  8.69k|  }
  425|       |
  426|  6.27k|  uint16_t li=0;
  427|  6.27k|  uint16_t matchlen=0;
  428|  6.27k|  if(d_compress && compress && (li=lookupName(name, &matchlen)) && li < maxCompressionOffset) {
  ------------------
  |  Branch (428:6): [True: 6.27k, False: 0]
  |  Branch (428:20): [True: 6.27k, False: 0]
  |  Branch (428:32): [True: 3.26k, False: 3.01k]
  |  Branch (428:68): [True: 3.26k, False: 0]
  ------------------
  429|  3.26k|    const auto& dns=name.getStorage();
  430|  3.26k|    if(l_verbose)
  ------------------
  |  Branch (430:8): [Folded, False: 3.26k]
  ------------------
  431|      0|      cout<<"Found a substring of "<<matchlen<<" bytes from the back, offset: "<<li<<", dnslen: "<<dns.size()<<endl;
  432|       |    // found a substring, if www.powerdns.com matched powerdns.com, we get back matchlen = 13
  433|       |
  434|  3.26k|    unsigned int pos=d_content.size();
  435|  3.26k|    if(pos < maxCompressionOffset && matchlen != dns.size()) {
  ------------------
  |  Branch (435:8): [True: 3.13k, False: 131]
  |  Branch (435:38): [True: 1.69k, False: 1.43k]
  ------------------
  436|  1.69k|      if(l_verbose)
  ------------------
  |  Branch (436:10): [Folded, False: 1.69k]
  ------------------
  437|      0|        cout<<"Inserting pos "<<pos<<" for "<<name<<" for compressed case"<<endl;
  438|  1.69k|      d_namepositions.push_back(pos);
  439|  1.69k|    }
  440|       |
  441|  3.26k|    if(l_verbose)
  ------------------
  |  Branch (441:8): [Folded, False: 3.26k]
  ------------------
  442|      0|      cout<<"Going to write unique part: '"<<makeHexDump(string(dns.c_str(), dns.c_str() + dns.size() - matchlen)) <<"'"<<endl;
  443|  3.26k|    d_content.insert(d_content.end(), (const unsigned char*)dns.c_str(), (const unsigned char*)dns.c_str() + dns.size() - matchlen);
  444|  3.26k|    uint16_t offset=li;
  445|  3.26k|    offset|=0xc000;
  446|       |
  447|  3.26k|    d_content.push_back((char)(offset >> 8));
  448|  3.26k|    d_content.push_back((char)(offset & 0xff));
  449|  3.26k|  }
  450|  3.01k|  else {
  451|  3.01k|    unsigned int pos=d_content.size();
  452|  3.01k|    if(l_verbose)
  ------------------
  |  Branch (452:8): [Folded, False: 3.01k]
  ------------------
  453|      0|      cout<<"Found nothing, we are at pos "<<pos<<", inserting whole name"<<endl;
  454|  3.01k|    if(pos < maxCompressionOffset) {
  ------------------
  |  Branch (454:8): [True: 2.80k, False: 209]
  ------------------
  455|  2.80k|      if(l_verbose)
  ------------------
  |  Branch (455:10): [Folded, False: 2.80k]
  ------------------
  456|      0|        cout<<"Inserting pos "<<pos<<" for "<<name<<" for uncompressed case"<<endl;
  457|  2.80k|      d_namepositions.push_back(pos);
  458|  2.80k|    }
  459|       |
  460|  3.01k|    std::unique_ptr<DNSName> lc;
  461|  3.01k|    if(d_lowerCase)
  ------------------
  |  Branch (461:8): [True: 0, False: 3.01k]
  ------------------
  462|      0|      lc = make_unique<DNSName>(name.makeLowerCase());
  463|       |
  464|  3.01k|    const DNSName::string_t& raw = (lc ? *lc : name).getStorage();
  ------------------
  |  Branch (464:37): [True: 0, False: 3.01k]
  ------------------
  465|  3.01k|    if(l_verbose)
  ------------------
  |  Branch (465:8): [Folded, False: 3.01k]
  ------------------
  466|      0|      cout<<"Writing out the whole thing "<<makeHexDump(string(raw.c_str(),  raw.c_str() + raw.length()))<<endl;
  467|  3.01k|    d_content.insert(d_content.end(), raw.c_str(), raw.c_str() + raw.size());
  468|  3.01k|  }
  469|  6.27k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE7xfrBlobERKNS0_12basic_stringIcNS0_11char_traitsIcEENS2_IcEEEEi:
  472|  61.6k|{
  473|  61.6k|  const uint8_t* ptr=reinterpret_cast<const uint8_t*>(blob.c_str());
  474|  61.6k|  d_content.insert(d_content.end(), ptr, ptr+blob.size());
  475|  61.6k|}
_ZN22GenericDNSPacketWriterINSt3__16vectorIhNS0_9allocatorIhEEEEE10lookupNameERK7DNSNamePt:
  249|  6.27k|{
  250|       |  // iterate over the written labels, see if we find a match
  251|  6.27k|  const auto& raw = name.getStorage();
  252|       |
  253|       |  /* name might be a.root-servers.net, we need to be able to benefit from finding:
  254|       |     b.root-servers.net, or even:
  255|       |     b\xc0\x0c
  256|       |  */
  257|  6.27k|  unsigned int bestpos=0;
  258|  6.27k|  *matchLen = 0;
  259|       |
  260|       |  // positions of each label in the name we are trying to compress
  261|  6.27k|  boost::container::static_vector<uint16_t, 34> positionsInName;
  262|       |  // positions of labels in the packet we are building
  263|  6.27k|  boost::container::static_vector<uint16_t, 34> positionsInPacket;
  264|       |
  265|  6.27k|  try {
  266|  23.0k|    for(auto riter= raw.cbegin(); riter < raw.cend(); ) {
  ------------------
  |  Branch (266:35): [True: 23.0k, False: 0]
  ------------------
  267|  23.0k|      if (*riter == 0) {
  ------------------
  |  Branch (267:11): [True: 6.27k, False: 16.7k]
  ------------------
  268|  6.27k|        break;
  269|  6.27k|      }
  270|  16.7k|      positionsInName.push_back(riter - raw.cbegin());
  271|  16.7k|      riter += *riter + 1;
  272|  16.7k|    }
  273|  6.27k|  }
  274|  6.27k|  catch (const std::bad_alloc& ba) {
  275|      0|    if (l_verbose) {
  ------------------
  |  Branch (275:9): [Folded, False: 0]
  ------------------
  276|      0|      cout << "Domain " << name << " too large to compress" << endl;
  277|      0|    }
  278|      0|    return 0;
  279|      0|  }
  280|       |
  281|  6.27k|  if (l_verbose) {
  ------------------
  |  Branch (281:7): [Folded, False: 6.27k]
  ------------------
  282|      0|    cout<<"Input vector for lookup "<<name<<": ";
  283|      0|    for (const auto n : positionsInName) {
  ------------------
  |  Branch (283:23): [True: 0, False: 0]
  ------------------
  284|      0|      cout << n << " ";
  285|      0|    }
  286|      0|    cout<<endl;
  287|      0|    cout<<makeHexDump(string(raw.c_str(), raw.c_str()+raw.size()))<<endl;
  288|      0|  }
  289|       |
  290|  6.27k|  if (l_verbose) {
  ------------------
  |  Branch (290:7): [Folded, False: 6.27k]
  ------------------
  291|      0|    cout << "Have " << d_namepositions.size() << " to ponder" << endl;
  292|      0|  }
  293|       |
  294|  6.27k|  int counter=1;
  295|  6.27k|  for (const auto positionInPacket : d_namepositions) {
  ------------------
  |  Branch (295:36): [True: 5.31k, False: 4.80k]
  ------------------
  296|       |    // here it's a bit tricky because the names might be compressed,
  297|       |    // so we will gather all labels composing the name, following
  298|       |    // pointers if needed
  299|       |    // for example if there is an uncompressed \1a\1b\1c\0 we will store
  300|       |    // the position of \1a, \1b, \1c
  301|       |    // if there is instead \1a followed by a pointer to \1b\1c\0 earlier
  302|       |    // in the packet we will store the position of \1a, \1b, \1c as well
  303|       |    // they will just be disjoint
  304|  5.31k|    if (l_verbose) {
  ------------------
  |  Branch (304:9): [Folded, False: 5.31k]
  ------------------
  305|      0|      cout<<"Pos: "<<positionInPacket<<", "<<d_content.size()<<endl;
  306|      0|      DNSName pname(reinterpret_cast<const char*>(d_content.data()), d_content.size(), positionInPacket, true); // only for debugging
  307|      0|      cout<<"Looking at '"<<pname<<"' in packet at position "<<positionInPacket<<"/"<<d_content.size()<<", option "<<counter<<"/"<<d_namepositions.size()<<endl;
  308|      0|      ++counter;
  309|      0|    }
  310|  5.31k|    size_t pointerQuota = 50U;
  311|       |    // memcmp here makes things _slower_
  312|  5.31k|    positionsInPacket.clear();
  313|  5.31k|    try {
  314|  22.4k|      for (auto iter = d_content.cbegin() + positionInPacket; iter < d_content.cend() && pointerQuota > 0;) {
  ------------------
  |  Branch (314:63): [True: 22.4k, False: 0]
  |  Branch (314:63): [True: 22.4k, False: 0]
  |  Branch (314:90): [True: 22.4k, False: 0]
  ------------------
  315|  22.4k|        uint8_t labelLength = *iter;
  316|  22.4k|        const uint16_t currentPos = (iter - d_content.cbegin());
  317|  22.4k|        if (l_verbose) {
  ------------------
  |  Branch (317:13): [Folded, False: 22.4k]
  ------------------
  318|      0|          cout << "Found label length: " << std::to_string(labelLength) << " at " << currentPos << endl;
  319|      0|        }
  320|  22.4k|        if (labelLength & 0xc0) {
  ------------------
  |  Branch (320:13): [True: 2.35k, False: 20.0k]
  ------------------
  321|  2.35k|          uint16_t npos = 0x100*(labelLength & (~0xc0)) + *++iter;
  322|       |          // check against going forward
  323|  2.35k|          if (npos >= currentPos || npos < sizeof(dnsheader)) {
  ------------------
  |  Branch (323:15): [True: 0, False: 2.35k]
  |  Branch (323:37): [True: 0, False: 2.35k]
  ------------------
  324|       |            /* something is not right */
  325|      0|            break;
  326|      0|          }
  327|       |
  328|       |          // jump to the target of the pointer
  329|  2.35k|          iter = d_content.begin() + npos;
  330|  2.35k|          if (l_verbose) {
  ------------------
  |  Branch (330:15): [Folded, False: 2.35k]
  ------------------
  331|      0|            cout << "Is compressed label to newpos " << npos << ", going there" << endl;
  332|      0|          }
  333|       |
  334|  2.35k|          if (pointerQuota >= 1) {
  ------------------
  |  Branch (334:15): [True: 2.35k, False: 0]
  ------------------
  335|  2.35k|            pointerQuota--;
  336|  2.35k|            continue;
  337|  2.35k|          }
  338|       |
  339|       |          // out of pointer quota, let's stop there
  340|      0|          break;
  341|  2.35k|        }
  342|       |
  343|  20.0k|        if (labelLength == 0) {
  ------------------
  |  Branch (343:13): [True: 5.25k, False: 14.8k]
  ------------------
  344|  5.25k|          break;
  345|  5.25k|        }
  346|       |
  347|  14.8k|        if (currentPos >= maxCompressionOffset) {
  ------------------
  |  Branch (347:13): [True: 63, False: 14.7k]
  ------------------
  348|     63|          break; // compression pointers cannot point here
  349|     63|        }
  350|       |
  351|  14.7k|        positionsInPacket.push_back(currentPos);
  352|       |        // jump to the next label
  353|  14.7k|        iter += labelLength + 1;
  354|  14.7k|      }
  355|  5.31k|    }
  356|  5.31k|    catch (const std::bad_alloc& ba) {
  357|      0|      if (l_verbose) {
  ------------------
  |  Branch (357:11): [Folded, False: 0]
  ------------------
  358|      0|        cout << "Domain " << name << " too large to compress" << endl;
  359|      0|      }
  360|      0|      continue;
  361|      0|    }
  362|       |
  363|  5.31k|    if (l_verbose) {
  ------------------
  |  Branch (363:9): [Folded, False: 5.31k]
  ------------------
  364|      0|      cout<<"Packet vector: "<<endl;
  365|      0|      for (const auto n : positionsInPacket) {
  ------------------
  |  Branch (365:25): [True: 0, False: 0]
  ------------------
  366|      0|        cout << n << " ";
  367|      0|      }
  368|      0|      cout<<endl;
  369|      0|    }
  370|       |
  371|  5.31k|    auto positionInNameIter = positionsInName.crbegin();
  372|  5.31k|    auto positionInPacketIter = positionsInPacket.crbegin();
  373|  5.31k|    unsigned int cmatchlen=1;
  374|  13.5k|    for(; positionInNameIter != positionsInName.crend() && positionInPacketIter != positionsInPacket.crend(); ++positionInNameIter, ++positionInPacketIter) {
  ------------------
  |  Branch (374:11): [True: 13.5k, False: 0]
  |  Branch (374:11): [True: 12.8k, False: 619]
  |  Branch (374:60): [True: 12.8k, False: 619]
  ------------------
  375|       |      // positionInNameIter is an offset in raw, pvect an offset in packet
  376|  12.8k|      uint8_t nlen = raw[*positionInNameIter];
  377|  12.8k|      uint8_t plen = d_content[*positionInPacketIter];
  378|       |
  379|  12.8k|      if (l_verbose) {
  ------------------
  |  Branch (379:11): [Folded, False: 12.8k]
  ------------------
  380|      0|        cout << "nlnen=" << (int)nlen << ", plen=" << (int)plen << endl;
  381|      0|      }
  382|       |
  383|  12.8k|      if (nlen != plen) {
  ------------------
  |  Branch (383:11): [True: 2.73k, False: 10.1k]
  ------------------
  384|  2.73k|        break;
  385|  2.73k|      }
  386|       |
  387|  10.1k|      auto rawpart = std::string_view(raw.c_str() + *positionInNameIter + 1, nlen); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
  388|  10.1k|      auto pktpart = std::string_view((const char*)&d_content[*positionInPacketIter] + 1, nlen); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
  389|  10.1k|      if (pdns_ilexicographical_compare_three_way(rawpart, pktpart) != 0) {
  ------------------
  |  Branch (389:11): [True: 489, False: 9.65k]
  ------------------
  390|    489|        if (l_verbose) {
  ------------------
  |  Branch (390:13): [Folded, False: 489]
  ------------------
  391|      0|          cout << "Mismatch: " << rawpart << " != " << pktpart << endl;
  392|      0|        }
  393|    489|        break;
  394|    489|      }
  395|       |
  396|  9.65k|      cmatchlen += nlen + 1;
  397|  9.65k|      if (cmatchlen == raw.length()) { // have matched all of it, can't improve
  ------------------
  |  Branch (397:11): [True: 1.46k, False: 8.18k]
  ------------------
  398|  1.46k|        if (l_verbose) {
  ------------------
  |  Branch (398:13): [Folded, False: 1.46k]
  ------------------
  399|      0|          cout << "Stopping search, matched whole name" << endl;
  400|      0|        }
  401|       |
  402|  1.46k|        *matchLen = cmatchlen;
  403|  1.46k|        return *positionInPacketIter;
  404|  1.46k|      }
  405|  9.65k|    }
  406|  3.84k|    if (positionInPacketIter != positionsInPacket.crbegin() && *matchLen < cmatchlen) {
  ------------------
  |  Branch (406:9): [True: 3.78k, False: 63]
  |  Branch (406:9): [True: 2.56k, False: 1.28k]
  |  Branch (406:64): [True: 2.56k, False: 1.21k]
  ------------------
  407|  2.56k|      *matchLen = cmatchlen;
  408|  2.56k|      bestpos = *--positionInPacketIter;
  409|  2.56k|    }
  410|  3.84k|  }
  411|  4.80k|  return bestpos;
  412|  6.27k|}

_Z14getEDNSOptionsPKcmRNSt3__13mapIt14EDNSOptionViewNS1_4lessItEENS1_9allocatorINS1_4pairIKtS3_EEEEEE:
  160|  4.20k|{
  161|  4.20k|  size_t pos = 0;
  162|  4.20k|  if (optRR == nullptr || len < DNS_RDLENGTH_SIZE) {
  ------------------
  |  Branch (162:7): [True: 0, False: 4.20k]
  |  Branch (162:27): [True: 2, False: 4.19k]
  ------------------
  163|      2|    return EINVAL;
  164|      2|  }
  165|       |
  166|  4.19k|  const uint16_t rdLen = (((unsigned char)optRR[pos]) * 256) + ((unsigned char)optRR[pos + 1]);
  167|  4.19k|  size_t rdPos = 0;
  168|  4.19k|  pos += DNS_RDLENGTH_SIZE;
  169|  4.19k|  if ((pos + rdLen) > len) {
  ------------------
  |  Branch (169:7): [True: 3.27k, False: 922]
  ------------------
  170|  3.27k|    return EINVAL;
  171|  3.27k|  }
  172|       |
  173|  20.5k|  while (len >= (pos + EDNS_OPTION_CODE_SIZE + EDNS_OPTION_LENGTH_SIZE) && rdLen >= (rdPos + EDNS_OPTION_CODE_SIZE + EDNS_OPTION_LENGTH_SIZE)) {
  ------------------
  |  Branch (173:10): [True: 20.4k, False: 91]
  |  Branch (173:76): [True: 20.2k, False: 254]
  ------------------
  174|  20.2k|    const uint16_t optionCode = (((unsigned char)optRR[pos]) * 256) + ((unsigned char)optRR[pos + 1]);
  175|  20.2k|    pos += EDNS_OPTION_CODE_SIZE;
  176|  20.2k|    rdPos += EDNS_OPTION_CODE_SIZE;
  177|  20.2k|    const uint16_t optionLen = (((unsigned char)optRR[pos]) * 256) + ((unsigned char)optRR[pos + 1]);
  178|  20.2k|    pos += EDNS_OPTION_LENGTH_SIZE;
  179|  20.2k|    rdPos += EDNS_OPTION_LENGTH_SIZE;
  180|  20.2k|    if (optionLen > (rdLen - rdPos) || optionLen > (len - pos)) {
  ------------------
  |  Branch (180:9): [True: 577, False: 19.6k]
  |  Branch (180:40): [True: 0, False: 19.6k]
  ------------------
  181|    577|      return EINVAL;
  182|    577|    }
  183|  19.6k|    EDNSOptionViewValue value;
  184|  19.6k|    value.content = optRR + pos;
  185|  19.6k|    value.size = optionLen;
  186|  19.6k|    options[optionCode].values.push_back(value);
  187|       |
  188|       |    /* skip this option */
  189|  19.6k|    pos += optionLen;
  190|  19.6k|    rdPos += optionLen;
  191|  19.6k|  }
  192|       |
  193|    345|  return 0;
  194|    922|}
_Z25getEDNSOptionsFromContentRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERNS_6vectorINS_4pairItS5_EENS3_ISA_EEEE:
  197|  4.20k|{
  198|  4.20k|  size_t pos = 0;
  199|  4.20k|  const size_t contentLength = content.size();
  200|       |
  201|  56.0k|  while (pos < contentLength && (contentLength - pos) >= (EDNS_OPTION_CODE_SIZE + EDNS_OPTION_LENGTH_SIZE)) {
  ------------------
  |  Branch (201:10): [True: 55.7k, False: 254]
  |  Branch (201:33): [True: 55.5k, False: 196]
  ------------------
  202|  55.5k|    uint16_t code = (static_cast<unsigned char>(content.at(pos)) * 256) + static_cast<unsigned char>(content.at(pos + 1));
  203|  55.5k|    pos += EDNS_OPTION_CODE_SIZE;
  204|  55.5k|    uint16_t len = (static_cast<unsigned char>(content.at(pos)) * 256) + static_cast<unsigned char>(content.at(pos + 1));
  205|  55.5k|    pos += EDNS_OPTION_LENGTH_SIZE;
  206|       |
  207|  55.5k|    if (pos > contentLength || len > (contentLength - pos)) {
  ------------------
  |  Branch (207:9): [True: 0, False: 55.5k]
  |  Branch (207:32): [True: 3.75k, False: 51.8k]
  ------------------
  208|  3.75k|      return false;
  209|  3.75k|    }
  210|       |
  211|  51.8k|    options.emplace_back(code, content.substr(pos, len));
  212|  51.8k|    pos += len;
  213|  51.8k|  }
  214|       |
  215|    450|  return true;
  216|  4.20k|}

LLVMFuzzerTestOneInput:
   46|  4.20k|{
   47|  4.20k|  static bool initialized = false;
   48|       |
   49|  4.20k|  if (!initialized) {
  ------------------
  |  Branch (49:7): [True: 1, False: 4.20k]
  ------------------
   50|      1|    init();
   51|      1|    initialized = true;
   52|      1|  }
   53|       |
   54|  4.20k|  if (size > std::numeric_limits<uint16_t>::max()) {
  ------------------
  |  Branch (54:7): [True: 5, False: 4.20k]
  ------------------
   55|      5|    return 0;
   56|      5|  }
   57|       |
   58|       |  // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
   59|  4.20k|  const char* chars = reinterpret_cast<const char*>(data);
   60|       |
   61|  4.20k|  try {
   62|       |    // 1) Feed the raw, untrusted bytes straight to the EDNS OPT option parsers:
   63|       |    //    the option TLV decoder in ednsoptions.cc is otherwise unreached.
   64|  4.20k|    EDNSOptionViewMap viewOptions;
   65|  4.20k|    (void)getEDNSOptions(chars, size, viewOptions);
   66|       |
   67|  4.20k|    std::vector<std::pair<uint16_t, std::string>> options;
   68|  4.20k|    (void)getEDNSOptionsFromContent(std::string(chars, size), options);
   69|       |
   70|       |    // 2) Drive DNSPacketWriter with attacker-controlled structures (several
   71|       |    //    records, attacker rdata, name compression, EDNS OPT writing), the
   72|       |    //    full-packet writer paths that the parse/record fuzzers never reach.
   73|  4.20k|    size_t pos = 0;
   74|       |    // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
   75|  4.20k|    const auto getU8 = [&]() -> uint8_t { return pos < size ? data[pos++] : 0; };
   76|  4.20k|    const auto getU16 = [&]() -> uint16_t {
   77|  4.20k|      const uint16_t highV = getU8();
   78|  4.20k|      return static_cast<uint16_t>((highV << 8) | getU8());
   79|  4.20k|    };
   80|       |
   81|  4.20k|    const uint16_t qtype = getU16();
   82|  4.20k|    const DNSName qname(".");
   83|  4.20k|    std::vector<uint8_t> packet;
   84|  4.20k|    DNSPacketWriter writer(packet, qname, qtype);
   85|       |
   86|  4.20k|    static const std::array<const char*, 4> suffixes{".", "example.com.", "a.example.com.", "powerdns.com."};
   87|       |
   88|  4.20k|    const unsigned int records = getU8() % 8U;
   89|  14.0k|    for (unsigned int i = 0; i < records && pos < size; ++i) {
  ------------------
  |  Branch (89:30): [True: 13.0k, False: 1.07k]
  |  Branch (89:45): [True: 9.87k, False: 3.12k]
  ------------------
   90|       |      // A valid name sharing one of a few suffixes (so the name-compression
   91|       |      // paths fire) with an attacker-controlled first label.
   92|  9.87k|      const uint8_t labelLen = getU8() % 32U;
   93|  9.87k|      std::string label;
   94|  39.6k|      for (uint8_t j = 0; j < labelLen && pos < size; ++j) {
  ------------------
  |  Branch (94:27): [True: 29.9k, False: 9.69k]
  |  Branch (94:43): [True: 29.7k, False: 183]
  ------------------
   95|  29.7k|        label.push_back(static_cast<char>('a' + (getU8() % 26)));
   96|  29.7k|      }
   97|  9.87k|      const std::string suffix = suffixes.at(getU8() % suffixes.size());
   98|  9.87k|      DNSName name{};
   99|  9.87k|      try {
  100|  9.87k|        if (label.empty()) {
  ------------------
  |  Branch (100:13): [True: 7.17k, False: 2.70k]
  ------------------
  101|  7.17k|          name = DNSName(suffix);
  102|  7.17k|        }
  103|  2.70k|        else {
  104|  2.70k|          label.append(".");
  105|  2.70k|          label.append(suffix);
  106|  2.70k|          name = DNSName(label);
  107|  2.70k|        }
  108|  9.87k|      }
  109|  9.87k|      catch (...) {
  110|    561|        name = qname;
  111|    561|      }
  112|       |
  113|  9.87k|      const uint16_t rtype = getU16();
  114|  9.87k|      const uint16_t rdlen = getU16();
  115|  9.87k|      std::string rdata;
  116|  11.9M|      for (uint16_t j = 0; j < rdlen && pos < size; ++j) {
  ------------------
  |  Branch (116:28): [True: 11.9M, False: 7.37k]
  |  Branch (116:41): [True: 11.9M, False: 2.49k]
  ------------------
  117|  11.9M|        rdata.push_back(static_cast<char>(getU8()));
  118|  11.9M|      }
  119|       |
  120|  9.87k|      writer.startRecord(name, rtype);
  121|  9.87k|      writer.xfrBlob(rdata);
  122|  9.87k|    }
  123|       |
  124|       |    // EDNS OPT writing fed with the attacker-parsed option vector.
  125|  4.20k|    if (!options.empty()) {
  ------------------
  |  Branch (125:9): [True: 907, False: 3.29k]
  ------------------
  126|    907|      DNSPacketWriter::optvect_t optvect;
  127|  51.7k|      for (const auto& option : options) {
  ------------------
  |  Branch (127:31): [True: 51.7k, False: 907]
  ------------------
  128|  51.7k|        optvect.emplace_back(option.first, option.second);
  129|  51.7k|      }
  130|    907|      writer.addOpt(1232, 0, 0, optvect);
  131|    907|    }
  132|  4.20k|    writer.commit();
  133|       |
  134|       |    // Re-parse the writer's own output.
  135|  4.20k|    if (!packet.empty()) {
  ------------------
  |  Branch (135:9): [True: 4.14k, False: 56]
  ------------------
  136|       |      // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
  137|  4.14k|      MOADNSParser reparse(false, reinterpret_cast<const char*>(packet.data()), packet.size());
  138|  4.14k|    }
  139|  4.20k|  }
  140|       |  // NOLINTNEXTLINE(bugprone-empty-catch)
  141|  4.20k|  catch (const std::exception& e) {
  142|  1.74k|  }
  143|       |  // NOLINTNEXTLINE(bugprone-empty-catch)
  144|  4.20k|  catch (const PDNSException& e) {
  145|      0|  }
  146|       |
  147|  4.20k|  return 0;
  148|  4.20k|}
fuzz_dnspacketroundtrip.cc:_ZL4initv:
   39|      1|{
   40|      1|  reportAllTypes();
   41|      1|}
fuzz_dnspacketroundtrip.cc:_ZZ22LLVMFuzzerTestOneInputENK3$_1clEv:
   76|  23.9k|    const auto getU16 = [&]() -> uint16_t {
   77|  23.9k|      const uint16_t highV = getU8();
   78|  23.9k|      return static_cast<uint16_t>((highV << 8) | getU8());
   79|  23.9k|    };
fuzz_dnspacketroundtrip.cc:_ZZ22LLVMFuzzerTestOneInputENK3$_0clEv:
   75|  12.0M|    const auto getU8 = [&]() -> uint8_t { return pos < size ? data[pos++] : 0; };
  ------------------
  |  Branch (75:50): [True: 12.0M, False: 3.72k]
  ------------------

_ZN12ComboAddressC2Ev:
  212|  92.6k|  {
  213|       |    sin4.sin_family = AF_INET;
  214|  92.6k|    sin4.sin_addr.s_addr = 0;
  215|  92.6k|    sin4.sin_port = 0;
  216|  92.6k|    sin6.sin6_scope_id = 0;
  217|  92.6k|    sin6.sin6_flowinfo = 0;
  218|  92.6k|  }
_ZNK12ComboAddress6isIPv6Ev:
  263|    519|  {
  264|       |    return sin4.sin_family == AF_INET6;
  265|    519|  }
_ZNK12ComboAddress6isIPv4Ev:
  267|  45.8k|  {
  268|       |    return sin4.sin_family == AF_INET;
  269|  45.8k|  }
_Z23makeComboAddressFromRawhPKcm:
  661|  46.3k|{
  662|  46.3k|  ComboAddress address;
  663|       |
  664|  46.3k|  if (version == 4) {
  ------------------
  |  Branch (664:7): [True: 45.8k, False: 519]
  ------------------
  665|  45.8k|    address.sin4.sin_family = AF_INET;
  666|  45.8k|    if (len != sizeof(address.sin4.sin_addr)) {
  ------------------
  |  Branch (666:9): [True: 0, False: 45.8k]
  ------------------
  667|      0|      throw NetmaskException("invalid raw address length");
  668|      0|    }
  669|  45.8k|    memcpy(&address.sin4.sin_addr, raw, sizeof(address.sin4.sin_addr));
  670|  45.8k|  }
  671|    519|  else if (version == 6) {
  ------------------
  |  Branch (671:12): [True: 519, False: 0]
  ------------------
  672|    519|    address.sin6.sin6_family = AF_INET6;
  673|    519|    if (len != sizeof(address.sin6.sin6_addr)) {
  ------------------
  |  Branch (673:9): [True: 0, False: 519]
  ------------------
  674|      0|      throw NetmaskException("invalid raw address length");
  675|      0|    }
  676|    519|    memcpy(&address.sin6.sin6_addr, raw, sizeof(address.sin6.sin6_addr));
  677|    519|  }
  678|      0|  else {
  679|      0|    throw NetmaskException("invalid address family");
  680|      0|  }
  681|       |
  682|  46.3k|  return address;
  683|  46.3k|}
_Z23makeComboAddressFromRawhRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  686|  46.3k|{
  687|  46.3k|  return makeComboAddressFromRaw(version, str.c_str(), str.size());
  688|  46.3k|}

_Z11makeHexDumpRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_:
  548|    198|{
  549|    198|  std::array<char, 5> tmp{};
  550|    198|  string ret;
  551|    198|  ret.reserve(static_cast<size_t>(str.size() * (2 + sep.size())));
  552|       |
  553|   501k|  for (char index : str) {
  ------------------
  |  Branch (553:19): [True: 501k, False: 198]
  ------------------
  554|   501k|    snprintf(tmp.data(), tmp.size(), "%02x", static_cast<unsigned char>(index));
  555|   501k|    ret += tmp.data();
  556|   501k|    ret += sep;
  557|   501k|  }
  558|    198|  return ret;
  559|    198|}

_ZN10NSECBitmap10fromPacketER12PacketReader:
   99|    817|{
  100|    817|  string bitmap;
  101|    817|  pr.xfrBlob(bitmap);
  102|       |
  103|       |  // 00 06 20 00 00 00 00 03  -> NS RRSIG NSEC  ( 2, 46, 47 ) counts from left
  104|    817|  if (bitmap.empty()) {
  ------------------
  |  Branch (104:7): [True: 309, False: 508]
  ------------------
  105|    309|    return;
  106|    309|  }
  107|       |
  108|    508|  if (bitmap.size() < 2) {
  ------------------
  |  Branch (108:7): [True: 6, False: 502]
  ------------------
  109|      6|    throw MOADNSException("NSEC record with impossibly small bitmap");
  110|      6|  }
  111|       |
  112|    502|  size_t position = 0;
  113|    502|  std::optional<uint8_t> lastWindowSeen{std::nullopt};
  114|  1.33k|  while (position + 1 < bitmap.size()) {
  ------------------
  |  Branch (114:10): [True: 984, False: 354]
  ------------------
  115|    984|    const auto window = static_cast<uint8_t>(bitmap.at(position++));
  116|    984|    const auto blen = static_cast<uint8_t>(bitmap.at(position++));
  117|       |
  118|       |    // end if zero padding and ensure packet length
  119|    984|    if (window == 0 && blen == 0) {
  ------------------
  |  Branch (119:9): [True: 210, False: 774]
  |  Branch (119:24): [True: 68, False: 142]
  ------------------
  120|     68|      break;
  121|     68|    }
  122|       |
  123|       |    // rfc4034: "Blocks are present in the NSEC RR RDATA in increasing numerical order."
  124|    916|    if (lastWindowSeen.has_value() && lastWindowSeen.value() >= window) {
  ------------------
  |  Branch (124:9): [True: 440, False: 476]
  |  Branch (124:39): [True: 41, False: 399]
  ------------------
  125|     41|      throw MOADNSException("NSEC record with out of order blocks");
  126|     41|    }
  127|       |
  128|    875|    if (blen > 32) {
  ------------------
  |  Branch (128:9): [True: 25, False: 850]
  ------------------
  129|     25|      throw MOADNSException("NSEC record with invalid bitmap length");
  130|     25|    }
  131|       |
  132|    850|    if (position + blen > bitmap.size()) {
  ------------------
  |  Branch (132:9): [True: 14, False: 836]
  ------------------
  133|     14|      throw MOADNSException("NSEC record with bitmap length > packet length");
  134|     14|    }
  135|       |
  136|    836|    lastWindowSeen = window;
  137|       |
  138|  10.3k|    for (unsigned int k = 0; k < blen; k++) {
  ------------------
  |  Branch (138:30): [True: 9.53k, False: 836]
  ------------------
  139|  9.53k|      uint8_t val = bitmap.at(position++);
  140|  85.8k|      for (int bit = 0; bit < 8 ; ++bit , val >>= 1U) {
  ------------------
  |  Branch (140:25): [True: 76.3k, False: 9.53k]
  ------------------
  141|  76.3k|        if ((val & 1U) != 0) {
  ------------------
  |  Branch (141:13): [True: 45.5k, False: 30.7k]
  ------------------
  142|  45.5k|          set((7 - bit) + (8 * k) + (256 * window));
  143|  45.5k|        }
  144|  76.3k|      }
  145|  9.53k|    }
  146|    836|  }
  147|       |
  148|    422|  if (position != bitmap.size()) {
  ------------------
  |  Branch (148:7): [True: 52, False: 370]
  ------------------
  149|     52|    throw MOADNSException("NSEC record does not use all the record bytes");
  150|     52|  }
  151|       |
  152|    422|}
_ZN17NSECRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  182|      1|{
  183|      1|  regist(1, 47, &make, &make, "NSEC");
  184|      1|}
_ZN17NSECRecordContent4makeERK9DNSRecordR12PacketReader:
  210|    609|{
  211|    609|  auto ret=std::make_shared<NSECRecordContent>();
  212|    609|  pr.xfrName(ret->d_next);
  213|       |
  214|    609|  ret->d_bitmap.fromPacket(pr);
  215|    609|  if (!pr.eof()) {
  ------------------
  |  Branch (215:7): [True: 0, False: 609]
  ------------------
  216|      0|    throw MOADNSException("When parsing NSEC trailing data was not parsed: '" + pr.getRemaining() + "'");
  217|      0|  }
  218|       |
  219|    609|  return ret;
  220|    609|}
_ZN18NSEC3RecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  234|      1|{
  235|      1|  regist(1, 50, &make, &make, "NSEC3");
  236|      1|}
_ZN18NSEC3RecordContent4makeERK9DNSRecordR12PacketReader:
  275|    177|{
  276|    177|  auto ret=std::make_shared<NSEC3RecordContent>();
  277|    177|  pr.xfr8BitInt(ret->d_algorithm);
  278|    177|  pr.xfr8BitInt(ret->d_flags);
  279|    177|  pr.xfr16BitInt(ret->d_iterations);
  280|    177|  uint8_t len;
  281|    177|  pr.xfr8BitInt(len);
  282|    177|  pr.xfrBlob(ret->d_salt, len);
  283|       |
  284|    177|  pr.xfr8BitInt(len);
  285|    177|  pr.xfrBlob(ret->d_nexthash, len);
  286|       |
  287|    177|  ret->d_bitmap.fromPacket(pr);
  288|    177|  if (!pr.eof()) {
  ------------------
  |  Branch (288:7): [True: 0, False: 177]
  ------------------
  289|      0|    throw MOADNSException("When parsing NSEC3 trailing data was not parsed: '" + pr.getRemaining() + "'");
  290|      0|  }
  291|    177|  return ret;
  292|    177|}
_ZN23NSEC3PARAMRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  310|      1|{
  311|      1|  regist(1, 51, &make, &make, "NSEC3PARAM");
  312|      1|  regist(254, 51, &make, &make, "NSEC3PARAM");
  313|      1|}
_ZN23NSEC3PARAMRecordContent4makeERK9DNSRecordR12PacketReader:
  340|     89|{
  341|     89|  auto ret=std::make_shared<NSEC3PARAMRecordContent>();
  342|     89|  pr.xfr8BitInt(ret->d_algorithm);
  343|     89|        pr.xfr8BitInt(ret->d_flags);
  344|     89|        pr.xfr16BitInt(ret->d_iterations);
  345|     89|  uint8_t len;
  346|     89|  pr.xfr8BitInt(len);
  347|     89|  pr.xfrHexBlob(ret->d_salt, len);
  348|     89|  return ret;
  349|     89|}
_ZN18CSYNCRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  367|      1|{
  368|      1|  regist(1, 62, &make, &make, "CSYNC");
  369|      1|}
_ZN18CSYNCRecordContent4makeERK9DNSRecordR12PacketReader:
  398|    122|{
  399|    122|  auto ret=std::make_shared<CSYNCRecordContent>();
  400|    122|  pr.xfr32BitInt(ret->d_serial);
  401|    122|  pr.xfr16BitInt(ret->d_flags);
  402|       |
  403|    122|  ret->d_bitmap.fromPacket(pr);
  404|    122|  if (!pr.eof()) {
  ------------------
  |  Branch (404:7): [True: 0, False: 122]
  ------------------
  405|      0|    throw MOADNSException("When parsing CSYNC trailing data was not parsed: '" + pr.getRemaining() + "'");
  406|      0|  }
  407|    122|  return ret;
  408|    122|}

qtype.cc:_ZL12swapElementsRKNSt3__13mapIKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEtNS_4lessIS7_EENS4_INS_4pairIS7_tEEEEEE:
   98|      2|{
   99|      2|  std::map<uint16_t, const std::string> ret;
  100|       |
  101|    128|  for (const auto& name : names) {
  ------------------
  |  Branch (101:25): [True: 128, False: 2]
  ------------------
  102|    128|    ret.emplace(name.second, name.first);
  103|    128|  }
  104|      2|  return ret;
  105|      2|}

_ZNK6QClasscvtEv:
  201|  23.1k|  {
  202|  23.1k|    return qclass;
  203|  23.1k|  }

_ZN16LOCRecordContent6reportERK36ReportIsOnlyCallableByReportAllTypes:
  202|      1|{
  203|      1|  regist(1, QType::LOC, &make, &make, "LOC");
  204|      1|  regist(254, QType::LOC, &make, &make, "LOC");
  205|      1|}
_ZN16LOCRecordContent4makeERK9DNSRecordR12PacketReader:
  226|     94|{
  227|     94|  auto ret=std::make_shared<LOCRecordContent>();
  228|     94|  pr.xfr8BitInt(ret->d_version);
  229|     94|  pr.xfr8BitInt(ret->d_size);
  230|     94|  pr.xfr8BitInt(ret->d_horizpre);
  231|     94|  pr.xfr8BitInt(ret->d_vertpre);
  232|       |
  233|     94|  pr.xfr32BitInt(ret->d_latitude);
  234|     94|  pr.xfr32BitInt(ret->d_longitude);
  235|     94|  pr.xfr32BitInt(ret->d_altitude);
  236|     94|  if (!pr.eof()) {
  ------------------
  |  Branch (236:7): [True: 4, False: 90]
  ------------------
  237|      4|    throw MOADNSException("When parsing LOC trailing data was not parsed: '" + pr.getRemaining() + "'");
  238|      4|  }
  239|       |
  240|     90|  return ret;
  241|     94|}

_ZN7StatBagC2Ev:
   40|      2|{
   41|      2|  d_doRings=false;
   42|      2|  d_allowRedeclare=false;
   43|      2|}

_ZN8SvcParam11keyToStringERKNS_11SvcParamKeyE:
   66|      5|{
   67|      5|  auto ret = std::find_if(SvcParams.begin(), SvcParams.end(), [&](const std::pair<std::string, SvcParam::SvcParamKey>& e) { return e.second == k; });
   68|      5|  if (ret != SvcParams.end()) {
  ------------------
  |  Branch (68:7): [True: 5, False: 0]
  ------------------
   69|      5|    return ret->first;
   70|      5|  }
   71|      0|  return "key" + std::to_string(k);
   72|      5|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyE:
   75|     65|{
   76|     65|  d_key = key;
   77|     65|  if (d_key != SvcParamKey::no_default_alpn && d_key != SvcParamKey::ohttp && d_key != SvcParamKey::pvd) {
  ------------------
  |  Branch (77:7): [True: 44, False: 21]
  |  Branch (77:48): [True: 24, False: 20]
  |  Branch (77:79): [True: 0, False: 24]
  ------------------
   78|      0|    throw std::invalid_argument("can not create non-empty SvcParam for key '" + keyToString(key) + "'");
   79|      0|  }
   80|     65|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   83|    456|{
   84|    456|  d_key = key;
   85|    456|  if (d_key != SvcParamKey::ech && d_key != SvcParamKey::dohpath && d_key < 11) {
  ------------------
  |  Branch (85:7): [True: 422, False: 34]
  |  Branch (85:36): [True: 410, False: 12]
  |  Branch (85:69): [True: 0, False: 410]
  ------------------
   86|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a string value");
   87|      0|  }
   88|    456|  if (d_key == SvcParamKey::ech) {
  ------------------
  |  Branch (88:7): [True: 34, False: 422]
  ------------------
   89|     34|    std::string d;
   90|       |    // TODO check Base64 decode
   91|     34|    d_ech = value;
   92|     34|    return;
   93|     34|  }
   94|    422|  d_value = value;
   95|    422|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyEONSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE:
   98|    115|{
   99|    115|  d_key = key;
  100|    115|  if (d_key != SvcParamKey::alpn && d_key != SvcParamKey::docpath) {
  ------------------
  |  Branch (100:7): [True: 28, False: 87]
  |  Branch (100:37): [True: 0, False: 28]
  ------------------
  101|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a string-set value");
  102|      0|  }
  103|    115|  d_alpn = std::move(value);
  104|    115|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyEONSt3__13setIS0_NS3_4lessIS0_EENS3_9allocatorIS0_EEEE:
  120|    159|{
  121|    159|  d_key = key;
  122|    159|  if (d_key != SvcParamKey::mandatory) {
  ------------------
  |  Branch (122:7): [True: 0, False: 159]
  ------------------
  123|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a SvcParamKey-set value");
  124|      0|  }
  125|    159|  d_mandatory = std::move(value);
  126|    159|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyEONSt3__16vectorI12ComboAddressNS3_9allocatorIS5_EEEE:
  129|    159|{
  130|    159|  d_key = key;
  131|    159|  if (d_key != SvcParamKey::ipv6hint && d_key != SvcParamKey::ipv4hint) {
  ------------------
  |  Branch (131:7): [True: 121, False: 38]
  |  Branch (131:41): [True: 0, False: 121]
  ------------------
  132|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with an IP address value");
  133|      0|  }
  134|  46.3k|  for (auto const& addr : value) {
  ------------------
  |  Branch (134:25): [True: 46.3k, False: 159]
  ------------------
  135|  46.3k|    if (d_key == SvcParam::ipv6hint && !addr.isIPv6()) {
  ------------------
  |  Branch (135:9): [True: 519, False: 45.8k]
  |  Branch (135:40): [True: 0, False: 519]
  ------------------
  136|      0|      throw std::invalid_argument("non-IPv6 address ('" + addr.toString() + "') passed for " + keyToString(key));
  137|      0|    }
  138|  46.3k|    if (d_key == SvcParam::ipv4hint && !addr.isIPv4()) {
  ------------------
  |  Branch (138:9): [True: 45.8k, False: 519]
  |  Branch (138:40): [True: 0, False: 45.8k]
  ------------------
  139|      0|      throw std::invalid_argument("non-IPv4 address ('" + addr.toString() + "') passed for " + keyToString(key));
  140|      0|    }
  141|  46.3k|  }
  142|    159|  d_ipHints = std::move(value);
  143|    159|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyEONSt3__16vectorItNS3_9allocatorItEEEE:
  146|     98|  d_key(key)
  147|     98|{
  148|     98|  if (d_key != SvcParamKey::tls_supported_groups) {
  ------------------
  |  Branch (148:7): [True: 0, False: 98]
  ------------------
  149|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a uint16 value-vector");
  150|      0|  }
  151|     98|  d_tls_supported_groups = std::move(value);
  152|     98|}
_ZN8SvcParamC2ERKNS_11SvcParamKeyEt:
  155|     13|{
  156|     13|  d_key = key;
  157|     13|  if (d_key != SvcParamKey::port) {
  ------------------
  |  Branch (157:7): [True: 0, False: 13]
  ------------------
  158|      0|    throw std::invalid_argument("can not create SvcParam for " + keyToString(key) + " with a port value");
  159|      0|  }
  160|     13|  d_port = value;
  161|     13|}
_ZNK8SvcParamltERKS_:
  165|  1.86k|{
  166|  1.86k|  return this->d_key < other.getKey();
  167|  1.86k|}
svc-records.cc:_ZZN8SvcParam11keyToStringERKNS_11SvcParamKeyEENK3$_0clERKNSt3__14pairINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES0_EE:
   67|     42|  auto ret = std::find_if(SvcParams.begin(), SvcParams.end(), [&](const std::pair<std::string, SvcParam::SvcParamKey>& e) { return e.second == k; });

_ZNK8SvcParam6getKeyEv:
   99|  1.86k|  {
  100|  1.86k|    return d_key;
  101|  1.86k|  }
_ZN8SvcParam11setAutoHintEb:
  112|    159|  void setAutoHint(const bool value) { d_autohint = value; };

_ZN4pdns5views16UnsignedCharViewC2EPKcm:
   33|  20.9k|    view(data_, size_)
   34|  20.9k|  {
   35|  20.9k|  }
_ZNK4pdns5views16UnsignedCharView2atEm:
   44|  72.4k|  {
   45|  72.4k|    return reinterpret_cast<const unsigned char&>(view.at(pos));
   46|  72.4k|  }
_ZNK4pdns5views16UnsignedCharView4sizeEv:
   60|  38.9k|  {
   61|  38.9k|    return view.size();
   62|  38.9k|  }

