2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

799 Commits

Author SHA1 Message Date
Jeremy C. Reed
8b7224c5d5 Remove AC_PROG_RANLIB since is obsolete when using AC_PROG_LIBTOOL.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1133 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 17:59:55 +00:00
JINMEI Tatuya
a899152754 - corrected the condition for the case of !-4
- (minor style change) simplified some if conditions


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1132 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 17:54:25 +00:00
Jeremy C. Reed
7e9e13dad2 Include <netinet/in.h> for IPPROTO_UDP.
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
2010-03-05 17:42:41 +00:00
Evan Hunt
3d53e9c286 - set IPV6_V6ONLY socket option
- a few other dual-stack fixes


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1130 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 17:26:06 +00:00
JINMEI Tatuya
95a8834341 made the auth server dual-stack (kind of quick hack)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1129 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 10:00:12 +00:00
JINMEI Tatuya
8430ef5fd1 define TestDataSrc::init() to avoid initialization ordering problems
for some non local objects


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1128 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 09:21:42 +00:00
JINMEI Tatuya
73ed77244d - don't try loading nsec tables yet (as tools are not publicly available)
- some other minor cleanups


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1127 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 09:11:45 +00:00
Evan Hunt
cc884a66e8 checkpoint:
- added code for findCoveringNSEC3()


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1126 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 08:30:37 +00:00
Evan Hunt
5fd4500eb8 Merge base32, sha1, and NSEC3/NSEC3PARAM rdata implementations to trunk
(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
2010-03-05 07:44:05 +00:00
JINMEI Tatuya
68eab3b157 an additional test case for CNAME loops
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1124 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 07:26:10 +00:00
JINMEI Tatuya
f63c6c7087 moved private member variables to .cc to reduce header file dependency
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1123 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 06:56:44 +00:00
JINMEI Tatuya
244fb8ed70 simplified test code (no logic change)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1122 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 04:59:13 +00:00
JINMEI Tatuya
2c8d432628 cleanup: removed intermediate try-catch. this might be a bit controversial,
but IMO it doesn't make sense


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1121 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 04:58:20 +00:00
Jeremy C. Reed
2e119c7e22 Restructure trunk again.
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
2010-03-05 04:31:28 +00:00
JINMEI Tatuya
3e248e341b - made AuthSrv construction exception-safe
- 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
2010-03-05 00:02:08 +00:00
JINMEI Tatuya
9ca9eee096 overall cleanup:
- style consistency
  - remove unnecessary temporary variables to make functiosns concise


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1117 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 22:51:26 +00:00
Jeremy C. Reed
ced4682b46 Remove parkinglot again. I thought I removed it in revision 784.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1116 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 22:39:07 +00:00
JINMEI Tatuya
1add5d52d8 fixed memory leak for QueryTask::zone
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
2010-03-04 20:05:58 +00:00
Jeremy C. Reed
3ac7cb156e Beginning of admin and reference guide.
I need to add a Makefile and target to build this.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1112 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 19:51:35 +00:00
JINMEI Tatuya
7ec9d71076 overall cleanup for the data source code, phase 1.
- 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
2010-03-04 17:57:39 +00:00
JINMEI Tatuya
04b8a4fc38 editorial fix to a comment
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1109 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 17:49:33 +00:00
JINMEI Tatuya
7a4a0c9c93 added clarification comments on constness
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1107 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 01:04:34 +00:00
JINMEI Tatuya
c2b9627fc0 cleanup: removed redundant const declarations for passed-by-value
function parameters.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1106 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 00:57:18 +00:00
JINMEI Tatuya
09b51307b7 cleanup: removed unnecessary include files, and reorder them in the more
more appropriate order.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1105 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 00:44:12 +00:00
JINMEI Tatuya
140be7df88 cleanup:
- 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
2010-03-04 00:39:03 +00:00
JINMEI Tatuya
840c1d8b6e relatively minor cleanup: move a big constructor logic to .cc
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1103 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-04 00:03:35 +00:00
JINMEI Tatuya
954a0b8f83 minor style fixes:
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
2010-03-03 23:51:06 +00:00
JINMEI Tatuya
67b7a47075 explicitly enable DNSSEC in query tests. now we've added EDNS support
it cannot always be assumed.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1101 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 23:50:19 +00:00
JINMEI Tatuya
205d3331be - added test case triggering a crash (currently commented out)
- 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
2010-03-03 22:57:21 +00:00
JINMEI Tatuya
0c33f31afc editorial fix on comment line
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1099 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:55:44 +00:00
JINMEI Tatuya
df7b6f86b9 NSEC RDATA with invalid a type bitmap
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1098 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:55:18 +00:00
JINMEI Tatuya
1ab9b29252 avoided byte-by-byte copy
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1097 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:51:42 +00:00
JINMEI Tatuya
b4f1b6d06d fixed a buffer-overrun bug in the from-wire constructor.
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
2010-03-03 22:47:46 +00:00
JINMEI Tatuya
1faaf0fbae avoid byte-by-byte copy
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1095 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:30:23 +00:00
JINMEI Tatuya
877de8a040 style consistency
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1094 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:29:04 +00:00
JINMEI Tatuya
47bb730769 cleanup: removed unnecessary vector.resize()
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1093 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 22:21:59 +00:00
JINMEI Tatuya
723715b99b refer to the DO bit of incoming query to decide whether to include DNSSEC RRs
now that we support EDNS.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1092 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 20:09:21 +00:00
JINMEI Tatuya
e325992688 clarify: a simple comment "60" as a second value
style cleanup: C++-ize y++ vs ++y


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1091 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 20:08:28 +00:00
JINMEI Tatuya
984f17ff58 cleanup: removed redundant suffix from test names
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1090 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 18:04:49 +00:00
JINMEI Tatuya
f3bb4c13fc added more tests on dnstime with wider coverage, and moved them to a
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
2010-03-03 18:01:48 +00:00
Shane Kerr
a9ffdf731e Cleanup shutdown messages a bit.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1088 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 08:39:10 +00:00
Shane Kerr
b1881fc59d Do not start if msgq is already running.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1087 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 08:36:38 +00:00
JINMEI Tatuya
c6203e01e8 style cleanup: consistent use of {}
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1086 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-03 00:22:36 +00:00
JINMEI Tatuya
bf8ac5b844 cleanup and minor efficiency improvement: copy signature data without
the byte-by-byte loop.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1085 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:59:45 +00:00
JINMEI Tatuya
2023e1ffe3 tightened the data length check for the from-wire constructor.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1084 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:54:10 +00:00
JINMEI Tatuya
b044a4f4b7 - renamed the test data
- 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
2010-03-02 23:34:57 +00:00
JINMEI Tatuya
717ec26cc3 rename for consistency
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1082 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:31:41 +00:00
JINMEI Tatuya
b7ad237366 added a malformed RRSIG RDATA that woud make the constructor crash
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1081 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:31:12 +00:00
JINMEI Tatuya
4a30010286 RRSIG format fix
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1080 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:29:56 +00:00
JINMEI Tatuya
30c5fcff85 fixed a parameter error
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1079 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-02 23:19:08 +00:00