From: Peter van Dijk Date: Sat, 27 Mar 2021 21:38:17 +0000 (+0100) Subject: qtypes: check type registration; add CSYNC X-Git-Tag: dnsdist-1.6.0-rc1~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b67e4b1a31d3f40887fa1bc6320901ce73aa5d;p=thirdparty%2Fpdns.git qtypes: check type registration; add CSYNC --- diff --git a/pdns/qtype.cc b/pdns/qtype.cc index 7c23075b97..c8544661b9 100644 --- a/pdns/qtype.cc +++ b/pdns/qtype.cc @@ -72,6 +72,7 @@ const map QType::names = { {"CDS", 59}, {"CDNSKEY", 60}, {"OPENPGPKEY", 61}, + {"CSYNC", 62}, {"SVCB", 64}, {"HTTPS", 65}, {"SPF", 99}, diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index 22f87700ef..ae5f3eb1d4 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -253,6 +253,7 @@ BOOST_AUTO_TEST_CASE(test_record_types) { const broken_marker broken = val.get<4>(); if (lq != q.getCode()) n = 0; + if (q.getCode() != QType::TSIG && q.getCode() != 65226) BOOST_CHECK_MESSAGE(QType::names.find(q.getName()) != QType::names.end(), "qtype " << q.getName() << " not registered in QType::names"); BOOST_CHECK_MESSAGE(q.getCode() >= lq, "record types should be sorted such that qtype " << q.getCode() << " is before " << lq); lq = q.getCode(); n++;