80 explicit Rcode(
const uint16_t code);
98 Rcode(
const uint8_t code,
const uint8_t extended_code);
130 return (code_ == other.code_);
145 return (code_ != other.code_);
166 std::string
toText()
const;
DNS Response Codes (RCODEs) class.
static const Rcode & RESERVED13()
A constant object for a reserved (code 13) Rcode.
bool operator==(const Rcode &other) const
Same as equals().
Rcode(const uint16_t code)
Constructor from the code value.
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).
std::string toText() const
Convert the Rcode to a string.
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).
bool operator!=(const Rcode &other) const
Same as nequals().
uint16_t getCode() const
Returns the Rcode code value.
static const Rcode & BADVERS()
A constant object for the BADVERS Rcode (see Rcode::BADVERS_CODE).
bool equals(const Rcode &other) const
Return true iff two Rcodes are equal.
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.
bool nequals(const Rcode &other) const
Return true iff two Rcodes are not equal.
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).
uint8_t getExtendedCode() const
Returns the upper 8-bit of the Rcode code value.
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).
CodeValue
Constants for pre-defined RCODE values.
@ YXRRSET_CODE
7: RRset unexpectedly exists (RFC2136)
@ RESERVED15_CODE
15: Reserved for future use (RFC1035)
@ NOTIMP_CODE
4: Not Implemented (RFC1035)
@ NXRRSET_CODE
8: RRset should exist but not (RFC2136)
@ RESERVED12_CODE
12: Reserved for future use (RFC1035)
@ FORMERR_CODE
1: Format error (RFC1035)
@ SERVFAIL_CODE
2: Server failure (RFC1035)
@ RESERVED13_CODE
13: Reserved for future use (RFC1035)
@ RESERVED11_CODE
11: Reserved for future use (RFC1035)
@ RESERVED14_CODE
14: Reserved for future use (RFC1035)
@ NXDOMAIN_CODE
3: Name Error (RFC1035)
@ REFUSED_CODE
5: Refused (RFC1035)
@ YXDOMAIN_CODE
6: Name unexpectedly exists (RFC2136)
@ NOTZONE_CODE
10: Name is not within the zone (RFC2136)
@ NOTAUTH_CODE
9: Server isn't authoritative (RFC2136)
@ NOERROR_CODE
0: No error (RFC1035)
@ BADVERS_CODE
16: EDNS version not implemented (RFC2671)
static const Rcode & YXDOMAIN()
A constant object for the YXDOMAIN Rcode (see Rcode::YXDOMAIN_CODE).
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.