2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-04 07:55:18 +00:00
Commit Graph

33255 Commits

Author SHA1 Message Date
JINMEI Tatuya
93104b9f14 fixed a bug in compareNames()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@781 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:48:04 +00:00
JINMEI Tatuya
2c586f07fd style/cleanup
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@780 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:46:49 +00:00
JINMEI Tatuya
027119c4e2 added detailed test cases for the generic rdata class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@778 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:56:45 +00:00
JINMEI Tatuya
11c412d47e cleanup
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@777 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:56:26 +00:00
JINMEI Tatuya
2295e005f7 merged a fix in trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@776 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:55:30 +00:00
JINMEI Tatuya
bde6077141 fixed an obvious error in assignment
(fixed in trunk, this will get reviewed in the next cycle of branching)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@775 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:52:29 +00:00
JINMEI Tatuya
a9dc811752 bug fixes identified via unittests, some cleanups, added operator<<
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@774 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:48:36 +00:00
Jelte Jansen
04f3eb1b3e cfgmgr handle non-existent db file
update copyright statements
added tests for data element helper functions
improved and cleaned up data element helper functions


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@773 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 16:12:41 +00:00
JINMEI Tatuya
4abeb3e389 used pimpl idiom to hide the internal use of std::vector (and therefore for
better portability)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@765 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 05:03:48 +00:00
JINMEI Tatuya
5d391aeb50 updated test data
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@764 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 04:04:09 +00:00
JINMEI Tatuya
45e7be0bbf added some test cases for "unknown" type of RDATA
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@763 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 04:00:26 +00:00
JINMEI Tatuya
59ddc483c0 made sure RR{Type|Class}Param's constant parameters are initialized when it's
first used.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@762 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 03:52:26 +00:00
JINMEI Tatuya
4d5233becd moved test cases for specific RDATA-type classes to separate files to keep
each test unit concise and more focused.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@758 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 00:43:38 +00:00
JINMEI Tatuya
450c2681a1 supported toText() and "from text" constructor for the generic (unknown) type
of RDATA


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@757 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 00:37:26 +00:00
Jelte Jansen
877a52f1c9 bit of refactoring in cfgmgr.py
added tests for ConfigManager class
also added in these tests a fake command session class, which we might want to generalize for other tests



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@748 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 16:31:00 +00:00
Jelte Jansen
15c1f8bc21 tests for ConfigManagerData
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@747 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 12:04:23 +00:00
Jelte Jansen
d21bec5c81 reply var could be uninitialized, so set to None before doing len check
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@746 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 11:15:08 +00:00
Jelte Jansen
03515c9829 created new branch for configuration changes
removed obsolete datasource branch


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@745 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 09:53:45 +00:00
JINMEI Tatuya
227a2d7a3d - avoided unnecessary file generation based on time stamps
- handle exceptions in a more sophisticated way
- made it more modular


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@744 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 07:40:52 +00:00
JINMEI Tatuya
fcfd8c8cbc specify tests in cpp/Makefile.am
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@743 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 00:57:18 +00:00
JINMEI Tatuya
6582726397 moved unit test related files to tests/ as we agreed in the f2f week.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@742 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 00:39:24 +00:00
JINMEI Tatuya
7618c5a326 new development branch from the latest trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@741 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 22:25:01 +00:00
Jelte Jansen
737d95aced also move host includes to 'new style' (i.e. without /cpp/)
reviewed by jeremy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@740 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 19:10:01 +00:00
Jelte Jansen
9bbf5a1452 added $srcdir to cat __init__.py files statements
reviewed by jeremy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@739 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 19:05:29 +00:00
Jeremy C. Reed
ddcf8a07b7 So trunk is now a copy of branches/parkinglot as of revision 736.
This is not a merge.
I will provide a list of code that must be reviewed using
our review procedure (other than it is in trunk now).
No commits to trunk from now on, unless they have followed
our review policy.
If code now in trunk is not reviewed, it will be removed from trunk.
An email will be sent with details.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@738 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 17:21:42 +00:00
Jelte Jansen
7cb3db70f5 forgot to svn add
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@736 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 11:13:45 +00:00
Jelte Jansen
3a866699f9 moved exceptions out of libdns and created libexceptions
don't forget to make clean and autoreconf again


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@735 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 11:09:38 +00:00
Jelte Jansen
2bf3412901 add include and boost:: namespace for lexical_cast
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@734 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 09:56:05 +00:00
JINMEI Tatuya
1675d4a7cb re-enabled -Woverloaded-virtual
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@731 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 04:41:55 +00:00
JINMEI Tatuya
13f30641f3 resolved name hiding between base and derived virtual member functions.
this will make the code -Woverloaded-virtual clean.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@730 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 04:41:39 +00:00
JINMEI Tatuya
c3c6b25c92 enabled keyword substitution
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@729 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 03:50:28 +00:00
JINMEI Tatuya
a7e2adfaee (minimum level of) RRSIG support
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@728 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 03:49:07 +00:00
JINMEI Tatuya
c635b9ac75 base64 encoder and decoder using boost base64_from_binary and
binary_from_base64


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@727 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 03:17:44 +00:00
JINMEI Tatuya
06fb83af31 more boost stuff, necessary for base64 encoder and decoder
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@726 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 03:17:01 +00:00
JINMEI Tatuya
40c690d9db minor editorial fix
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@725 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 00:40:53 +00:00
JINMEI Tatuya
4cecaf0b1d cleanup: hide section enumbs inside the class.
remove redundant postfix "U"s in enumerator values.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@724 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 23:13:31 +00:00
JINMEI Tatuya
dd50aa404b cleanup: skip performing unnecessary copy construction
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@723 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 23:11:40 +00:00
Jeremy C. Reed
fd461ee7bd Directory name was changed from pymsgq to msgq.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@722 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 14:00:07 +00:00
Jelte Jansen
85946ee1aa removed old test script
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@721 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 13:59:26 +00:00
Jelte Jansen
78a0005a8f - implemented tests for DataDefinition.validate(data)
- implemented DataDefinition.validate(data)
  (has one more feature than the cpp version, you can optionally pass it
  a list where it stores errors it finds, for user feedback)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@720 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 13:37:28 +00:00
