isc::dns::ConstRRsetPtr rrset,
FindResultFlags flags = RESULT_DEFAULT)
{
- ConstRRsetPtr rr = stripRRsigs(rrset, options);
+ ConstRRsetPtr rp = stripRRsigs(rrset, options);
return (ZoneFinderContextPtr(
new Context(*this, options,
- ResultContext(code, rr, flags))));
+ ResultContext(code, rp, flags))));
}
private:
// in case the caller has the same RRset but as a result
// of normal find() and needs to know they are of the same
// kind; otherwise we simply use the stored RBNodeRRset.
- ConstRRsetPtr rr;
+ ConstRRsetPtr rp;
if (wild_expanded) {
- rr = found->second->getUnderlyingRRset();
+ rp = found->second->getUnderlyingRRset();
} else {
- rr = found->second;
+ rp = found->second;
}
- result.push_back(ZoneFinder::stripRRsigs(rr, options));
+ result.push_back(ZoneFinder::stripRRsigs(rp, options));
}
}
}
/// \brief A helper function to strip RRSIGs when FIND_DNSSEC is not
/// requested.
static isc::dns::ConstRRsetPtr
- stripRRsigs(isc::dns::ConstRRsetPtr rr, const FindOptions options) {
- if (rr) {
- isc::dns::ConstRRsetPtr sig_rrset = rr->getRRsig();
+ stripRRsigs(isc::dns::ConstRRsetPtr rp, const FindOptions options) {
+ if (rp) {
+ isc::dns::ConstRRsetPtr sig_rrset = rp->getRRsig();
if (sig_rrset &&
((options & ZoneFinder::FIND_DNSSEC) == 0)) {
isc::dns::RRsetPtr result_base
- (new isc::dns::RRset(rr->getName(),
- rr->getClass(),
- rr->getType(),
- rr->getTTL()));
- for (isc::dns::RdataIteratorPtr i(rr->getRdataIterator());
+ (new isc::dns::RRset(rp->getName(),
+ rp->getClass(),
+ rp->getType(),
+ rp->getTTL()));
+ for (isc::dns::RdataIteratorPtr i(rp->getRdataIterator());
!i->isLast();
i->next()) {
result_base->addRdata(i->getCurrent());
}
}
- return (rr);
+ return (rp);
}
/// \brief Context of the result of a find() call.