From: Aki Tuomi Date: Thu, 20 Feb 2014 06:21:31 +0000 (+0200) Subject: Use Err# prefix X-Git-Tag: rec-3.6.0-rc1~173^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b47a9990ac3f3ff2d92dc7ff1e957a8d01f8c6b8;p=thirdparty%2Fpdns.git Use Err# prefix --- diff --git a/pdns/dns.cc b/pdns/dns.cc index 8ddbab5660..47fb275a99 100644 --- a/pdns/dns.cc +++ b/pdns/dns.cc @@ -19,11 +19,11 @@ std::vector RCode::rcodes_s = boost::assign::list_of ("RR Set that should exist does not") ("Server Not Authoritative for zone") ("Name not contained in zone") - ("unassigned") - ("unassigned") - ("unassigned") - ("unassigned") - ("unassigned") + ("Err#11") + ("Err#12") + ("Err#13") + ("Err#14") + ("Err#15") ("Bad OPT Version") ("TSIG Signature Failure") ("Key not recognized") @@ -34,7 +34,7 @@ std::vector RCode::rcodes_s = boost::assign::list_of std::string RCode::to_s(unsigned short rcode) { if (rcode > 21) - return boost::lexical_cast(rcode); + return std::string("Err#")+boost::lexical_cast(rcode); return RCode::rcodes_s[rcode]; }