Show
Ignore:
Timestamp:
10/10/05 23:30:52 (8 years ago)
Author:
ahu
Message:

fix compilation of dnsreplay
move pdns_recursor cache to 'optString', which uses placement-new hacks
make pdns_recursor set query-response bit
(reminder: make it ignore questions with query-response!)
improve error reporting in pdns_recursor a bit
some more experiments in dnspbench

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnspbench.cc

    r514 r516  
    55#include "dnsrecords.hh" 
    66 
     7 
     8 
    79int main(int argc, char** argv) 
    810try 
    911{ 
    1012  reportAllTypes(); 
     13 
     14  cerr<<"sizeof(optString): "<<sizeof(struct optString)<<endl; 
     15 
     16  optString os("hallo!"); 
     17 
     18  cerr<<"optString: '"<<(string)os<<"'\n"; 
    1119 
    1220  vector<uint8_t> packet; 
     
    2432  //  cerr<<"record: "<<record<<"\n"; 
    2533 
    26   shared_ptr<DNSRecordContent> regen=DNSRecordContent::unserialize(record); 
     34  shared_ptr<DNSRecordContent> regen=DNSRecordContent::unserialize(argv[1], type, record); 
    2735  cerr<<"Out: "<<argv[1]<<" IN "<<argv[2]<<" "<<regen->getZoneRepresentation()<<endl; 
    2836}