2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +00:00

1051 Commits

Author SHA1 Message Date
JINMEI Tatuya
fcd4ba602b allowed manually specififying a path to python (when only older versions of
automake is available)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1399 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 20:45:07 +00:00
JINMEI Tatuya
7408a5f3a6 added a note about how to enable sqlite python binding on FreeBSD
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1398 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 20:33:48 +00:00
JINMEI Tatuya
cfe5138f00 removed stale description about parkinglot
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1397 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 20:28:24 +00:00
JINMEI Tatuya
c199bfce4b cleanup: made NameMatch non-copyable (no behavior change)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1396 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 19:52:18 +00:00
JINMEI Tatuya
a1caa93a25 changed the types of QueryTask::qclass/qtype/section from reference to real
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
2010-03-14 06:31:57 +00:00
JINMEI Tatuya
a8e0d0f215 missing include (to be self contained)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1394 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 04:01:28 +00:00
JINMEI Tatuya
ce67f15795 added a note about a failing test
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1393 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 23:27:29 +00:00
JINMEI Tatuya
cef8ff3332 ./DS test. currently fails (exception triggered), so disabled.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1392 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 23:26:58 +00:00
JINMEI Tatuya
6a3e4595f8 added a test for NSEC query at a zone cut for non-secure delegation.
currently fails, so disabled.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1391 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 20:30:57 +00:00
JINMEI Tatuya
fe87c66de9 cleanup: removed (now) unused private member function
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1390 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 05:16:28 +00:00
Jeremy C. Reed
3914654f19 Allow build outside of read-only source tree.
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
2010-03-13 03:56:56 +00:00
JINMEI Tatuya
c600aab418 provided the strong exception guarantee in DB initialization.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1388 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 03:23:54 +00:00
JINMEI Tatuya
c54a03be8f exception guarantee test with a half-broken DB file. it currently fails,
so commented out.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1387 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 02:47:09 +00:00
JINMEI Tatuya
630c1f489a cleanup: removed redundant and obsolete static keywrods
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1386 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 01:12:38 +00:00
JINMEI Tatuya
62a0f92295 prevented double close for sqlite3 data sources
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1385 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 00:58:16 +00:00
JINMEI Tatuya
f69afcb22c prevented duplicate DB open
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1384 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 00:42:23 +00:00
JINMEI Tatuya
cfb196fdf2 cleanup: use isc_throw (and isc::Exception derived classes) for exceptions.
(with some minor style level cleanups)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1383 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-13 00:00:41 +00:00
JINMEI Tatuya
68a70daeb5 made sure debug messages would be sent to cerr, not cout
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1382 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 23:34:15 +00:00
JINMEI Tatuya
488614f809 cleanup: removed unnecessary header files to be included.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1381 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 23:33:21 +00:00
JINMEI Tatuya
70b9a5ca81 handle more error cases with native socket APIs
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1380 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 23:32:01 +00:00
Jeremy C. Reed
225b0672b4 Make the b10-cmdctl use account database and certificate files
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
2010-03-12 23:20:22 +00:00
JINMEI Tatuya
0be6dcc6a7 had the AuthSrv maintain verbosity
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1378 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 23:16:13 +00:00
JINMEI Tatuya
06f1826d49 cleanup:
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
2010-03-12 23:00:15 +00:00
JINMEI Tatuya
fd594fd170 specify -Werror when possible. auth server code is now -Werror safe.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1376 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 22:52:32 +00:00
JINMEI Tatuya
5a271af9bf added a test case where an attempot of data source update fails.
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
2010-03-12 22:44:40 +00:00
JINMEI Tatuya
9c05f6faae added more tests for auth server:
- 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
2010-03-12 22:33:58 +00:00
Jeremy C. Reed
25dde25a3b Catch up on renames. Should have committed this in previous commit.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1373 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 21:17:18 +00:00
Jeremy C. Reed
87e20bcb3d Install bindctl itself and not the shell script which was
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
2010-03-12 21:16:15 +00:00
JINMEI Tatuya
60e25cf01d Specific versions of gcc (g++) have a bug that incorrectly warns with
-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
2010-03-12 20:26:53 +00:00
JINMEI Tatuya
698ee48ca0 avoid (implicit) multi-defining initial_messages, etc.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1370 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 18:37:49 +00:00
Jeremy C. Reed
8744991be6 Remove extra tabs.
Remove isc/Util/makefile build. This not used.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1369 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 17:16:02 +00:00
Jelte Jansen
c68d74d8c2 doxygen for createAnswer and family of helper functions
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
2010-03-12 17:00:22 +00:00
Evan Hunt
63ce80bca2 Check sizeof(time_t) before running the time overflow test.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1367 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 16:16:42 +00:00
Jelte Jansen
7830a83f8f null checks for all global fake session variables
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1366 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 14:37:55 +00:00
Jelte Jansen
9ef6a9667b a few small improvements
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1365 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 14:29:40 +00:00
Jelte Jansen
c00932b53e updated example bindctl session
fixed bindctl> config revert command (called wrong function)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1364 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 13:50:47 +00:00
Jelte Jansen
c43f09f1bd oops shouldn't have committed that line;
re-enable other unit tests in lib/config


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1363 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 13:22:09 +00:00
Jeremy C. Reed
b2100aeb14 Typo/grammar fix in a print statement.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1362 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 13:10:09 +00:00
Jelte Jansen
011e3e2352 commented out year>10000 (time_t here and on test builder is 32bits, so this failure mode doesn't come up because the test value overflows
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1361 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 13:00:29 +00:00
Jelte Jansen
f189032a01 rename unittests/ dirs to tests/
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1360 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 12:32:09 +00:00
Jelte Jansen
366177a393 added tests for ModuleCCSession class (with a fake Session object)
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
2010-03-12 11:16:18 +00:00
JINMEI Tatuya
75727c97da added a test case for EDNS BADVERS
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1358 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 09:20:52 +00:00
JINMEI Tatuya
32bf6c47a7 tweaked the code to handle the EDNS BADVERS case.
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
2010-03-12 09:20:01 +00:00
JINMEI Tatuya
b28e710244 added test cases for short message with a complete header.
this should result in FORMERR.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1356 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 08:20:08 +00:00
JINMEI Tatuya
dbcf762d9e returned DNSMessageFORMERR when the "from wire" name constructor encounters
malformed input.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1355 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 08:08:35 +00:00
JINMEI Tatuya
3700875848 thorw DNSMessageFORMERR instead of generic isc exception on parse errro.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1354 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 07:52:53 +00:00
Evan Hunt
c215be2ca4 - use DNSMessageFORMERR exception type instead of InvalidRdata
- 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
2010-03-12 06:11:41 +00:00
JINMEI Tatuya
207d804ead added tests for various kinds of responses (which must be silently dropped)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1352 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 05:35:19 +00:00
JINMEI Tatuya
1670cdbbe8 added a test for a short message
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
2010-03-12 05:06:14 +00:00
JINMEI Tatuya
c64dbdb7b7 introduced Message::parseHeader() so that we can perform minimal level
sanity check on incoming messages first.  Message::fromWire() internall
calls parseHeader().


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1350 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 05:04:36 +00:00