Changeset 2200
- Timestamp:
- 05/29/11 10:07:59 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnsgram.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsgram.cc
r1976 r2200 2 2 #include "statbag.hh" 3 3 #include "dnspcap.hh" 4 #include "dnsrecords.hh" 4 5 #include "dnsparser.hh" 5 6 #include <boost/tuple/tuple.hpp> … … 81 82 try 82 83 { 84 reportAllTypes(); 83 85 for(int n=1 ; n < argc; ++n) { 84 86 cout<<argv[n]<<endl; … … 153 155 makeReport(pr.d_pheader.ts); 154 156 lastreport = pr.d_pheader.ts; 155 156 157 } 157 158 … … 180 181 ofstream failed("failed"); 181 182 for(diff_t::const_iterator i = diff.begin(); i != diff.end() ; ++i) { 182 failed << i->first << "\t" << i->second<< "\t"<< counts[make_pair(i->first, i->second)]<<"\n";183 failed << i->first << "\t" << DNSRecordContent::NumberToType(i->second) << "\t"<< counts[make_pair(i->first, i->second)]<<"\n"; 183 184 } 184 185 … … 191 192 ofstream succeeded("succeeded"); 192 193 for(queries_t::const_iterator i = answers.begin(); i != answers.end() ; ++i) { 193 succeeded << i->first << "\t" << i->second<< counts[make_pair(i->first, i->second)]<<"\n";194 succeeded << i->first << "\t" <<DNSRecordContent::NumberToType(i->second) << "\t" << counts[make_pair(i->first, i->second)]<<"\n"; 194 195 } 195 196 }