21const char *opcodetext[] = {
41const uint8_t MAX_OPCODE = 15;
45 if (code > MAX_OPCODE) {
47 "DNS Opcode is too large to construct: "
48 <<
static_cast<unsigned>(code));
54 return (opcodetext[code_]);
59 return (os << opcode.toText());
A generic exception that is thrown if a parameter given to a method would refer to or modify out-of-r...
The Opcode class objects represent standard OPCODEs of the header section of DNS messages as defined ...
std::string toText() const
Convert the Opcode to a string.
Opcode(const uint8_t code)
Constructor from the code value.
CodeValue
Constants for standard OPCODE values.
#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.