52 explicit TSIGError(uint16_t error_code) : code_(error_code) {}
86 return (code_ == other.code_);
102 return (code_ != other.code_);
124 std::string
toText()
const;
221 static const int MAX_RCODE_FOR_TSIGERROR = 15;
226inline const TSIGError&
DNS Response Codes (RCODEs) class.
static const Rcode & RESERVED13()
A constant object for a reserved (code 13) Rcode.
static const Rcode & NOERROR()
A constant object for the NOERROR Rcode (see Rcode::NOERROR_CODE).
static const Rcode & RESERVED11()
A constant object for a reserved (code 11) Rcode.
static const Rcode & FORMERR()
A constant object for the FORMERR Rcode (see Rcode::FORMERR_CODE).
static const Rcode & RESERVED14()
A constant object for a reserved (code 14) Rcode.
static const Rcode & NXRRSET()
A constant object for the NXRRSET Rcode (see Rcode::NXRRSET_CODE).
static const Rcode & NXDOMAIN()
A constant object for the NXDOMAIN Rcode (see Rcode::NXDOMAIN_CODE).
static const Rcode & NOTIMP()
A constant object for the NOTIMP Rcode (see Rcode::NOTIMP_CODE).
static const Rcode & YXRRSET()
A constant object for the YXRRSET Rcode (see Rcode::YXRRSET_CODE).
static const Rcode & RESERVED12()
A constant object for a reserved (code 12) Rcode.
static const Rcode & RESERVED15()
A constant object for a reserved (code 15) Rcode.
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).
static const Rcode & NOTZONE()
A constant object for the NOTZONE Rcode (see Rcode::NOTZONE_CODE).
static const Rcode & REFUSED()
A constant object for the REFUSED Rcode (see Rcode::REFUSED_CODE).
static const Rcode & YXDOMAIN()
A constant object for the YXDOMAIN Rcode (see Rcode::YXDOMAIN_CODE).
bool operator==(const TSIGError &other) const
Same as equals().
static const TSIGError & SERVFAIL()
A constant TSIG error object derived from Rcode::SERVFAIL()
bool nequals(const TSIGError &other) const
Return true iff two TSIGError objects are not equal.
static const TSIGError & RESERVED14()
A constant TSIG error object derived from Rcode::RESERVED14()
CodeValue
Constants for pre-defined TSIG error values.
@ BAD_ALG_CODE
21: TKEY algorithm not supported
@ BAD_NAME_CODE
20: Duplicate TKEY name
@ BAD_KEY_CODE
17: TSIG key is not recognized
@ BAD_TRUNC_CODE
22: Bad truncation
@ BAD_TIME_CODE
18: Current time and time signed are too different
@ BAD_SIG_CODE
16: TSIG verification failure
@ BAD_MODE_CODE
19: Bad TKEY mode
static const TSIGError & YXRRSET()
A constant TSIG error object derived from Rcode::YXRRSET()
static const TSIGError & BAD_ALG()
A constant TSIG error object for the BADALG code (see TSIGError::BAD_ALG_CODE).
bool operator!=(const TSIGError &other) const
Same as nequals().
static const TSIGError & YXDOMAIN()
A constant TSIG error object derived from Rcode::YXDOMAIN()
static const TSIGError & NOTZONE()
A constant TSIG error object derived from Rcode::NOTZONE()
std::string toText() const
Convert the TSIGError to a string.
static const TSIGError & BAD_NAME()
A constant TSIG error object for the BADNAME code (see TSIGError::BAD_NAME_CODE).
static const TSIGError & NXRRSET()
A constant TSIG error object derived from Rcode::NXRRSET()
static const TSIGError & NOTIMP()
A constant TSIG error object derived from Rcode::NOTIMP()
static const TSIGError & REFUSED()
A constant TSIG error object derived from Rcode::REFUSED()
TSIGError(uint16_t error_code)
Constructor from the code value.
static const TSIGError & RESERVED11()
A constant TSIG error object derived from Rcode::RESERVED11()
static const TSIGError & RESERVED15()
A constant TSIG error object derived from Rcode::RESERVED15()
static const TSIGError & BAD_SIG()
A constant TSIG error object for the BADSIG code (see TSIGError::BAD_SIG_CODE).
static const TSIGError & BAD_MODE()
A constant TSIG error object for the BADMODE code (see TSIGError::BAD_MODE_CODE).
static const TSIGError & BAD_KEY()
A constant TSIG error object for the BADKEY code (see TSIGError::BAD_KEY_CODE).
static const TSIGError & BAD_TIME()
A constant TSIG error object for the BADTIME code (see TSIGError::BAD_TIME_CODE).
static const TSIGError & NXDOMAIN()
A constant TSIG error object derived from Rcode::NXDOMAIN()
uint16_t getCode() const
Returns the TSIGCode error code value.
static const TSIGError & RESERVED13()
A constant TSIG error object derived from Rcode::RESERVED13()
static const TSIGError & NOTAUTH()
A constant TSIG error object derived from Rcode::NOTAUTH()
static const TSIGError & NOERROR()
A constant TSIG error object derived from Rcode::NOERROR()
static const TSIGError & BAD_TRUNC()
A constant TSIG error object for the BADTRUNC code (see TSIGError::BAD_TRUNC_CODE).
static const TSIGError & FORMERR()
A constant TSIG error object derived from Rcode::FORMERR()
static const TSIGError & RESERVED12()
A constant TSIG error object derived from Rcode::RESERVED12()
bool equals(const TSIGError &other) const
Return true iff two TSIGError objects are equal.
Rcode toRcode() const
Convert the TSIGError to a Rcode.
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.