From: Bert Hubert Date: Sat, 1 Mar 2008 22:44:03 +0000 (+0000) Subject: add more record types to the enum, plus fix up the ns_t_kx/ns_t_mx confusion X-Git-Tag: rec-3.1.7.1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39d464c44ece4bd7c9a90a5e88a816ee646a81c7;p=thirdparty%2Fpdns.git add more record types to the enum, plus fix up the ns_t_kx/ns_t_mx confusion git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1148 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 6919f9f874..44238d9172 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -215,7 +215,7 @@ boilerplate_conv(MX, ns_t_mx, conv.xfrLabel(d_mxname, true); ) -boilerplate_conv(KX, ns_t_mx, +boilerplate_conv(KX, ns_t_kx, conv.xfr16BitInt(d_preference); conv.xfrLabel(d_exchanger, false); ) diff --git a/pdns/qtype.hh b/pdns/qtype.hh index 4951db5b1b..7daed2674a 100644 --- a/pdns/qtype.hh +++ b/pdns/qtype.hh @@ -72,7 +72,8 @@ public: static int chartocode(const char *p); //!< convert a character string to a code - enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, OPT=41, + enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, KX=36, + CERT=37,OPT=41, DS=43, SSHDP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, SPF=99, AXFR=252, IXFR=251, ANY=255, URL=256, MBOXFW=257, CURL=258, ADDR=259} types; private: short int code;