]> granicus.if.org Git - pdns/commitdiff
make an ENTRecordType
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 5 Sep 2016 09:01:57 +0000 (11:01 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 13 Sep 2016 10:53:30 +0000 (12:53 +0200)
pdns/dnsrecords.cc
pdns/dnsrecords.hh
pdns/qtype.hh

index ed0fa758686cca2ca9b8271043e8948ec7eac891..b0d5b5948983589194b0e32de8cc6fa6b1b7082d 100644 (file)
@@ -150,6 +150,7 @@ boilerplate_conv(DNAME, QType::DNAME, conv.xfrName(d_content));
 boilerplate_conv(MR, QType::MR, conv.xfrName(d_alias, true));
 boilerplate_conv(MINFO, QType::MINFO, conv.xfrName(d_rmailbx, true); conv.xfrName(d_emailbx, true));
 boilerplate_conv(TXT, QType::TXT, conv.xfrText(d_text, true));
+boilerplate_conv(ENT, 0, );
 boilerplate_conv(SPF, 99, conv.xfrText(d_text, true));
 boilerplate_conv(HINFO, QType::HINFO,  conv.xfrText(d_cpu);   conv.xfrText(d_host));
 
@@ -592,6 +593,7 @@ void reportOtherTypes()
    SPFRecordContent::report();
    NAPTRRecordContent::report();
    LOCRecordContent::report();
+   ENTRecordContent::report();
    HINFORecordContent::report();
    RPRecordContent::report();
    KEYRecordContent::report();
index e80e9a139de34aaa97152b4cb76128debc119138..a597162fb6647ad41c52928ed7814a35417b8e1e 100644 (file)
@@ -164,6 +164,12 @@ public:
   string d_text;
 };
 
+class ENTRecordContent : public DNSRecordContent
+{
+public:
+  includeboilerplate(ENT)
+};
+
 class SPFRecordContent : public DNSRecordContent
 {
 public:
index 3e78cb034d0c205b984650c298db748f7872e59e..1514e04e8bb5dbed7181d2ce6086f436a2594035 100644 (file)
@@ -77,6 +77,7 @@ public:
 
   static int chartocode(const char *p); //!< convert a character string to a code
   enum typeenum : uint16_t {
+    ENT=0,
     A=1,
     NS=2,
     CNAME=5,