Commit aa1c8245 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

Commit code for non-verbose for A first.

THIS IS BROKEN.



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@243 e5f2f494-b856-4b98-b285-d166d9295462
parent 4d42a129
......@@ -85,7 +85,25 @@ host_lookup(char* name, std::string type)
try {
rmsg.fromWire();
if (verbose) {
if (!verbose) {
std::vector<RRsetPtr>answers =
rmsg.getSection(SECTION_ANSWER);
std::vector<RRsetPtr>::const_iterator it;
for (it = answers.begin(); it != answers.end(); ++it) {
if ((*it)->getType() != RRType::A) {
continue;
}
vector<Rdata::IN::A> addresses;
(*it)->getRdatalist<Rdata::IN::A>(addresses);
for (vector<Rdata::IN::A>::const_iterator ait =
addresses.begin(); ait != addresses.end(); ++ait) {
ait->getAddress(); //this should return in_addr&
}
}
} else {
gettimeofday(&after_time, NULL);
// HEADER and QUESTION, ANSWER, AUTHORITY, and ADDITIONAL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment