[svn] commit: r243 - /branches/f2f200910/src/bin/host/host.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Oct 30 18:48:40 UTC 2009
Author: jreed
Date: Fri Oct 30 18:48:40 2009
New Revision: 243
Log:
Commit code for non-verbose for A first.
THIS IS BROKEN.
Modified:
branches/f2f200910/src/bin/host/host.cc
Modified: branches/f2f200910/src/bin/host/host.cc
==============================================================================
--- branches/f2f200910/src/bin/host/host.cc (original)
+++ branches/f2f200910/src/bin/host/host.cc Fri Oct 30 18:48:40 2009
@@ -85,7 +85,25 @@
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
More information about the bind10-changes
mailing list