]> granicus.if.org Git - pdns/commitdiff
Updated as per registry
authorAki Tuomi <cmouse@desteem.org>
Thu, 20 Feb 2014 13:22:08 +0000 (15:22 +0200)
committerAki Tuomi <cmouse@desteem.org>
Thu, 20 Feb 2014 13:22:08 +0000 (15:22 +0200)
pdns/dns.cc

index 47fb275a99244d94198f74b41d80a40d9f04c5d9..7b58c95682dfa015d8cab82bdf0f83e69969ab0c 100644 (file)
@@ -17,23 +17,24 @@ std::vector<std::string> 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<std::string>(rcode);
   return RCode::rcodes_s[rcode];
 }