]> granicus.if.org Git - pdns/commitdiff
commit prototype of WKS record, non-functional
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 19 Jun 2010 12:11:48 +0000 (12:11 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 19 Jun 2010 12:11:48 +0000 (12:11 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1644 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsrecords.hh

index 2efb6fc96ed4d4f440afd1120502f227b2d09720..4a655f540502138cf047fd9cbe535b08712d3053 100644 (file)
@@ -24,6 +24,7 @@
 #include "rcpgenerator.hh"
 #include <boost/lexical_cast.hpp>
 #include <set>
+#include <bitset>
 
 using namespace std;
 #include "namespaces.hh"
@@ -415,6 +416,26 @@ public:
 private:
 };
 
+
+class WKSRecordContent : public DNSRecordContent
+{
+public:
+  static void report(void);
+  WKSRecordContent() : DNSRecordContent(ns_t_wks)
+  {}
+  WKSRecordContent(const string& content, const string& zone="");
+
+  static DNSRecordContent* make(const DNSRecord &dr, PacketReader& pr);
+  static DNSRecordContent* make(const string& content);
+  string getZoneRepresentation() const;
+  void toPacket(DNSPacketWriter& pw);
+
+  uint32_t d_ip;
+  std::bitset<65535> d_services;
+private:
+};
+
+
 class URLRecordContent : public DNSRecordContent // Fake, 'fancy record' with type 256
 {
 public: