70 explicit Opcode(
const uint8_t code);
91 return (code_ == other.code_);
106 return (code_ != other.code_);
124 std::string
toText()
const;
The Opcode class objects represent standard OPCODEs of the header section of DNS messages as defined ...
static const Opcode & RESERVED3()
A constant object for a reserved (code 3) Opcode.
static const Opcode & RESERVED6()
A constant object for a reserved (code 6) Opcode.
static const Opcode & RESERVED8()
A constant object for a reserved (code 8) Opcode.
std::string toText() const
Convert the Opcode to a string.
static const Opcode & RESERVED12()
A constant object for a reserved (code 12) Opcode.
static const Opcode & RESERVED11()
A constant object for a reserved (code 11) Opcode.
static const Opcode & RESERVED13()
A constant object for a reserved (code 13) Opcode.
static const Opcode & RESERVED14()
A constant object for a reserved (code 14) Opcode.
static const Opcode & STATUS()
A constant object for the STATUS Opcode.
static const Opcode & RESERVED15()
A constant object for a reserved (code 15) Opcode.
static const Opcode & NOTIFY()
A constant object for the NOTIFY Opcode.
static const Opcode & UPDATE()
A constant object for the UPDATE Opcode.
bool nequals(const Opcode &other) const
Return true iff two Opcodes are not equal.
Opcode(const uint8_t code)
Constructor from the code value.
bool operator==(const Opcode &other) const
Same as equals().
CodeValue getCode() const
Returns the Opcode code value.
static const Opcode & RESERVED9()
A constant object for a reserved (code 9) Opcode.
static const Opcode & QUERY()
A constant object for the QUERY Opcode.
bool equals(const Opcode &other) const
Return true iff two Opcodes are equal.
static const Opcode & RESERVED7()
A constant object for a reserved (code 7) Opcode.
static const Opcode & RESERVED10()
A constant object for a reserved (code 10) Opcode.
bool operator!=(const Opcode &other) const
Same as nequals().
CodeValue
Constants for standard OPCODE values.
@ RESERVED13_CODE
13: Reserved for future use (RFC1035)
@ RESERVED15_CODE
15: Reserved for future use (RFC1035)
@ RESERVED12_CODE
12: Reserved for future use (RFC1035)
@ RESERVED10_CODE
10: Reserved for future use (RFC1035)
@ RESERVED11_CODE
11: Reserved for future use (RFC1035)
@ UPDATE_CODE
5: Dynamic update (RFC2136)
@ NOTIFY_CODE
4: Notify (RFC1996)
@ RESERVED7_CODE
7: Reserved for future use (RFC1035)
@ STATUS_CODE
2: Server status request (RFC1035)
@ IQUERY_CODE
1: Inverse query (RFC1035)
@ QUERY_CODE
0: Standard query (RFC1035)
@ RESERVED14_CODE
14: Reserved for future use (RFC1035)
@ RESERVED3_CODE
3: Reserved for future use (RFC1035)
@ RESERVED6_CODE
6: Reserved for future use (RFC1035)
@ RESERVED8_CODE
8: Reserved for future use (RFC1035)
@ RESERVED9_CODE
9: Reserved for future use (RFC1035)
static const Opcode & IQUERY()
A constant object for the IQUERY Opcode.
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.