Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
const auto* drh = reinterpret_cast<const dnsrecordheader*>(&question.at(pos)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
if (ntohs(drh->d_type) == QType::OPT) {
uint32_t edns{};
- memcpy(&edns, &drh->d_ttl, sizeof(edns)); // drh is not neccesarily aligned, so no uint32 assignment can be done
+ memcpy(&edns, &drh->d_ttl, sizeof(edns)); // drh is not necessarily aligned, so no uint32 assignment can be done
ednsVersion = edns;
}
pos += sizeof(dnsrecordheader);
fd2.reset();
BOOST_CHECK_EQUAL(records, count);
- // NS speed table is a hashed unique table, which not neccesarily stable wrt recreation
+ // NS speed table is a hashed unique table, which not necessarily stable wrt recreation
// So we read the lines, sort them and compare
std::ifstream file1(temp1);
std::ifstream file2(temp2);