lock.hh \
logger.cc logger.hh \
logging.hh \
+ logr.hh \
lua-auth4.cc lua-auth4.hh \
lua-base4.cc lua-base4.hh \
misc.cc misc.hh \
ixfrdist-web.hh ixfrdist-web.cc \
ixfrdist.cc \
ixfrutils.cc ixfrutils.hh \
- logger.cc logger.hh\
+ logger.cc logger.hh \
+ logr.hh \
misc.cc misc.hh \
mplexer.hh \
nsecrecords.cc \
ixfrutils.cc ixfrutils.hh \
ixplore.cc \
logger.cc \
+ logr.hh \
misc.cc misc.hh \
nsecrecords.cc \
qtype.cc \
gss_context.cc gss_context.hh \
iputils.cc \
logger.cc \
+ logr.hh \
misc.cc misc.hh \
nsecrecords.cc \
qtype.cc \
iputils.cc \
ixfr.cc ixfr.hh \
logger.cc \
+ logr.hh \
lua-auth4.hh lua-auth4.cc \
lua-base4.hh lua-base4.cc \
misc.cc \
{
uint16_t axfr_timeout = ::arg().asNum("axfr-fetch-timeout");
vector<DNSResourceRecord> rrs;
- AXFRRetriever retriever(ctx.remote, ctx.domain.zone, tt, (laddr.sin4.sin_family == 0) ? nullptr : &laddr, ((size_t)::arg().asNum("xfr-max-received-mbytes")) * 1024 * 1024, axfr_timeout);
+ AXFRRetriever retriever(nullptr /* TEMPORARY PLUMBING */, ctx.remote, ctx.domain.zone, tt, (laddr.sin4.sin_family == 0) ? nullptr : &laddr, ((size_t)::arg().asNum("xfr-max-received-mbytes")) * 1024 * 1024, axfr_timeout);
Resolver::res_t recs;
bool first = true;
bool firstNSEC3{true};
using pdns::resolver::parseResult;
-AXFRRetriever::AXFRRetriever(const ComboAddress& remote,
+AXFRRetriever::AXFRRetriever(Logr::log_t slog,
+ const ComboAddress& remote,
const ZoneName& domain,
const TSIGTriplet& tsigConf,
const ComboAddress* laddr,
size_t maxReceivedBytes,
uint16_t timeout) :
- d_buf(65536), d_tsigVerifier(tsigConf, remote, d_trc), d_maxReceivedBytes(maxReceivedBytes)
+ d_tsigVerifier(slog, tsigConf, remote, d_trc), d_buf(65536), d_maxReceivedBytes(maxReceivedBytes)
{
ComboAddress local;
if (laddr != nullptr) {
#include "iputils.hh"
#include "dnsname.hh"
+#include "logr.hh"
#include "resolver.hh"
class AXFRRetriever : public boost::noncopyable
{
public:
- AXFRRetriever(const ComboAddress& remote,
+ AXFRRetriever(Logr::log_t slog,
+ const ComboAddress& remote,
const ZoneName& zone,
const TSIGTriplet& tt = TSIGTriplet(),
const ComboAddress* laddr = NULL,
int getLength(uint16_t timeout);
void timeoutReadn(uint16_t bytes, uint16_t timeoutsec=10);
+ TSIGTCPVerifier d_tsigVerifier;
std::vector<char> d_buf;
string d_domain;
int d_sock;
int d_soacount;
ComboAddress d_remote;
TSIGRecordContent d_trc;
- TSIGTCPVerifier d_tsigVerifier;
size_t d_receivedBytes{0};
size_t d_maxReceivedBytes;
pw.commit();
TSIGRecordContent trc;
- TSIGTCPVerifier tsigVerifier(tt, primary, trc);
+ TSIGTCPVerifier tsigVerifier(nullptr /* TEMPORARY PLUMBING */, tt, primary, trc);
if(!tt.algo.empty()) {
TSIGHashEnum the;
getTSIGHashEnum(tt.algo, the);
uint32_t soaTTL = 0;
records_t records;
try {
- AXFRRetriever axfr(primary, domain, tt, &local);
+ AXFRRetriever axfr(nullptr /* no structured logging */, primary, domain, tt, &local);
uint32_t nrecords=0;
Resolver::res_t nop;
vector<DNSRecord> chunk;
cout<<"Could not load zone from disk: "<<e.what()<<endl;
cout << "Retrieving latest from primary " << primary.toStringWithPort() << endl;
ComboAddress local = primary.sin4.sin_family == AF_INET ? ComboAddress("0.0.0.0") : ComboAddress("::");
- AXFRRetriever axfr(primary, zone, tt, &local);
+ AXFRRetriever axfr(nullptr /* no structured logging */, primary, zone, tt, &local);
unsigned int nrecords=0;
Resolver::res_t nop;
vector<DNSRecord> chunk;
local = pdns::getQueryLocalAddress(primary.sin4.sin_family, 0);
}
- AXFRRetriever axfr(primary, zoneName, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
+ AXFRRetriever axfr(logger, primary, zoneName, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
unsigned int nrecords = 0;
Resolver::res_t nop;
vector<DNSRecord> chunk;
local = pdns::getQueryLocalAddress(primary.sin4.sin_family, 0);
}
- AXFRRetriever axfr(primary, d_zone, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
+ AXFRRetriever axfr(d_log, primary, d_zone, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
Resolver::res_t nop;
vector<DNSRecord> chunk;
time_t axfrStart = time(nullptr);
local = pdns::getQueryLocalAddress(primary.sin4.sin_family, 0);
}
- AXFRRetriever axfr(primary, zoneName, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
+ AXFRRetriever axfr(logger, primary, zoneName, tsigTriplet, &local, maxReceivedBytes, axfrTimeout);
unsigned int nrecords = 0;
Resolver::res_t nop;
vector<DNSRecord> chunk;
tt.name=keyname;
tt.algo=g_hmacmd5dnsname;
tt.secret=key;
- AXFRRetriever axfr(dest, ZoneName("b.aa"), tt);
+ AXFRRetriever axfr(nullptr, dest, ZoneName("b.aa"), tt);
vector<DNSResourceRecord> res;
while(axfr.getChunk(res)) {
}
#include "dnsrecords.hh"
#include "iputils.hh"
+#include "logr.hh"
class TSIGTCPVerifier
{
public:
- TSIGTCPVerifier(const TSIGTriplet& tt, const ComboAddress& remote, TSIGRecordContent& trc): d_tt(tt), d_remote(remote), d_trc(trc)
+ TSIGTCPVerifier(Logr::log_t slog, const TSIGTriplet& tt, const ComboAddress& remote, TSIGRecordContent& trc): d_slog(slog), d_tt(tt), d_remote(remote), d_trc(trc)
{
}
bool check(const string& data, const MOADNSParser& mdp);
private:
+ Logr::log_t d_slog;
const TSIGTriplet& d_tt;
const ComboAddress& d_remote;
TSIGRecordContent& d_trc;