From 29b23be16d534efcd50105f24c80b4a6d7ef3d97 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 14 May 2015 22:12:58 +0200 Subject: [PATCH] snap; testrunner compiles but fails miserably --- pdns/nameserver.cc | 4 ++-- pdns/test-packetcache_cc.cc | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 7cd2e4a0c6..6a6819392f 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -294,9 +294,9 @@ void UDPNameserver::send(DNSPacket *p) /* Query statistics */ if(p->d.aa) { if (p->d.rcode==RCode::NXDomain) - S.ringAccount("nxdomain-queries",p->qdomain+"/"+p->qtype.getName()); + S.ringAccount("nxdomain-queries",p->qdomain.toString()+"/"+p->qtype.getName()); } else if (p->isEmpty()) { - S.ringAccount("unauth-queries",p->qdomain+"/"+p->qtype.getName()); + S.ringAccount("unauth-queries",p->qdomain.toString()+"/"+p->qtype.getName()); S.ringAccount("remotes-unauth",p->d_remote); } diff --git a/pdns/test-packetcache_cc.cc b/pdns/test-packetcache_cc.cc index fd1144d1e9..a0b495be2b 100644 --- a/pdns/test-packetcache_cc.cc +++ b/pdns/test-packetcache_cc.cc @@ -15,6 +15,11 @@ extern StatBag S; +std::ostream & operator<<(std::ostream &os, const DNSName& d) +{ + return os <<"DNSName("<