From: Kees Monshouwer Date: Mon, 27 Jul 2015 14:00:52 +0000 (+0200) Subject: remove unused variable and cleanup emitNSEC() X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~9^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6173173934f2a6bb6db76179aad00d880a049d;p=thirdparty%2Fpdns.git remove unused variable and cleanup emitNSEC() --- diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index b569976548..2ce5570ca2 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -383,36 +383,34 @@ int PacketHandler::doAdditionalProcessingAndDropAA(DNSPacket *p, DNSPacket *r, c } -void PacketHandler::emitNSEC(const DNSName& begin, const DNSName& end, const DNSName& toNSEC, const SOAData& sd, DNSPacket *r, int mode) +void PacketHandler::emitNSEC(DNSPacket *r, const SOAData& sd, const DNSName& name, const DNSName& next, int mode) { - // cerr<<"We should emit '"<addRecord(rr); } + void emitNSEC3(UeberBackend& B, const NSEC3PARAMRecordContent& ns3prc, const SOAData& sd, const DNSName& unhashed, const string& begin, const string& end, const DNSName& toNSEC3, DNSPacket *r, int mode) { // cerr<<"We should emit NSEC3 '"<getBeforeAndAfterNames(sd.domain_id, auth, target, before, after); - emitNSEC(before, after, target, sd, r, mode); + emitNSEC(r, sd, before, after, mode); // } else if(rr.auth) { // if (mode == 5) // rr.d_place=DNSResourceRecord::ANSWER; @@ -669,7 +667,7 @@ void PacketHandler::addNSEC(DNSPacket *p, DNSPacket *r, const DNSName& target, c rr.auth=false; if(!B.getDirectNSECx(sd.domain_id, toLower(labelReverse(makeRelative(closest.toString(), auth.toString()))), QType(QType::NSEC), before, rr)) { sd.db->getBeforeAndAfterNames(sd.domain_id, auth, closest, before, after); - emitNSEC(before, after, target, sd, r, mode); + emitNSEC(r, sd, before, after, mode); } else if(rr.auth) r->addRecord(rr); } diff --git a/pdns/packethandler.hh b/pdns/packethandler.hh index de26e5e0d4..d9ce37a51f 100644 --- a/pdns/packethandler.hh +++ b/pdns/packethandler.hh @@ -77,7 +77,7 @@ private: void addNSECX(DNSPacket *p, DNSPacket* r, const DNSName &target, const DNSName &wildcard, const DNSName &auth, int mode); void addNSEC(DNSPacket *p, DNSPacket* r, const DNSName &target, const DNSName &wildcard, const DNSName& auth, int mode); void addNSEC3(DNSPacket *p, DNSPacket* r, const DNSName &target, const DNSName &wildcard, const DNSName& auth, const NSEC3PARAMRecordContent& nsec3param, bool narrow, int mode); - void emitNSEC(const DNSName& before, const DNSName& after, const DNSName& toNSEC, const SOAData& sd, DNSPacket *r, int mode); + void emitNSEC(DNSPacket *r, const SOAData& sd, const DNSName& name, const DNSName& next, int mode); void emitNSEC3(const NSEC3PARAMRecordContent &ns3rc, const SOAData& sd, const DNSName& unhashed, /* FIXME400 should this be DNSName? */ const string& begin, const string& end, const DNSName& toNSEC3, DNSPacket *r, int mode); int processUpdate(DNSPacket *p); int forwardPacket(const string &msgPrefix, DNSPacket *p, DomainInfo *di);