]> granicus.if.org Git - pdns/commitdiff
move policy enum around. Creative use of namespace btw.
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 18 Dec 2015 19:00:29 +0000 (20:00 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 18 Dec 2015 19:00:29 +0000 (20:00 +0100)
pdns/dns.hh
pdns/syncres.hh

index 1cb12dcf35bafbba91dfbfb5473716034069793f..cdd8fa042bcf952df0a9ee1054bf8275fadfe2e8 100644 (file)
@@ -66,6 +66,9 @@ public:
   enum { Query=0, IQuery=1, Status=2, Notify=4, Update=5 };
 };
 
+// enum for policy decisions, used by both auth and recursor. Not all values supported everywhere.
+namespace PolicyDecision { enum returnTypes { PASS=-1, DROP=-2, TRUNCATE=-3 }; };
+
 //! This class represents a resource record
 class DNSResourceRecord
 {
index 0f3de7b828e6dbf10b11a31fcd481fe647c1ca13..17d4ede5fea397353f0a94df8f8c5c92704e80c2 100644 (file)
@@ -676,6 +676,5 @@ void doCarbonDump(void*);
 boost::optional<Netmask> getEDNSSubnetMask(const ComboAddress& local, const DNSName&dn, const ComboAddress& rem);
 void  parseEDNSSubnetWhitelist(const std::string& wlist);
 
-// enum for policy decisions, used by both auth and recursor. Not all values supported everywhere.
-namespace PolicyDecision { enum returnTypes { PASS=-1, DROP=-2, TRUNCATE=-3 }; };
+
 #endif