From: Aki Tuomi Date: Thu, 20 Feb 2014 13:22:08 +0000 (+0200) Subject: Updated as per registry X-Git-Tag: rec-3.6.0-rc1~173^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fc3ef66567713fae77a48c99a52970b6c96f1e6;p=pdns Updated as per registry --- diff --git a/pdns/dns.cc b/pdns/dns.cc index 47fb275a9..7b58c9568 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -17,23 +17,24 @@ std::vector RCode::rcodes_s = boost::assign::list_of ("Name Exists when it should not") ("RR Set Exists when it should not") ("RR Set that should exist does not") - ("Server Not Authoritative for zone") + ("Server Not Authoritative for zone / Not Authorized") ("Name not contained in zone") ("Err#11") ("Err#12") ("Err#13") ("Err#14") ("Err#15") - ("Bad OPT Version") - ("TSIG Signature Failure") + ("Bad OPT Version / TSIG Signature Failure") ("Key not recognized") ("Signature out of time window") ("Bad TKEY Mode") ("Duplicate key name") - ("Algorithm not supported"); + ("Algorithm not supported") + ("Bad Truncation") +; std::string RCode::to_s(unsigned short rcode) { - if (rcode > 21) + if (rcode > RCode::rcodes_s.size()-1 ) return std::string("Err#")+boost::lexical_cast(rcode); return RCode::rcodes_s[rcode]; }