2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

22978 Commits

Author SHA1 Message Date
JINMEI Tatuya
9702844acd a separate branch to implement straightforward classes for RR fields
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrrparams@413 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 20:01:48 +00:00
Jelte Jansen
579aae2cc8 made a start with automating coverage tests;
configure --with-lcov will try /usr/bin and /usr/local/bin for the lcov and genhtml binaries
(use --with-lcov=PATH to specify a full path to the lcov binary, genhtml is assumed to be in the same one)
this enables a new makefile target; coverage
make coverage removes old coverage results, performs the tests (by depending on make check), and generates a new report in coverage/


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@412 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 16:07:20 +00:00
Jelte Jansen
bfec93a540 better gtest check in configure.ac; if a path is given, use that, if not, try /usr and /usr/local.
Now gives a configure-time error if gtest is not found (by checking gtest/gtest.h in the path(s))


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@411 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 14:03:40 +00:00
JINMEI Tatuya
070eadbef4 typo
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@410 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-28 20:53:26 +00:00
JINMEI Tatuya
411da103e1 added more tests for broader coverage
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@409 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-28 20:53:14 +00:00
Jelte Jansen
138c18e70a refactor: function_name to functionName in data.h (functions on isc::data::Elements)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@408 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:30:19 +00:00
Jelte Jansen
27185721c3 refactor: namespace changes
ISC -> isc
ISC::Data -> isc::data
ISC::CC -> isc::cc


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@407 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:15:23 +00:00
Jelte Jansen
f772eb96a9 merged branch jelte_datadef back
Configuration syntax has changed; see README
Also the parkinglot.db format has changed and 'old' configuration will be
thrown away.
Merge back done to facilitate refactoring of names to conform to style guidelines (doing that in a separate branch could create too many conflicts)
next up: tests and documentation


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@405 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 10:00:34 +00:00
JINMEI Tatuya
db32ae7faa added a test case for a chain of compression pointers
(existing tests didn't cover this case - identified by lcov)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@404 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 22:39:02 +00:00
Jelte Jansen
7716c00715 added a few includes to make it work on my system, please check
also added a default path for --with-gtest (which should probably be extended to try from a list of default paths)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@403 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 19:32:47 +00:00
Jelte Jansen
65aed9de8a remove generated files
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@402 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 13:49:02 +00:00
Shane Kerr
543dbfd90d Things to do for the boss process.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@401 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 11:51:08 +00:00
JINMEI Tatuya
57dc7e08c9 added explicit variable initialization to make some compilers happy
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@400 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 19:39:35 +00:00
Jelte Jansen
17514e12dc add positional parameters in bigtool; merge back from jelte-datadef rev 342 and 386
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@399 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 14:09:21 +00:00
Jelte Jansen
60e8544e60 fixed some en/decoding bugs in the cpp part of the new cc wire format
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@398 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 13:54:57 +00:00
Jelte Jansen
ec10fee3bd don't send config if it is None
removed catch-all in ccsession (i want to get the original exception)
check result size after get_config in parkinglot


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@397 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 09:38:48 +00:00
JINMEI Tatuya
cd74bea651 addressed compilation problem with some compilers about class static constants
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@396 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 20:34:45 +00:00
Jelte Jansen
91d64d64b9 make A, AAAA and NS sets configurable in parkinglot
(SOA still fixed though)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@395 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 15:34:08 +00:00
Jelte Jansen
e0f80ec2f7 common module-side API for commands and configuration
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@394 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 12:45:14 +00:00
JINMEI Tatuya
04de5d1317 added more description about the implementation
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@393 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 04:50:27 +00:00
JINMEI Tatuya
0215760bcf throw IncompleteName (instead of BadLabelType) when the "from text" constructor
finds the name incomplete.  This also covers the case an empty string is given.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@392 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:24:09 +00:00
JINMEI Tatuya
fbf185b495 documented the message renderer class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@391 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:16:26 +00:00
JINMEI Tatuya
272e807f8f avoid using hardcoded magic numbers
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@390 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 03:15:21 +00:00
JINMEI Tatuya
b9ced3f2ee defined some compression related constants to avoid hardcoding magic numbers
as much as possible.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@389 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-19 02:31:33 +00:00
JINMEI Tatuya
d09d0eccb1 (re)cleanup: << should be in isc::dns.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@388 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 22:48:37 +00:00
Jelte Jansen
4974ce5dc8 some unit tests for Elements, and fixed a few bugs while i was writing them
also added a is_null(ElementPtr) function
added a test target to the main makefile (which will execute any executable binary in the tree that ends with "unittests")


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@387 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 17:41:23 +00:00
Jelte Jansen
1af07bbec7 smarter handling of optional and mandatories in positional parameter handling
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@386 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 10:44:04 +00:00
JINMEI Tatuya
38b6c4ec8f note about the private default constructor.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@385 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 07:38:12 +00:00
JINMEI Tatuya
50c15b8ff2 cleanup: removed an unnecessary declaration.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@384 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 07:35:08 +00:00
JINMEI Tatuya
5a74492d01 typo
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@383 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 04:00:39 +00:00
JINMEI Tatuya
eae7ecfc79 documented <<
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@382 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 04:00:27 +00:00
JINMEI Tatuya
f787dfa3d7 added <=, <, >=, >
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@381 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 03:47:52 +00:00
JINMEI Tatuya
6c11b782aa more test case
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@380 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 03:30:32 +00:00
JINMEI Tatuya
d996df7585 on second thought, it doesn't seem to be a good idea to have two downcase()
versions as the notation looks too similar and can be confusing.
revised the API and noted the restriction.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@379 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 03:26:42 +00:00
JINMEI Tatuya
7779523efb added downcase() methods
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@378 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-17 23:58:42 +00:00
JINMEI Tatuya
d63da1acb5 use .lib/libdns.a for unittest
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@377 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-17 20:41:05 +00:00
JINMEI Tatuya
fd7002685d added -fPIC unless we disable shared libraries.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@376 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-17 00:53:03 +00:00
JINMEI Tatuya
53f3f7bb58 suppressed compiler warnings
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@374 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-16 07:41:01 +00:00
JINMEI Tatuya
8a23fa465f use stricter compiler warnings
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@373 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-16 07:40:41 +00:00
JINMEI Tatuya
42cec1f71a changed some definitions for libtool
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@372 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-16 07:33:12 +00:00
JINMEI Tatuya
c86288413b added AC_PROG_LIBTOOL
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@371 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-16 07:01:34 +00:00
Jeremy C. Reed
b59ef35ca1 Also add the install wrappers, so they install too.
TODO: these install wrappers need to be improved to run correctly
from the installed prefix.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@370 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 18:18:41 +00:00
Jeremy C. Reed
0770bad2bd Add beginning Makefile.am for bigtool, msgq, and bind10.
Install these scripts too.
(TODO: need to install the wrapper script too.)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@369 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 18:14:20 +00:00
JINMEI Tatuya
9fec54f0b5 some more comments on the implementation.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@367 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 05:06:08 +00:00
JINMEI Tatuya
a782f38489 added Name::split() method.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@366 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 05:00:32 +00:00
JINMEI Tatuya
95447e6897 add a utility for checking name equality
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@365 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 05:00:19 +00:00
JINMEI Tatuya
dd091fe6c7 fixed a doxygen error
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@364 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 04:59:44 +00:00
JINMEI Tatuya
3cf09942c9 more test cases
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@363 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-14 20:04:54 +00:00
JINMEI Tatuya
9e6879509a indentation fix
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@362 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-13 19:49:49 +00:00
JINMEI Tatuya
201aa42b67 added the concatenate() method
fixed signed/unsigned bug
added some more test cases


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@361 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-12 02:44:57 +00:00