object so that they'll be valid regardless of how the QueryTask is constructed.
In the current usage patter the previous behavior is probably safe, but
since this object is passed beyond a scope of a single function, there's
always a risk of retaining a stale reference to a temporary object. This fix
solves that potential problem.
Note that copy of these member objects should be cheap because in this sense
they are mostly native integer types.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1395 e5f2f494-b856-4b98-b285-d166d9295462
Identify files that need to be included in the tarball.
Also change some from Makefile.am entries to identify that are
not in the tarball (since later generated during build).
Includes needed for headers in src tree and in build tree
(because some includes are generated).
Also includes specifically for "dns" needed since headers
in src tree don't see the ones in build tree and vice versa.
Have the gen-rdatacode.py script read placeholder from src tree
and save generated files into build tree. Okayed by Jinmei.
Identify a few files that should be removed on a clean.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1389 e5f2f494-b856-4b98-b285-d166d9295462
from $sysconfdir/bind10.
Add to README a note about this.
The files are still installed to the share/bind10 directory
since they are reference / test files.
I did this so admins won't put custom files in place and then
next bind10 install won't overwrite them.
TODO: document this in userguide.
TODO: add an install target to put in etc also if doesn't already exist.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1379 e5f2f494-b856-4b98-b285-d166d9295462
style guideline conformance
deprecated file-static, and put everything except main() in an anonymous
namespace.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1377 e5f2f494-b856-4b98-b285-d166d9295462
it also confirms the strong exception guarantee, that is, the original
data source should be still valid on update failure.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1375 e5f2f494-b856-4b98-b285-d166d9295462
- load and lookup a test data source
- lookup for a broken data source entry, and confirm it will result in
SERVFAIL
- in the auth server code, only catch isc::Exceptions.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1374 e5f2f494-b856-4b98-b285-d166d9295462
running it from the source tree.
TODO: get the bindctl modules installed.
(As it is now the installed bindctl does not run.)
Renamed the bindctl shell script to run_bindctl.sh which can be ran
from the source.
Rename the run_loadzone to include "sh" to be like the rest in bind10.
(That is not installed.)
Update README to mention the run_*.sh scripts.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1372 e5f2f494-b856-4b98-b285-d166d9295462
-Wextra as follows: "[class name] has a field [member name] whose type
uses the anonymous namespace", even if the anonymous namespqce in
question is closed in the single translation unit:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29365
AFAICS, the intent was to warn it if the anonymous namespace is used
in a header file (which can easily violate the One Definition Rule as
discussed in the bugzilla), but gcc seemingly did too much to prevent
that.
Unfortunately this bug prohibits us from specifying -Werror, so we
selectively disable this flag by identifying g++ used for build has
this bug.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1371 e5f2f494-b856-4b98-b285-d166d9295462
added sanity checks within those functions (and tests for that)
changes createAnswer(int rcode) to createAnswer() since rcode should only be 0 if there is not argument
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1368 e5f2f494-b856-4b98-b285-d166d9295462
added a few function declarations in ccsession.h that were missing (but were already implemented in ccsession.cc)
fixed 1 bug in ccsession.cc, other ones are pending (tests already exist but commented out right now)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1359 e5f2f494-b856-4b98-b285-d166d9295462
style guideline conformance about the position of opening curly brace.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1357 e5f2f494-b856-4b98-b285-d166d9295462
- use an explicit long-long constant for the dnssectime overflow test
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1353 e5f2f494-b856-4b98-b285-d166d9295462
also changed the return type of AuthSrv::processMessage() from int to bool
(we actually used it as a boolean flag, so it didn't make sense to call it
an integer)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1351 e5f2f494-b856-4b98-b285-d166d9295462