]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
implement RKEY record type. No regression test since none have ever been spotted...
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 12 Jun 2013 13:22:38 +0000 (15:22 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 12 Jun 2013 13:22:38 +0000 (15:22 +0200)
pdns/dnsrecords.cc
pdns/dnsrecords.hh

index 611def6f33fc5507d4ff788a6d7cfa56ac06735f..8cf943707198ca2ad22a3ae8801a28f99fdc717e 100644 (file)
@@ -252,8 +252,14 @@ boilerplate_conv(DNSKEY, 48,
                 )
 DNSKEYRecordContent::DNSKEYRecordContent() : DNSRecordContent(48) {}
 
-/* EUI48 start */
+boilerplate_conv(RKEY, 57, 
+                conv.xfr16BitInt(d_flags); 
+                conv.xfr8BitInt(d_protocol); 
+                conv.xfrBlob(d_key);
+                )
+RKEYRecordContent::RKEYRecordContent() : DNSRecordContent(57) {}
 
+/* EUI48 start */
 void EUI48RecordContent::report(void) 
 {
     regist(1, ns_t_eui48, &make, &make, "EUI48");
@@ -420,6 +426,7 @@ void reportOtherTypes()
    RPRecordContent::report();
    KEYRecordContent::report();
    DNSKEYRecordContent::report();
+   RKEYRecordContent::report();
    RRSIGRecordContent::report();
    DSRecordContent::report();
    SSHFPRecordContent::report();
index 63d140cb3d028f7375733625fabc3461fc048741..719f55a3008031da41cb377c561e1235275a33d8 100644 (file)
@@ -352,6 +352,15 @@ public:
   };
 //}
 
+class RKEYRecordContent : public DNSRecordContent
+{
+public:
+  RKEYRecordContent();
+  includeboilerplate(RKEY)
+  uint16_t d_flags;
+  uint8_t d_protocol, d_algorithm;
+  string d_key;
+};
 
 class SOARecordContent : public DNSRecordContent
 {