2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00
Commit Graph

28742 Commits

Author SHA1 Message Date
Shane Kerr
22ec353059 First BoB tests created
Respect verbose flag when starting BoB
Make message processing robust
Refactor to make testable
Convert from poll() to select() 

Update TODO list



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@520 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:03:47 +00:00
Jelte Jansen
d15a22cd34 a bit of documentation for the DataDefinition class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@518 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 19:57:03 +00:00
Jelte Jansen
c6233a9430 removed manual test binary (this 'test' belongs in a to-be made data_spec_unittests file)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@517 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 19:48:29 +00:00
Jelte Jansen
f389d00070 merged back branches/jelte_datasource1 branch
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@515 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 18:44:38 +00:00
Jelte Jansen
86b6d221bb fix call to python_exec
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@514 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 18:33:51 +00:00
Likun Zhang
b1f321649b Add TODO for bindctl and cmd-ctrld.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@499 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 15:40:22 +00:00
Jeremy C. Reed
8e57f3c2c3 Beginning of manual page.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@497 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 13:53:49 +00:00
Jelte Jansen
845df07f81 parkinglots zoneset now contains Names instead of strings,
made std:set an attribute instead of zoneset a subclass
Added a very temporary operator< to Name (this is the 'old' name), which was needed for zoneset.
Made the DS API interaction a bit smarter
parkinglot can now return NXDOMAIN if you ask for a subdomain of a known one (still returns SERVFAIL for unknown zones)



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datasource1@496 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 13:28:40 +00:00
Likun Zhang
2019e5737c Change the code to support new module 'cmd-ctrld'.
When bindctl starts up, it needs login into cmd-ctrld. The communication between bindctl and cmd-ctrld is protected by SSL.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@494 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 09:08:32 +00:00
Likun Zhang
e3e8cda089 Change the code to support new module 'cmd-ctrld', Now,
1. bindctl(bigtool) will send the command to cmd-ctrl.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@493 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 08:56:27 +00:00
Likun Zhang
94a69d0f92 Add code for cmd-ctrld.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@492 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 08:53:36 +00:00
Jeremy C. Reed
d2d260606c Fix typo in a pydoc comment.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@490 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-20 18:00:27 +00:00
Jeremy C. Reed
242913dd88 Fix year.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@489 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-20 17:54:58 +00:00
Jeremy C. Reed
9f56fe9d7b Renamed bigtool to bindctl.
Moved some directories for this and edited files
to change BIGTOOL, BigTool, bigtool to
BINDCTL, BindCtl, bindctl respectively.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@488 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-20 17:46:09 +00:00
Jeremy C. Reed
fb3b1d4a30 Install the manual page.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@487 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-20 16:35:09 +00:00
Jelte Jansen
7f7c99f1af check on config add/remove if the given identifier actually leads to a list
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@486 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-20 10:27:27 +00:00
Jeremy C. Reed
328b2179f5 Prompt also may show the location.
Remove/comment out the ParkingLot documentation (it is not builtin
and will be documented elsewhere).
Add more details about the boss shutdown.
Add another usage example.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@484 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-19 15:20:19 +00:00
Shane Kerr
64ca28c2c2 Began test suite for the BoB.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@483 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-19 14:43:19 +00:00
Jelte Jansen
a7eca45ffa regex that matches arg_name=value pairs in bigtool input did not include / character
do we need more that are not part of \w?


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@481 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-19 13:44:23 +00:00
Shane Kerr
dca5b510c4 Don't try to restart anything if we're shutting down.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@480 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-19 12:59:50 +00:00
Jeremy C. Reed
016ba9a3e8 Add "quit" command.
Fix some descriptions.
Clean up.
Add a couple examples.
Almost done!


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@472 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-18 23:14:27 +00:00
Jeremy C. Reed
8b868a36e4 Add more details. Move some of the commands to their own
sections (by module).


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@471 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-18 22:57:07 +00:00
Jeremy C. Reed
7757fc4e71 Initial manual page. Needs lots of work.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@470 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-18 22:17:17 +00:00
Jelte Jansen
1ee5cfa470 datasource updates, add zone concept (with temporary(?) getZoneFor()), removed old code
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datasource1@469 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-18 11:45:32 +00:00
JINMEI Tatuya
5030bb50de typo in a comment (so trivial so I think it's okay to commit)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@468 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-16 07:37:40 +00:00
Jelte Jansen
4de81a4f15 added a missing position counter
removed a few lines of dead code


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@463 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-13 13:14:31 +00:00
Jelte Jansen
5546f52f59 temporary branch for example implementation of original data source proposal. Mainly for archival purposes, will be removed once definite design is agreed upon.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datasource1@446 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-12 10:32:29 +00:00
Shane Kerr
b5d9864f28 Moved child process cleanup out of signal handler.
Fix for broken msgq startup.
Update TODO.



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@438 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 12:55:21 +00:00
Jelte Jansen
8b3bc064c7 move reuseaddr directive before bind()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@437 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 12:43:58 +00:00
Jelte Jansen
f37a4968f4 fix for msgq; ctrl-c-ing bind10 would sometimes leave the socket connection hanging. Fixed to catch SIGTERM and KeyboardInterrupts to cleanly shut down the msgq (is there a way to do this without a global variable?)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@436 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-08 11:45:19 +00:00
Jelte Jansen
470b5bb729 fixed a few bugs found with the tests;
- added a wire-type ITEM_REAL (for DoubleElements) (we could technically
  use ITEM_INT with the current code, but certainly not ITEM_UTF8).
  if we keep this one, we need to add it to the other versions too (python&ruby)
- Bad boolean values in the string format returned a Null ElementPtr instead of   raising an exception.
- Fixed decoding of True values off the wire
- Removed a few checks that aren't needed
- Fixed a null-termination problem when encoding big packets (i.e. > 256 and
  > 65535 bytes)



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@426 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 12:59:22 +00:00
Jelte Jansen
b84f1d4f21 nearly complete code coverage (toXML is not covered, and the bad_alloc catches, should those be removed?)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@425 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-04 12:54:59 +00:00
Jelte Jansen
307918fc7a added doxygen docs for most of data.h
copied jinmei's Doxyfile from branches/jinmei-dnsmessageapi


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@417 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 13:59:38 +00:00
Jelte Jansen
6cd9f05e65 catch session error and exit (fix for trac ticket 11)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@416 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 09:45:42 +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
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
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
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
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
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
Jelte Jansen
06726eb3ab where did that space come from
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@353 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 18:01:33 +00:00
Jelte Jansen
b49e1991f7 move prepare_module_commands to bigtool class
bigtool now listens to 'specification_update' and 'commands_update' commands for data_spec and module commands of modules that were not running yet at the time bigtool was started. no command for removal yet


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@352 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 16:34:56 +00:00
Jelte Jansen
f0d108331d store config data in a text file instead of a pickle binary
config data store now also has a version, so we can include a migration path later (for now if it find an old version it will throw away all config)
when storing the configuration, write it to a tmp file first, then move it if the writing succeeds, so we don't end up with a 0-byte file


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@351 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 11:24:45 +00:00