From: Peter van Dijk Date: Thu, 14 May 2015 20:12:58 +0000 (+0200) Subject: snap; testrunner compiles but fails miserably X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~21^2~5^2~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29b23be16d534efcd50105f24c80b4a6d7ef3d97;p=pdns snap; testrunner compiles but fails miserably --- diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 7cd2e4a0c..6a6819392 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 fd1144d1e..a0b495be2 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("<