Jelte Jansen
300ebfaf17 renamed camelCase methods to underscored in the python config classes
started with unittests for config/python


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@719 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 12:13:46 +00:00
Jelte Jansen
ef00fabe36 fix for negative TTL that gets parsed on newer versions of gcc/stdc++
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@718 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-04 09:54:32 +00:00
JINMEI Tatuya
d698c8b16a moved RRsetList to the data source module. it doesn't have to be in the
DNS library, and since we want to make the latter a general purpose library
we should avoid having dependency on std objects as much as possible.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@717 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 19:13:36 +00:00
JINMEI Tatuya
59446a2b87 made rrclass private.
in general we should avoid non-private member variables whenever possible
for various reasons.  and, in this case we can actually make it private
as we provide the accessor member function.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@716 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 19:07:54 +00:00
JINMEI Tatuya
624f839fd3 made sure data (RRsetList) is initialized in each iteration of the while loop
in runQuery().

the bug is a perfect example of why we should define variables as locally as
possible (and more preferably why we should avoid using variables maintaining
states as much as possible in the first place)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@715 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 19:03:58 +00:00
JINMEI Tatuya
0e91898859 chedk RRtype/class in findRRset()
additional clenaup and improvements:
- supported NS for the static names
- use 0 TTL to be compatible with the current behavior


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@714 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 19:01:42 +00:00
Jeremy C. Reed
d1b8e68971 For pyshared: Fix Util link and create a isc/__init__.py file.
This makes it so I can now actually run bind10 without any installation first.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@713 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 18:39:53 +00:00
Jeremy C. Reed
914d7ca080 If not B10_FROM_SOURCE then pre-pend the libexec directory
for starting programs from bind10.

Have auth installed to pkglibexecdir. (While here add a comment about
pkgdatadir problem.)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@712 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 17:30:38 +00:00
Jeremy C. Reed
5fad17f5bc Change package name from "bind" to "bind10". I know this is redundant
for bind10-10.0.0.  This defines @PACKAGE@ or $PACKAGE used for
installation subdirectory names.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@711 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 17:28:49 +00:00
Jelte Jansen
732ace0910 more tests, data_def.cc is not covered as much as possible
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@710 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 15:59:40 +00:00