static int chartocode(const char *p); //!< convert a character string to a code
// more solaris fun
#undef DS
- enum typeenum {A=1, NS=2, CNAME=5, SOA=6, MR=9, WKS=11, PTR=12, HINFO=13, MINFO=14, MX=15, TXT=16, RP=17, AFSDB=18, SIG=24, KEY=25, AAAA=28, LOC=29, SRV=33, NAPTR=35, KX=36,
+ enum typeenum : uint16_t {A=1, NS=2, CNAME=5, SOA=6, MR=9, WKS=11, PTR=12, HINFO=13, MINFO=14, MX=15, TXT=16, RP=17, AFSDB=18, SIG=24, KEY=25, AAAA=28, LOC=29, SRV=33, NAPTR=35, KX=36,
CERT=37, A6=38, DNAME=39, OPT=41, DS=43, SSHFP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51,
- TLSA=52, SPF=99, EUI48=108, EUI64=109, TKEY=249, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, ADDR=259, ALIAS=260, DLV=32769} types;
+ TLSA=52, SPF=99, EUI48=108, EUI64=109, TKEY=249, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, ADDR=259, ALIAS=260, DLV=32769};
typedef pair<string,uint16_t> namenum;
static vector<namenum> names;
uint16_t qtype, qclass;
DNSName dn((char*)&packet[0], packet.size(), 12, false, &qtype, &qclass);
BOOST_CHECK_EQUAL(dn.toString(), "www.ds9a.nl.");
- BOOST_CHECK_EQUAL(qtype, QType::AAAA);
+ BOOST_CHECK(qtype == QType::AAAA);
BOOST_CHECK_EQUAL(qclass, 1);
dpw.startRecord("ds9a.nl.", DNSRecordContent::TypeToNumber("NS"));
DNSName dn2((char*)&packet[0], packet.size(), 12+13+4, true, &qtype, &qclass);
BOOST_CHECK_EQUAL(dn2.toString(), "ds9a.nl.");
- BOOST_CHECK_EQUAL(qtype, QType::NS);
+ BOOST_CHECK(qtype == QType::NS);
BOOST_CHECK_EQUAL(qclass, 1);
DNSName dn3((char*)&packet[0], packet.size(), 12+13+4+2 + 4 + 4 + 2, true);