Kea 2.7.5
|
Public Member Functions | |
MessageImpl (Message::Mode mode) | |
void | addEDNS (Message::Section section, const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl, const Rdata &rdata) |
void | addRR (Message::Section section, const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl, ConstRdataPtr rdata, Message::ParseOptions options) |
void | addRR (Message::Section section, const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &ttl, Message::ParseOptions options) |
void | addTSIG (Message::Section section, unsigned int count, const InputBuffer &buffer, size_t start_position, const Name &name, const RRClass &rrclass, const RRTTL &ttl, const Rdata &rdata) |
void | init () |
int | parseQuestion (InputBuffer &buffer) |
int | parseSection (const Message::Section section, InputBuffer &buffer, Message::ParseOptions options) |
void | setOpcode (const Opcode &opcode) |
void | setRcode (const Rcode &rcode) |
void | toWire (AbstractMessageRenderer &renderer, TSIGContext *tsig_ctx) |
Public Attributes | |
int | counts_ [NUM_SECTIONS] |
ConstEDNSPtr | edns_ |
uint16_t | flags_ |
bool | header_parsed_ |
Message::Mode | mode_ |
const Opcode * | opcode_ |
Opcode | opcode_placeholder_ |
qid_t | qid_ |
vector< QuestionPtr > | questions_ |
const Rcode * | rcode_ |
Rcode | rcode_placeholder_ |
vector< RRsetPtr > | rrsets_ [NUM_SECTIONS] |
ConstTSIGRecordPtr | tsig_rr_ |
Static Public Attributes | |
static const unsigned int | NUM_SECTIONS = 4 |
Definition at line 84 of file dns/message.cc.
isc::dns::MessageImpl::MessageImpl | ( | Message::Mode | mode | ) |
Definition at line 141 of file dns/message.cc.
References init().
void isc::dns::MessageImpl::addEDNS | ( | Message::Section | section, |
const Name & | name, | ||
const RRClass & | rrclass, | ||
const RRType & | rrtype, | ||
const RRTTL & | ttl, | ||
const Rdata & | rdata ) |
Definition at line 824 of file dns/message.cc.
References isc::dns::createEDNSFromRR(), edns_, isc_throw, rcode_, isc::dns::Message::SECTION_ADDITIONAL, and setRcode().
Referenced by parseSection().
void isc::dns::MessageImpl::addRR | ( | Message::Section | section, |
const Name & | name, | ||
const RRClass & | rrclass, | ||
const RRType & | rrtype, | ||
const RRTTL & | ttl, | ||
ConstRdataPtr | rdata, | ||
Message::ParseOptions | options ) |
Definition at line 787 of file dns/message.cc.
References isc::dns::Message::PRESERVE_ORDER, and rrsets_.
Referenced by parseSection().
void isc::dns::MessageImpl::addRR | ( | Message::Section | section, |
const Name & | name, | ||
const RRClass & | rrclass, | ||
const RRType & | rrtype, | ||
const RRTTL & | ttl, | ||
Message::ParseOptions | options ) |
Definition at line 807 of file dns/message.cc.
References isc::dns::Message::PRESERVE_ORDER, and rrsets_.
void isc::dns::MessageImpl::addTSIG | ( | Message::Section | section, |
unsigned int | count, | ||
const InputBuffer & | buffer, | ||
size_t | start_position, | ||
const Name & | name, | ||
const RRClass & | rrclass, | ||
const RRTTL & | ttl, | ||
const Rdata & | rdata ) |
Definition at line 842 of file dns/message.cc.
References counts_, isc_throw, isc::dns::Message::SECTION_ADDITIONAL, and tsig_rr_.
Referenced by parseSection().
void isc::dns::MessageImpl::init | ( | ) |
Definition at line 149 of file dns/message.cc.
References counts_, edns_, flags_, header_parsed_, NUM_SECTIONS, opcode_, qid_, questions_, rcode_, rrsets_, isc::dns::Message::SECTION_ADDITIONAL, isc::dns::Message::SECTION_ANSWER, isc::dns::Message::SECTION_AUTHORITY, and tsig_rr_.
Referenced by MessageImpl().
int isc::dns::MessageImpl::parseQuestion | ( | InputBuffer & | buffer | ) |
Definition at line 657 of file dns/message.cc.
References counts_, isc_throw, questions_, and isc::dns::Message::SECTION_QUESTION.
int isc::dns::MessageImpl::parseSection | ( | const Message::Section | section, |
InputBuffer & | buffer, | ||
Message::ParseOptions | options ) |
Definition at line 733 of file dns/message.cc.
References addEDNS(), addRR(), addTSIG(), isc::dns::RRClass::ANY(), counts_, isc::dns::rdata::createRdata(), isc_throw, isc::dns::RRClass::NONE(), NUM_SECTIONS, isc::dns::RRType::OPT(), and isc::dns::RRType::TSIG().
void isc::dns::MessageImpl::setOpcode | ( | const Opcode & | opcode | ) |
Definition at line 169 of file dns/message.cc.
References opcode_, and opcode_placeholder_.
void isc::dns::MessageImpl::setRcode | ( | const Rcode & | rcode | ) |
Definition at line 175 of file dns/message.cc.
References rcode_, and rcode_placeholder_.
Referenced by addEDNS().
void isc::dns::MessageImpl::toWire | ( | AbstractMessageRenderer & | renderer, |
TSIGContext * | tsig_ctx ) |
Definition at line 235 of file dns/message.cc.
References counts_, edns_, flags_, isc::dns::Message::HEADERFLAG_TC, isc_throw, mode_, opcode_, qid_, questions_, rcode_, isc::dns::Message::RENDER, rrsets_, isc::dns::Message::SECTION_ADDITIONAL, isc::dns::Message::SECTION_ANSWER, isc::dns::Message::SECTION_AUTHORITY, isc::dns::Message::SECTION_QUESTION, and toWire().
Referenced by toWire().
int isc::dns::MessageImpl::counts_[NUM_SECTIONS] |
Definition at line 105 of file dns/message.cc.
Referenced by addTSIG(), init(), parseQuestion(), parseSection(), and toWire().
ConstEDNSPtr isc::dns::MessageImpl::edns_ |
Definition at line 108 of file dns/message.cc.
uint16_t isc::dns::MessageImpl::flags_ |
Definition at line 101 of file dns/message.cc.
bool isc::dns::MessageImpl::header_parsed_ |
Definition at line 103 of file dns/message.cc.
Referenced by init().
Message::Mode isc::dns::MessageImpl::mode_ |
Definition at line 89 of file dns/message.cc.
Referenced by toWire().
|
static |
Definition at line 104 of file dns/message.cc.
Referenced by isc::dns::Message::addRRset(), isc::dns::Message::appendSection(), isc::dns::Message::beginSection(), isc::dns::Message::clearSection(), isc::dns::Message::endSection(), isc::dns::Message::getRRCount(), isc::dns::Message::hasRRset(), init(), parseSection(), and isc::dns::Message::removeRRset().
const Opcode* isc::dns::MessageImpl::opcode_ |
Definition at line 98 of file dns/message.cc.
Referenced by init(), setOpcode(), and toWire().
Opcode isc::dns::MessageImpl::opcode_placeholder_ |
Definition at line 99 of file dns/message.cc.
Referenced by setOpcode().
qid_t isc::dns::MessageImpl::qid_ |
Definition at line 90 of file dns/message.cc.
vector<QuestionPtr> isc::dns::MessageImpl::questions_ |
Definition at line 106 of file dns/message.cc.
Referenced by init(), parseQuestion(), and toWire().
const Rcode* isc::dns::MessageImpl::rcode_ |
Definition at line 96 of file dns/message.cc.
Referenced by addEDNS(), init(), setRcode(), and toWire().
Rcode isc::dns::MessageImpl::rcode_placeholder_ |
Definition at line 97 of file dns/message.cc.
Referenced by setRcode().
vector<RRsetPtr> isc::dns::MessageImpl::rrsets_[NUM_SECTIONS] |
ConstTSIGRecordPtr isc::dns::MessageImpl::tsig_rr_ |
Definition at line 109 of file dns/message.cc.