diff options
Diffstat (limited to 'src/bin/auth/query.h')
-rw-r--r-- | src/bin/auth/query.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/auth/query.h b/src/bin/auth/query.h index 2c08312b14..a692dcc694 100644 --- a/src/bin/auth/query.h +++ b/src/bin/auth/query.h @@ -286,6 +286,9 @@ public: answers_.reserve(RESERVE_RRSETS); authorities_.reserve(RESERVE_RRSETS); additionals_.reserve(RESERVE_RRSETS); + + a_and_aaaa_.push_back(isc::dns::RRType::A()); + a_and_aaaa_.push_back(isc::dns::RRType::AAAA()); } @@ -488,6 +491,15 @@ private: std::vector<isc::dns::ConstRRsetPtr> answers_; std::vector<isc::dns::ConstRRsetPtr> authorities_; std::vector<isc::dns::ConstRRsetPtr> additionals_; + +private: + /// \brief Returns a reference to a pre-initialized vector (see the + /// \c Query constructor). + const std::vector<isc::dns::RRType>& A_AND_AAAA() const { + return (a_and_aaaa_); + } + + std::vector<isc::dns::RRType> a_and_aaaa_; }; } |