12#include <boost/lexical_cast.hpp> 
   22const char* 
const tsigerror_text[] = {
 
   34    if (code_ > MAX_RCODE_FOR_TSIGERROR) {
 
 
   41    if (code_ <= MAX_RCODE_FOR_TSIGERROR) {
 
   44        return (tsigerror_text[code_ - (MAX_RCODE_FOR_TSIGERROR + 1)]);
 
   46        return (boost::lexical_cast<std::string>(code_));
 
 
   52    if (code_ <= MAX_RCODE_FOR_TSIGERROR) {
 
   53        return (
Rcode(code_));
 
 
   63    return (os << error.toText());
 
 
A generic exception that is thrown if a parameter given to a method would refer to or modify out-of-r...
DNS Response Codes (RCODEs) class.
static const Rcode & NOTAUTH()
A constant object for the NOTAUTH Rcode (see Rcode::NOTAUTH_CODE).
static const Rcode & SERVFAIL()
A constant object for the SERVFAIL Rcode (see Rcode::SERVFAIL_CODE).
@ BAD_TRUNC_CODE
22: Bad truncation
std::string toText() const
Convert the TSIGError to a string.
TSIGError(uint16_t error_code)
Constructor from the code value.
uint16_t getCode() const
Returns the TSIGCode error code value.
Rcode toRcode() const
Convert the TSIGError to a Rcode.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
Defines the logger used by the top-level component of kea-lfc.