2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 08:25:16 +00:00
Commit Graph

22978 Commits

Author SHA1 Message Date
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
Jelte Jansen
5b1fa8b74d i had changed libclient.a to libcfgclient.a but forgot to update the relevant makefiles
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@709 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 15:51:34 +00:00
Jelte Jansen
80707c7c0d tests for data_def.cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@708 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 12:08:19 +00:00
Jelte Jansen
f55eb12345 added one more optional createFromString method that lets you specify the source file name for better error reporting
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@707 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 11:38:38 +00:00
JINMEI Tatuya
c6feaf2e43 gave a separate line for an opening curly brace of a class member function
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@706 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 08:59:11 +00:00
JINMEI Tatuya
bd196743db use the constructor instead of SetUp() to silence cppcheck
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@705 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-03 08:56:01 +00:00
Jelte Jansen
bc361547e9 small fixes for most of the cppcheck errors
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@704 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 16:45:02 +00:00
Jelte Jansen
a7dbef7d8e forgot one
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@703 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 15:47:51 +00:00
Jelte Jansen
d8f5c49d9e fixed the warnings/errors from cppcheck
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@702 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 15:46:08 +00:00
Jelte Jansen
772fe0d8fe fixed error message and unit test
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@701 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 15:39:45 +00:00
Jelte Jansen
58f86251c5 - use <builddir>/include (the one with the symlinks) for all includes
so that we do not have to add /cpp/ to every #include line
- removed /cpp/ from every include line


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@700 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 15:33:55 +00:00
Jelte Jansen
c51d6c7ba3 Data Elements fixups;
- isc::data::TypeError is now a subtype of isc::dns::Exception (which i think we should move to namespace isc::)
- isc::data::ParseError not yet; it is a subclass of std::runtime_error (due to the error in quiestion being constructed on the fly, can we add an equivalent of that to isc::[dns::]Exception?
- toWire() family of functions now writes directly to a stream, with a convenience function for Element that does return a std::string
- removed unused and unspecified toXML functions


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@699 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-02 14:14:52 +00:00
Jelte Jansen
8ec49a3500 more build/install fixes;
output generated header files for lib/dns into source tree, not build tree
moved cfgmgr.py to lib/config/python/isc/config
run_bind10.sh now takes python path from build dir, not src


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@698 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 16:09:21 +00:00
Jelte Jansen
a042fbdc36 install auth.spec and use the right one
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@697 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 11:19:23 +00:00
Jelte Jansen
2e1dd5c36f two more fixes for capital and .py.in move
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@696 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 11:09:42 +00:00
Jelte Jansen
119fd99358 move python lib path ISC/CC to isc/cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@695 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 10:48:19 +00:00
Jelte Jansen
7dbb48a663 data path correction
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@694 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 10:05:36 +00:00
Jelte Jansen
3e366ab141 Moved most of the python code out of the .py.in and into a new .py
Should that one be moved back to lib/?


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@693 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 09:56:11 +00:00
Jelte Jansen
47ace28cb6 fixed scoping bug introduced by merge in static data source
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@692 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 09:13:34 +00:00
Jelte Jansen
c2f9d85d3a also propagate PYTHONPATH env var
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@691 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 09:07:20 +00:00
Evan Hunt
8399a64371 Merged experiments/each-query branch into parkinglot.
(This now builds the b10-auth binary.  The b10-parkinglot binary is
still being built for reference purposes, but is expected to be removed.
Both programs use port 5300, so they cannot be run simultaneously.)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@690 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 07:39:38 +00:00
Jelte Jansen
1a2234a583 Config manager now stores its data in @localstatedir@/@package@/b10-config.db
If run from source tree, it will store it in @abs_top_srcdir@/b10-config.db
if you depend on you data in /tmp/parkinglot.db, copy that one to the correct file


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@688 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 02:26:22 +00:00
Jelte Jansen
dcdd4f6b8c location fix for install spec file
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@687 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 02:18:59 +00:00
Kazunori Fujiwara
f1f4973dbe space fix
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@686 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 02:01:02 +00:00
Kazunori Fujiwara
454b12d9c2 merged into statsd.txt
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@685 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 01:47:45 +00:00
Kazunori Fujiwara
5f78edc4a7 added some information
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@684 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 01:47:22 +00:00
Likun Zhang
d9bc5da0b8 Refine some code according code review result from hanfeng.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@681 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 01:44:01 +00:00
Likun Zhang
335fab6b45 Remove error message when the default_user.csv doesn't exist.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@680 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 01:37:43 +00:00