63 explicit Opcode(
const uint8_t code);
89 {
return (code_ == other.code_); }
101 {
return (code_ != other.code_); }
116 std::string
toText()
const;
8: Reserved for future use (RFC1035)
6: Reserved for future use (RFC1035)
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
static const Opcode & RESERVED7()
A constant object for a reserved (code 7) Opcode.
CodeValue
Constants for standard OPCODE values.
9: Reserved for future use (RFC1035)
7: Reserved for future use (RFC1035)
static const Opcode & RESERVED6()
A constant object for a reserved (code 6) Opcode.
bool equals(const Opcode &other) const
Return true iff two Opcodes are equal.
std::string toText() const
Convert the Opcode to a string.
5: Dynamic update (RFC2136)
bool operator==(const Opcode &other) const
Same as equals().
3: Reserved for future use (RFC1035)
static const Opcode & RESERVED15()
A constant object for a reserved (code 15) Opcode.
15: Reserved for future use (RFC1035)
2: Server status request (RFC1035)
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 & RESERVED8()
A constant object for a reserved (code 8) Opcode.
static const Opcode & QUERY()
A constant object for the QUERY Opcode.
static const Opcode & RESERVED12()
A constant object for a reserved (code 12) Opcode.
static const Opcode & UPDATE()
A constant object for the UPDATE Opcode.
static const Opcode & NOTIFY()
A constant object for the NOTIFY Opcode.
bool nequals(const Opcode &other) const
Return true iff two Opcodes are not equal.
static const Opcode & RESERVED9()
A constant object for a reserved (code 9) Opcode.
12: Reserved for future use (RFC1035)
11: Reserved for future use (RFC1035)
bool operator!=(const Opcode &other) const
Same as nequals().
static const Opcode & RESERVED10()
A constant object for a reserved (code 10) Opcode.
CodeValue getCode() const
Returns the Opcode code value.
13: Reserved for future use (RFC1035)
0: Standard query (RFC1035)
static const Opcode & IQUERY()
A constant object for the IQUERY Opcode.
Defines the logger used by the top-level component of kea-dhcp-ddns.
1: Inverse query (RFC1035)
static const Opcode & STATUS()
A constant object for the STATUS Opcode.
10: Reserved for future use (RFC1035)
static const Opcode & RESERVED14()
A constant object for a reserved (code 14) Opcode.
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.
Opcode(const uint8_t code)
Constructor from the code value.
14: Reserved for future use (RFC1035)