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

22338 Commits

Author SHA1 Message Date
Jelte Jansen
52cc97f6b4 Merged to_wire nulltermination bugfix from branches/jelte-datadef revision 297:298
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@319 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:47:13 +00:00
Jelte Jansen
7e2512b059 compile-time location for parkinglot.spec file
somewhat parse the commands structure in bigtool as they are sent by the config manager


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@318 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:41:58 +00:00
Jelte Jansen
f49960895f int type for wireformat in python, ruby and C
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@317 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:35:36 +00:00
Jelte Jansen
78dabb4433 bool type in cpp cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@316 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:18:37 +00:00
Jelte Jansen
8cf507e89d this seems safer, when TrueClass/FalseClass
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@315 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:14:19 +00:00
Jelte Jansen
fcb96d3442 bool type in ruby cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@314 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:06:42 +00:00
Michael Graff
ae6b4206d3 fix; had a duplicate method name
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@313 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:05:43 +00:00
Michael Graff
7a5fb2613c require utf8 strings
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@312 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:04:52 +00:00
Jelte Jansen
bc5d12940d bool type on wire in python messaging part
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@311 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 13:31:38 +00:00
Michael Graff
5b53b4fd6c add the ideas of UTF8 and BLOB types. Both are decoded into strings, and all strings are encoded into UTF8 for now.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@310 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:32:57 +00:00
Michael Graff
ba9a64862e lame, but at least non-empty, install file
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@309 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:23:19 +00:00
Michael Graff
735c7b752d make a difference between binary and string data. This is mostly because strings are utf-8, while binary is, well, binary.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@308 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:00:48 +00:00
Michael Graff
b94be96c7e make a difference between binary and string data. This is mostly because strings are utf-8, while binary is, well, binary.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@307 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:00:36 +00:00
Jelte Jansen
9c62eaeb0c whoops left some prints there
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@306 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 11:56:37 +00:00
Jelte Jansen
6d3e04f85e convert bool elements to native bools while decoding (otherwise there will be a lot of tripping of "false" equalling true when used directly)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@305 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 11:55:53 +00:00
Michael Graff
44691ada67 an actual test
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@304 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 10:37:15 +00:00
Michael Graff
ff55be8a87 correct len() of item to convert from utf-8 first
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@303 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 10:37:05 +00:00
Jelte Jansen
02b62f9e5a better prints
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@302 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 09:37:37 +00:00
Jelte Jansen
ed9e6e6a70 fix handling of shutdown messages
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@301 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 09:37:20 +00:00
Jelte Jansen
ebecf5b1dc tagged f2f branch as-is into tags/ (can imho be removed later)
renamed f2f branch to parkinglot



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@300 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 08:14:49 +00:00
Jelte Jansen
bf22fad024 accept the data_specification 'command' from modules
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@299 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 14:00:54 +00:00
Jelte Jansen
b6571be9e4 unsigned char arrays interpreted as strings are still null-terminated in c++
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@298 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 11:52:44 +00:00
Jelte Jansen
3a19a908ae (temporary!) workaround for decode problem; this needs a more substantial change (i.e. make the api encoding-agnostic), and will be reverted later, but is needed right now for the other changes in this branch
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@297 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 09:52:07 +00:00
Jelte Jansen
f39adf2274 added datadefinition checking to the DataDefinition class, throw DataDefinitionError when that fails
first argument of group_sendmsg() is now const
parkinglot now reads a parkinglot.spec file and tries to send it to the config manager (which currently fails somewhere in the msgq), file is read from cwd for now (i.e. the bin/bind10/bind10 dir)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@296 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-18 10:12:32 +00:00
Jeremy C. Reed
1714df4bf1 Require autoconf 2.59 instead of 2.61.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@295 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-05 14:05:26 +00:00
Jelte Jansen
488453a9a3 catch keyerror when trying to remove a non-existent zone
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@294 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 18:10:31 +00:00
Jelte Jansen
3d98d44233 don't listen to meonly on ParkingLot channel (because then it will miss add/remove commands)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@293 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 18:03:56 +00:00
Jeremy C. Reed
e5c62500b5 Fix typo in error output.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@292 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 17:39:46 +00:00
Jelte Jansen
805d4406fd start with data specification and validation part
added temporary test.cc and two data files for immediate testing


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@291 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 16:13:49 +00:00
Jelte Jansen
6d17271322 create_from_string now throws a ParseError exception instead of returning an empty shared pointer
keep track of position when parsing a string, for better error feedback, for example when using files


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@290 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 13:41:12 +00:00
Jelte Jansen
7ad757729c branch before some bigger changes
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@289 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 13:25:09 +00:00
Jelte Jansen
17cfd7a412 export PYTHON_EXEC if it wasn't set already; otherwise os.environ["PYTHON_PATH"] will throw an exception
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@288 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 13:16:57 +00:00
Jeremy C. Reed
ebf1459bb4 Make sure the PYTHON_EXEC environment variable is passed through.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@287 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-03 21:00:29 +00:00
Jelte Jansen
7730fa872a added Element::create_from_string(std::string) (as an addition to Element::create_from_string(std::stringstream)
small updates to documentation, still need to do it doxygen style


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@286 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-03 13:07:00 +00:00
Jelte Jansen
a9d524843d ask config manager for zones on startup instead of using a hardcoded default list
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@285 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-02 11:34:40 +00:00
JINMEI Tatuya
23f1419311 make sure binding listening sockets to specific addresses.
previously msgq accepts connection from any address, which is not good.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@284 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 20:20:32 +00:00
JINMEI Tatuya
439ce05432 use parking.example instead of parking.com (to avoid using an existing domain)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@283 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 07:20:14 +00:00
JINMEI Tatuya
8dc36dbcb4 more authors
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@282 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 07:09:55 +00:00
JINMEI Tatuya
087dcc96e8 more style fix
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@281 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 07:03:14 +00:00
JINMEI Tatuya
aa8ce4a2ed style (indentation fix)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@280 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 07:02:34 +00:00
JINMEI Tatuya
e7f8965c39 supported version.bind (which is 10.0.0s20091030)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@279 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 07:02:16 +00:00
Evan Hunt
ef93bc175b #include <sys/time.h> for gettimeofday()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@278 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 04:11:33 +00:00
JINMEI Tatuya
0794e56fdd now allowed incoming commands from bigtool via the cfg manager
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@277 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 00:48:39 +00:00
Jelte Jansen
1d24a900d1 also build msgq
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@276 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 00:41:13 +00:00
JINMEI Tatuya
04cf72b320 supported statistics in an ad hoc manner
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@275 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 00:31:32 +00:00
JINMEI Tatuya
30ab8873c2 check value of msg->get before using it
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@274 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-31 00:11:20 +00:00
JINMEI Tatuya
ef3594c51c make it at least compile
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@273 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-30 23:59:02 +00:00
JINMEI Tatuya
73ad893856 recovered Jeremy's RR for authors.bind
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@272 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-30 23:43:19 +00:00
JINMEI Tatuya
c9e2f1254c needed to subscribe to "statistics"
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@271 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-30 23:36:35 +00:00
JINMEI Tatuya
0c998ea23f sample code responding to statistics requests
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@270 e5f2f494-b856-4b98-b285-d166d9295462
2009-10-30 23:30:34 +00:00