From 51083cab90dd1f52718af15f0d40ca50f71ded2e Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Sat, 19 Jun 2010 12:11:48 +0000 Subject: [PATCH] commit prototype of WKS record, non-functional git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1644 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/dnsrecords.hh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 2efb6fc96..4a655f540 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -24,6 +24,7 @@ #include "rcpgenerator.hh" #include #include +#include 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: -- 2.40.0