]>
git.ipfire.org Git - thirdparty/kea.git/log
Naoki Kambe [Tue, 13 Nov 2012 01:09:58 +0000 (10:09 +0900)]
[2298_7] Merge branch 'trac2298_7'
Naoki Kambe [Tue, 13 Nov 2012 01:09:56 +0000 (10:09 +0900)]
[2298_1] Merge branch 'trac2298_1'
Jeremy C. Reed [Mon, 12 Nov 2012 21:05:54 +0000 (15:05 -0600)]
[trac2305] various minor documentation changes
add some docbook formatting tags
minor formatting changes.
bindctl -a defaults to 127.0.0.1 not localhost
add a space between "BIND 10"
some rewording
a few punctuation changes
add a sentence to describe an example
JINMEI Tatuya [Mon, 12 Nov 2012 20:22:41 +0000 (12:22 -0800)]
[2372] use specific constatnt values for Options instead of using the << trick
the previous code doesn't seem to be understandable as I thought, so I
simplfy revert to the more straightforward way.
also added doc for the enum
JINMEI Tatuya [Mon, 12 Nov 2012 20:12:58 +0000 (12:12 -0800)]
[2372] catch a buggy case of bogus ID in State::getInstance
JINMEI Tatuya [Mon, 12 Nov 2012 20:05:46 +0000 (12:05 -0800)]
[2372] made sure entire test sstring is built before starting test case.
The previous code should actually be safe based on the iostream/streambuf
APIs, but it's even much safer to completely give the ownership of the
passed stream to the input source.
Stephen Morris [Mon, 12 Nov 2012 19:17:51 +0000 (19:17 +0000)]
[master] ChangeLog for trac2342
JINMEI Tatuya [Mon, 12 Nov 2012 19:05:58 +0000 (11:05 -0800)]
[2372] hide specific state cleasse inside an unnamed namespace.
they don't have to be (actually they already aren't) visible outside this
translation unit.
JINMEI Tatuya [Mon, 12 Nov 2012 19:02:28 +0000 (11:02 -0800)]
[2372] a minor documentation wording correction.
JINMEI Tatuya [Mon, 12 Nov 2012 18:50:48 +0000 (10:50 -0800)]
[2372] minor editorial cleanup in a comment
Stephen Morris [Mon, 12 Nov 2012 17:16:07 +0000 (17:16 +0000)]
[2342] Merge branch 'master' into trac2342
Stephen Morris [Mon, 12 Nov 2012 14:57:03 +0000 (14:57 +0000)]
[2342] Miscellaneous changes as a result of review
Michal 'vorner' Vaner [Mon, 12 Nov 2012 10:53:53 +0000 (11:53 +0100)]
Make some constants unsigned explicitly
This should fix compilation, where it complains:
rrttl_unittest.cc:79: warning: this decimal constant is unsigned only in ISO C90
Michal 'vorner' Vaner [Mon, 12 Nov 2012 09:25:29 +0000 (10:25 +0100)]
Changelog for #2384
Michal 'vorner' Vaner [Mon, 12 Nov 2012 09:10:20 +0000 (10:10 +0100)]
Merge #2384
Stephen Morris [Sun, 11 Nov 2012 22:55:41 +0000 (22:55 +0000)]
[2342] Merge branch 'master' into trac2342
Conflicts:
doc/devel/mainpage.dox
src/lib/dhcp/Makefile.am
src/lib/dhcp/lease_mgr.cc
src/lib/dhcp/lease_mgr.h
src/lib/dhcp/tests/Makefile.am
src/lib/dhcp/tests/lease_mgr_unittest.cc
A number of other files were modified to resolve incompatibilities
in the way lease managers were created, and to promote the dummy
"memfile" lease manager to a fully-fledged lease manager with
unit tests.
Michal 'vorner' Vaner [Sat, 10 Nov 2012 10:28:53 +0000 (11:28 +0100)]
[2384] Little bit more range checking
There was a gap when one thing could overflow to negative numbers.
JINMEI Tatuya [Fri, 9 Nov 2012 22:27:14 +0000 (14:27 -0800)]
[2471] make sure rdata iterator is valid in DNAME proc for sufficiently long
otherwise it could result in using a freed object if the RRset comes from
the built in in-memory data source. This change makes the test in the
previous commit pass.
JINMEI Tatuya [Fri, 9 Nov 2012 22:25:46 +0000 (14:25 -0800)]
[2471] added a test cast for DNAME query proc using real in-memory datasrc.
this reproduces the problem of this ticket.
JINMEI Tatuya [Fri, 9 Nov 2012 17:21:29 +0000 (09:21 -0800)]
[2384] style fix: folded a long line
Stephen Morris [Fri, 9 Nov 2012 16:58:04 +0000 (16:58 +0000)]
[master] ChangeLog for trac2414
Stephen Morris [Fri, 9 Nov 2012 16:40:20 +0000 (16:40 +0000)]
[2414] Merge branch 'master' into trac2414
Stephen Morris [Fri, 9 Nov 2012 16:11:24 +0000 (16:11 +0000)]
[2342] Added comments as result of review
Stephen Morris [Fri, 9 Nov 2012 15:42:45 +0000 (15:42 +0000)]
[2414] Changes after review
Marcin Siodelski [Fri, 9 Nov 2012 15:24:27 +0000 (16:24 +0100)]
[2342] Minor: typos fixed.
Marcin Siodelski [Fri, 9 Nov 2012 12:55:16 +0000 (13:55 +0100)]
[2342] Temporarily moved duid.{h,cc} from libdhcp++ to libdhcp_srv.
Having duid.{h, cc} in libdhcp++ causes dependency between two libraries.
Due to this dependency multi-threaded build fails because libs are created
by different threads simultaneously and race condition occurs. Libraries
should be moved to separate folders and have separate makefiles. This
complies with BIND10 structure and will make this issue goe away.
Michal 'vorner' Vaner [Fri, 9 Nov 2012 11:58:20 +0000 (12:58 +0100)]
[2376] Documentation update
Michal 'vorner' Vaner [Fri, 9 Nov 2012 11:51:13 +0000 (12:51 +0100)]
[2376] Disallow missing last unit
Also, simplify the code little bit and make it run faster in the case of
TTL without any units.
Michal 'vorner' Vaner [Fri, 9 Nov 2012 11:44:41 +0000 (12:44 +0100)]
[2376] Disallow case with the last unit missing
Jelte Jansen [Thu, 8 Nov 2012 16:48:56 +0000 (17:48 +0100)]
[2464] fix call to last_had_signature()
Jelte Jansen [Thu, 8 Nov 2012 16:25:48 +0000 (17:25 +0100)]
[2464] Add lettuce test for TSIG
Should fail at this time
Mukund Sivaraman [Fri, 9 Nov 2012 08:00:51 +0000 (13:30 +0530)]
[2353] Test verbose case of BoB.start_simple()
Mukund Sivaraman [Fri, 9 Nov 2012 07:56:39 +0000 (13:26 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 07:56:00 +0000 (13:26 +0530)]
[2353] Directly use bob.components instead of bob.get_processes()
Mukund Sivaraman [Fri, 9 Nov 2012 06:16:34 +0000 (11:46 +0530)]
[2353] Just check the output of get_processes() is empty (as a boolean)
Mukund Sivaraman [Fri, 9 Nov 2012 06:14:19 +0000 (11:44 +0530)]
[2353] Check that kill_started_components() forcefully kills components
Mukund Sivaraman [Fri, 9 Nov 2012 06:06:16 +0000 (11:36 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 06:02:55 +0000 (11:32 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 06:01:58 +0000 (11:31 +0530)]
[2353] Ensure that get_processes() returns a sorted list
Mukund Sivaraman [Fri, 9 Nov 2012 05:42:01 +0000 (11:12 +0530)]
[2353] Check remove_socket_srv() with different states of BoB._srv_socket
Mukund Sivaraman [Fri, 9 Nov 2012 05:39:04 +0000 (11:09 +0530)]
[2353] Ensure that the server listens on the socket
Mukund Sivaraman [Fri, 9 Nov 2012 05:15:21 +0000 (10:45 +0530)]
[2353] Check that getsockname() on the socket returns what we expect
Mukund Sivaraman [Fri, 9 Nov 2012 05:11:38 +0000 (10:41 +0530)]
[2353] Test that the socket and tmpdir are deleted
JINMEI Tatuya [Thu, 8 Nov 2012 22:36:04 +0000 (14:36 -0800)]
[master] Merge branch 'trac2447'
Stephen Morris [Thu, 8 Nov 2012 20:43:20 +0000 (20:43 +0000)]
[2414] Merge branch 'master' into trac2414
Stephen Morris [Thu, 8 Nov 2012 20:30:24 +0000 (20:30 +0000)]
[2414] Remove "using namespace boost"
For some reason, on Solaris this causes types "uintXX_t" to become
undefined. The "using" statement was removed and an explicit
namespace prepended to declarations of shared_ptr and dynamic_pointer_cast.
Stephen Morris [Thu, 8 Nov 2012 20:09:10 +0000 (20:09 +0000)]
[2414] Get rid of memory leak
The allocation engine is now pointed to by a shared pointer. Previously
it was pointed toi by a raw pointer and not deleted in the destructor.
Also, use an automatic variable to hold the DHCP6 server in the
unit tests.
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:31:02 +0000 (18:31 +0100)]
[2384] Remove obsolete comment
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:27:00 +0000 (18:27 +0100)]
[2384] Test leading zeroes in TTL
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:24:14 +0000 (18:24 +0100)]
[2384] Simplify range check
It doesn't need to check the number of digits. It seems the tests pass
now without problems as well. Also, it might be problematic with large
number of leading zeroes.
Also, simplify comment with description.
JINMEI Tatuya [Thu, 8 Nov 2012 16:51:24 +0000 (08:51 -0800)]
[2447] corrected a log name
Marcin Siodelski [Thu, 8 Nov 2012 16:26:10 +0000 (17:26 +0100)]
[2463] Minor: typo fixed.
Marcin Siodelski [Thu, 8 Nov 2012 16:23:49 +0000 (17:23 +0100)]
[2463] Minor changes in comments.
Jeremy C. Reed [Thu, 8 Nov 2012 14:52:10 +0000 (08:52 -0600)]
[master] split up test
From http://bind10.isc.org/ticket/2468#comment:2 to help troubleshoot later.
Okayed via jabber.
Stephen Morris [Thu, 8 Nov 2012 13:14:19 +0000 (13:14 +0000)]
[2342] More changes as a result of review
a) Corrected some method headers
b) Added additional diagnostic output should the test fail to
open the database.
Marcin Siodelski [Thu, 8 Nov 2012 13:09:23 +0000 (08:09 -0500)]
[2463] Added new constructor to OptionDescriptor structure.
Marcin Siodelski [Thu, 8 Nov 2012 12:53:41 +0000 (07:53 -0500)]
[2463] Reset configuration after each unit test.
Stephen Morris [Thu, 8 Nov 2012 12:50:34 +0000 (12:50 +0000)]
[2342] Encapsulate mysql_stmt_free_result in a temporary object
... to ensure that it is always called when a method terminates.
Stephen Morris [Thu, 8 Nov 2012 12:14:10 +0000 (12:14 +0000)]
[2342] Documentation changes as result of review
Jelte Jansen [Thu, 8 Nov 2012 11:07:18 +0000 (12:07 +0100)]
[2447] fix small typo in docstring
JINMEI Tatuya [Thu, 8 Nov 2012 08:28:23 +0000 (00:28 -0800)]
[2447] dump a log message if connecting to cc-channel fails.
and suggest checking output from msgq using -v.
JINMEI Tatuya [Thu, 8 Nov 2012 07:51:23 +0000 (23:51 -0800)]
[2447] improve intitial failure handling for msgq, gracefully and with logs
JINMEI Tatuya [Thu, 8 Nov 2012 07:40:37 +0000 (23:40 -0800)]
[2447] show the reason of the error when opening IPC lock file fails.
JINMEI Tatuya [Thu, 8 Nov 2012 07:37:47 +0000 (23:37 -0800)]
[2447] use helper __kill_children method to kill all initial processes
previously it could result in exception (by the attempt of killing sockcreator
as a chuser'ed process) during initial setup failure, leading to unclean
shutdown. the revised code prevents it from happening, and also makes the
code concise by unifying the common logic.
JINMEI Tatuya [Thu, 8 Nov 2012 07:25:32 +0000 (23:25 -0800)]
[2447] catch failure on initial log, which is most likely a permission issue.
so, it now just prints some hints to stderr and exits.
JINMEI Tatuya [Thu, 8 Nov 2012 06:35:25 +0000 (22:35 -0800)]
[2447] improved detailed description of CONFIG_LOAD_FAIL ref'ing sock failure.
it even suggests restarting as a root.
JINMEI Tatuya [Thu, 8 Nov 2012 06:31:56 +0000 (22:31 -0800)]
[2447] improved exception message on sockcreator failure to help admin.
it now includes textual representation of errno, and, if it's EACCES
("permission denied") the messsage suggesting restarting as a super user.
JINMEI Tatuya [Thu, 8 Nov 2012 04:13:08 +0000 (04:13 +0000)]
[master] check -lnsl, -lsocket for some network API libs.
this is necessary for Solaris. okayed on jabber.
Tomek Mrugalski [Wed, 7 Nov 2012 22:05:50 +0000 (17:05 -0500)]
[2414] Compilation fix for Solaris 11
Tomek Mrugalski [Wed, 7 Nov 2012 21:40:31 +0000 (16:40 -0500)]
[2414] Compilation fix for FreeBSD
JINMEI Tatuya [Wed, 7 Nov 2012 21:24:59 +0000 (13:24 -0800)]
[master] Merge branch 'trac2449'
JINMEI Tatuya [Wed, 7 Nov 2012 21:17:34 +0000 (13:17 -0800)]
[master] Merge branch 'trac2371'
Tomek Mrugalski [Wed, 7 Nov 2012 20:19:53 +0000 (15:19 -0500)]
[2414] Removed hardcoded DNS_SERVERS option
DNS_SERVERS option is now sent only if requested by clients
(as it should be)
Tomek Mrugalski [Wed, 7 Nov 2012 20:18:06 +0000 (15:18 -0500)]
[2414] solicitBasic1 test fixed and renamed to advertiseOptions
Mukund Sivaraman [Wed, 7 Nov 2012 19:47:42 +0000 (01:17 +0530)]
[2421] Handle exceptions when loading a zone
Mukund Sivaraman [Wed, 7 Nov 2012 19:42:01 +0000 (01:12 +0530)]
[2421] Add a testcase for empty zone too (which should throw EmptyZone)
Mukund Sivaraman [Wed, 7 Nov 2012 19:41:27 +0000 (01:11 +0530)]
[2421] Change test data to throw ZoneDataUpdater::AddError
... instead of MasterLoadError.
Mukund Sivaraman [Wed, 7 Nov 2012 18:44:35 +0000 (00:14 +0530)]
[2421] Add lettuce test with broken zone
JINMEI Tatuya [Wed, 7 Nov 2012 18:16:16 +0000 (10:16 -0800)]
[2384] editorial in exception message: add a space for readability
Marcin Siodelski [Wed, 7 Nov 2012 17:26:21 +0000 (18:26 +0100)]
[2463] Preserve global configuration values.
Rather tham clear global configuration values we replace them (override)
in subsequent configuration commits. This guarantees that global
values are always available when subnet configuration is performed.
Stephen Morris [Wed, 7 Nov 2012 17:46:02 +0000 (17:46 +0000)]
[2414] Merge branch 'master' into trac2414
Conflicts:
src/bin/dhcp6/dhcp6_messages.mes
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/lib/dhcp/addr_utilities.cc
src/lib/dhcp/tests/cfgmgr_unittest.cc
Files automerged successfully:
src/lib/dhcp/alloc_engine.cc
src/lib/dhcp/subnet.h
src/lib/dhcp/tests/alloc_engine_unittest.cc
JINMEI Tatuya [Wed, 7 Nov 2012 16:19:53 +0000 (08:19 -0800)]
[master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
commit.
Jelte Jansen [Wed, 7 Nov 2012 10:47:32 +0000 (11:47 +0100)]
[2305] address review comments
updated documentation of bindctl chapter
fixed a stray space in module help output in bindctl
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:45:32 +0000 (10:45 +0100)]
[2384] Document the use of units in TTL
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:30:59 +0000 (10:30 +0100)]
[2384] Test border cases
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:21:06 +0000 (10:21 +0100)]
[2384] Rearrange tests
There were some non-fromText related tests in the fromText test case.
Moving to separate test case.
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:17:31 +0000 (10:17 +0100)]
[2384] Better TTL range checking
Also check partial values and wrap-arouds for numbers.
Marcin Siodelski [Wed, 7 Nov 2012 09:04:34 +0000 (10:04 +0100)]
[master] Merge branch 'trac2417'
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:01:56 +0000 (10:01 +0100)]
[2384] Test case of reused unit
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:59:56 +0000 (09:59 +0100)]
[2384] Remove unnecessary cast
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:54:30 +0000 (09:54 +0100)]
[2384] Show the broken TTL in exception messages
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:51:12 +0000 (09:51 +0100)]
[2384] Disallow empty TTLs and units-only TTLs
These are questionable and bind9 does not support them. Even the units
are bind extension of some kind probably.
Mukund Sivaraman [Wed, 7 Nov 2012 07:35:21 +0000 (13:05 +0530)]
Merge branch 'master' into trac2369
Mukund Sivaraman [Wed, 7 Nov 2012 07:01:30 +0000 (12:31 +0530)]
[2369] Use prefix syntax for increment/decrement operators
JINMEI Tatuya [Wed, 7 Nov 2012 05:39:18 +0000 (21:39 -0800)]
[2459] do not throw when getZoneWriter result in "not cached".
instead, explicitly log the event at the debug level. behavior-wise there's
no difference, but the corresponding log message can be misleading.
JINMEI Tatuya [Wed, 7 Nov 2012 05:20:15 +0000 (21:20 -0800)]
[2459] protect the call to getCachedZoneWriter() by mutex. it can cause race.
Mukund Sivaraman [Wed, 7 Nov 2012 05:14:58 +0000 (10:44 +0530)]
[2353] Test bind10_src.fatal_signal()
Mukund Sivaraman [Wed, 7 Nov 2012 05:09:36 +0000 (10:39 +0530)]
[2353] Test bind10_src.get_signame()
Mukund Sivaraman [Wed, 7 Nov 2012 05:01:21 +0000 (10:31 +0530)]
[2353] Test BoB.init_socket_srv() and BoB.remove_socket_srv()
Mukund Sivaraman [Wed, 7 Nov 2012 04:31:05 +0000 (10:01 +0530)]
[2353] Test more component startup methods