Noticed on NetBSD and FreeBSD.
(Linux and Solaris already include it via netdb.h.)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1131 e5f2f494-b856-4b98-b285-d166d9295462
(Note: I expect sha1 to be replaced, and to add more test cases to all
of the unit tests.)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1125 e5f2f494-b856-4b98-b285-d166d9295462
This is based on ideas done in experiments/jreed-layout, but
I manually did this again.
Moved around directory structures.
A single python subdirectory under src/lib for single "isc" module.
No "cpp" directories.
No pyshared or includes symlink trees.
I tested running the c++ tests and python tests.
I tested running run_bind10.sh from source tree (with nothing installed).
I tested running bind10 from installed (after moving source).
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1120 e5f2f494-b856-4b98-b285-d166d9295462
- fixed memory leak for Datasrc* stored in the MetaDataSrc vector.
there are several possible ways to do this, but I chose to using
boost::shared_ptr. expect for portability issues this seems to be the
cleanest solution, and, regarding portability, we already heavily rely on
boost anyway, so we should revisit the whole design if/when we seriously
consider binary portability.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1118 e5f2f494-b856-4b98-b285-d166d9295462
this led to a larger refactoring:
- I figured out we actually don't have to have this information in QueryTask:
everything can be passed directly as a function argument.
- I've also changed 'Name* zone' method argument to 'const Name*' based on
the policy of 'make things const as much as possible'
- also changed variable name from zone to zonename (because we might want to
have a more generic notion of "zone" like BIND9's lib/dns/zone module)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1113 e5f2f494-b856-4b98-b285-d166d9295462
- use forward declarations instead of including headers when possible
- partly as a result of that, moved method definitions from .h to .cc unless
it does very trivial thing and is deemed to be performance sensitive.
- avoid 'using namespace' in header files
- made data-source related objects non-copyable as much as possible
- fixed a bug of an uninitialized variable
- made coding style more consistent
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1110 e5f2f494-b856-4b98-b285-d166d9295462
- minimize including header files by forward declaring pinter/reference
members
- move definitions to .cc
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1104 e5f2f494-b856-4b98-b285-d166d9295462
consistent use of trailing underscore
consitify things whenever possible
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1102 e5f2f494-b856-4b98-b285-d166d9295462
- added comments on the vulnerable part of the implementation
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1100 e5f2f494-b856-4b98-b285-d166d9295462
added a test case to identify the bug.
made test data file names consistent
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1096 e5f2f494-b856-4b98-b285-d166d9295462
separate test file (some of them are currently failing, and so commented out)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1089 e5f2f494-b856-4b98-b285-d166d9295462
- added a test for a bogus wire-format intput that currently fails
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1083 e5f2f494-b856-4b98-b285-d166d9295462