From: bert hubert Date: Fri, 18 Dec 2015 19:00:29 +0000 (+0100) Subject: move policy enum around. Creative use of namespace btw. X-Git-Tag: dnsdist-1.0.0-alpha1~45^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d6a5c51652302307bc5c6efa7b1023e40ea38d;p=thirdparty%2Fpdns.git move policy enum around. Creative use of namespace btw. --- diff --git a/pdns/dns.hh b/pdns/dns.hh index 1cb12dcf35..cdd8fa042b 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -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 { diff --git a/pdns/syncres.hh b/pdns/syncres.hh index 0f3de7b828..17d4ede5fe 100644 --- a/pdns/syncres.hh +++ b/pdns/syncres.hh @@ -676,6 +676,5 @@ void doCarbonDump(void*); boost::optional 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