[svn] commit: r2958 - in /branches/trac327: ./ src/bin/ src/bin/auth/ src/bin/recurse/ src/bin/recurse/tests/ src/bin/recurse/tests/testdata/ src/lib/asiolink/

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Sep 17 02:19:00 UTC 2010


Author: each
Date: Fri Sep 17 02:18:59 2010
New Revision: 2958

Log:
Created b10-recurse--mostly copied from b10-auth, but with references
to datasrc, xfrin, xfrout and so on removed.  This is simply the
client-facing side of a name server; it can receive and send packets
but can't process them in any way yet.  It will become a simple forwarder,
and then a proper resolver, in future work.

Added:
    branches/trac327/src/bin/recurse/
    branches/trac327/src/bin/recurse/Makefile.am
    branches/trac327/src/bin/recurse/b10-recurse.8
    branches/trac327/src/bin/recurse/b10-recurse.xml
    branches/trac327/src/bin/recurse/change_user.cc
    branches/trac327/src/bin/recurse/change_user.h
    branches/trac327/src/bin/recurse/common.h
    branches/trac327/src/bin/recurse/main.cc
    branches/trac327/src/bin/recurse/recurse.spec.pre.in
    branches/trac327/src/bin/recurse/recursor.cc
    branches/trac327/src/bin/recurse/recursor.h
    branches/trac327/src/bin/recurse/spec_config.h.pre.in
    branches/trac327/src/bin/recurse/tests/
    branches/trac327/src/bin/recurse/tests/Makefile.am
    branches/trac327/src/bin/recurse/tests/recursor_unittest.cc
    branches/trac327/src/bin/recurse/tests/run_unittests.cc
    branches/trac327/src/bin/recurse/tests/testdata/
    branches/trac327/src/bin/recurse/tests/testdata/iqueryresponse_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/multiquestion_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/queryBadEDNS_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/shortanswer_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/shortmessage_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/shortquestion_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/shortresponse_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/simplequery_fromWire
    branches/trac327/src/bin/recurse/tests/testdata/simpleresponse_fromWire
Modified:
    branches/trac327/configure.ac
    branches/trac327/src/bin/Makefile.am
    branches/trac327/src/bin/auth/Makefile.am
    branches/trac327/src/bin/auth/auth_srv.h
    branches/trac327/src/bin/auth/main.cc
    branches/trac327/src/lib/asiolink/asiolink.h

Modified: branches/trac327/configure.ac
==============================================================================
--- branches/trac327/configure.ac (original)
+++ branches/trac327/configure.ac Fri Sep 17 02:18:59 2010
@@ -423,6 +423,8 @@
                  src/bin/msgq/tests/Makefile
                  src/bin/auth/Makefile
                  src/bin/auth/tests/Makefile
+                 src/bin/recurse/Makefile
+                 src/bin/recurse/tests/Makefile
                  src/bin/xfrin/Makefile
                  src/bin/xfrin/tests/Makefile
                  src/bin/xfrout/Makefile
@@ -497,6 +499,8 @@
            src/bin/msgq/run_msgq.sh
            src/bin/auth/auth.spec.pre
            src/bin/auth/spec_config.h.pre
+           src/bin/recurse/recurse.spec.pre
+           src/bin/recurse/spec_config.h.pre
            src/lib/config/tests/data_def_unittests_config.h
            src/lib/python/isc/config/tests/config_test
            src/lib/python/isc/cc/tests/cc_test

Modified: branches/trac327/src/bin/Makefile.am
==============================================================================
--- branches/trac327/src/bin/Makefile.am (original)
+++ branches/trac327/src/bin/Makefile.am Fri Sep 17 02:18:59 2010
@@ -1,1 +1,1 @@
-SUBDIRS = bind10 bindctl cfgmgr loadzone msgq host cmdctl auth xfrin xfrout usermgr zonemgr
+SUBDIRS = bind10 bindctl cfgmgr loadzone msgq host cmdctl auth recurse xfrin xfrout usermgr zonemgr

Modified: branches/trac327/src/bin/auth/Makefile.am
==============================================================================
--- branches/trac327/src/bin/auth/Makefile.am (original)
+++ branches/trac327/src/bin/auth/Makefile.am Fri Sep 17 02:18:59 2010
@@ -17,14 +17,12 @@
 
 CLEANFILES = *.gcno *.gcda auth.spec spec_config.h
 
+if ENABLE_MAN
 man_MANS = b10-auth.8
 EXTRA_DIST = $(man_MANS) b10-auth.xml
 
-if ENABLE_MAN
-
 b10-auth.8: b10-auth.xml
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml
-
 endif
 
 auth.spec: auth.spec.pre

Modified: branches/trac327/src/bin/auth/auth_srv.h
==============================================================================
--- branches/trac327/src/bin/auth/auth_srv.h (original)
+++ branches/trac327/src/bin/auth/auth_srv.h Fri Sep 17 02:18:59 2010
@@ -33,7 +33,7 @@
 
 namespace xfr {
 class AbstractXfroutClient;
-};
+}
 }
 
 namespace asiolink {

Modified: branches/trac327/src/bin/auth/main.cc
==============================================================================
--- branches/trac327/src/bin/auth/main.cc (original)
+++ branches/trac327/src/bin/auth/main.cc Fri Sep 17 02:18:59 2010
@@ -51,6 +51,7 @@
 using namespace isc::config;
 using namespace isc::dns;
 using namespace isc::xfr;
+using namespace asiolink;
 
 namespace {
 
@@ -64,7 +65,7 @@
  * class itself? */
 AuthSrv *auth_server;
 
-asiolink::IOService* io_service;
+IOService* io_service;
 
 ConstElementPtr
 my_config_handler(ConstElementPtr new_config) {
@@ -176,8 +177,8 @@
         auth_server->setVerbose(verbose_mode);
         cout << "[b10-auth] Server created." << endl;
 
-        asiolink::CheckinProvider* checkin = auth_server->getCheckinProvider();
-        asiolink::DNSProvider* process = auth_server->getDNSProvider();
+        CheckinProvider* checkin = auth_server->getCheckinProvider();
+        DNSProvider* process = auth_server->getDNSProvider();
 
         if (address != NULL) {
             // XXX: we can only specify at most one explicit address.
@@ -186,10 +187,10 @@
             // We don't bother to fix this problem, however.  The -a option
             // is a short term workaround until we support dynamic listening
             // port allocation.
-            io_service = new asiolink::IOService(*port, *address,
+            io_service = new IOService(*port, *address,
                                                  checkin, process);
         } else {
-            io_service = new asiolink::IOService(*port, use_ipv4, use_ipv6,
+            io_service = new IOService(*port, use_ipv4, use_ipv6,
                                                  checkin, process);
         }
         cout << "[b10-auth] IOService created." << endl;

Modified: branches/trac327/src/lib/asiolink/asiolink.h
==============================================================================
--- branches/trac327/src/lib/asiolink/asiolink.h (original)
+++ branches/trac327/src/lib/asiolink/asiolink.h Fri Sep 17 02:18:59 2010
@@ -430,7 +430,6 @@
     /// This is intentionally defined as \c protected as this base class
     /// should never be instantiated (except as part of a derived class).
     CheckinProvider() {}
-    //@}
 public:
     /// \brief The destructor
     virtual ~CheckinProvider() {}




More information about the bind10-changes mailing list