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

13239 Commits

Author SHA1 Message Date
Stephen Morris
fb185ed8c6 [2342] Added comments as result of review 2012-11-09 16:11:24 +00:00
Stephen Morris
f9e9ca6798 [2414] Changes after review 2012-11-09 15:42:45 +00:00
Marcin Siodelski
bdb8039cc6 [2342] Minor: typos fixed. 2012-11-09 16:24:27 +01:00
Marcin Siodelski
1cee186c83 [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.
2012-11-09 13:55:16 +01:00
Michal 'vorner' Vaner
7460fff538 [2376] Documentation update 2012-11-09 12:58:20 +01:00
Michal 'vorner' Vaner
1a23885959 [2376] Disallow missing last unit
Also, simplify the code little bit and make it run faster in the case of
TTL without any units.
2012-11-09 12:51:13 +01:00
Michal 'vorner' Vaner
45d598bed6 [2376] Disallow case with the last unit missing 2012-11-09 12:44:41 +01:00
Jelte Jansen
5c14007cb8 [2464] fix call to last_had_signature() 2012-11-09 10:40:24 +01:00
Jelte Jansen
80bc337e58 [2464] Add lettuce test for TSIG
Should fail at this time
2012-11-09 10:40:04 +01:00
JINMEI Tatuya
c8b32f1adb [master] Merge branch 'trac2447' 2012-11-08 14:36:04 -08:00
Stephen Morris
4067c8bb2f [2414] Merge branch 'master' into trac2414 2012-11-08 20:43:20 +00:00
Stephen Morris
e97b6bb799 [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.
2012-11-08 20:30:24 +00:00
Stephen Morris
fed0360031 [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.
2012-11-08 20:09:10 +00:00
Michal 'vorner' Vaner
a4d16a18e3 [2384] Remove obsolete comment 2012-11-08 18:31:02 +01:00
Michal 'vorner' Vaner
4ddb739a13 [2384] Test leading zeroes in TTL 2012-11-08 18:27:00 +01:00
Michal 'vorner' Vaner
46f83b6608 [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.
2012-11-08 18:24:14 +01:00
JINMEI Tatuya
b560a5942b [2447] corrected a log name 2012-11-08 08:51:24 -08:00
Marcin Siodelski
8fd47c03a3 [2463] Minor: typo fixed. 2012-11-08 17:26:10 +01:00
Marcin Siodelski
43d61adcf5 [2463] Minor changes in comments. 2012-11-08 17:23:49 +01:00
Jeremy C. Reed
3a32db0518 [master] split up test
From http://bind10.isc.org/ticket/2468#comment:2 to help troubleshoot later.

Okayed via jabber.
2012-11-08 08:52:10 -06:00
Stephen Morris
b0ad16d99e [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.
2012-11-08 13:14:19 +00:00
Marcin Siodelski
248da8cb1f [2463] Added new constructor to OptionDescriptor structure. 2012-11-08 08:09:23 -05:00
Marcin Siodelski
2a9fd6c61e [2463] Reset configuration after each unit test. 2012-11-08 07:53:41 -05:00
Stephen Morris
e68fed5260 [2342] Encapsulate mysql_stmt_free_result in a temporary object
... to ensure that it is always called when a method terminates.
2012-11-08 12:50:34 +00:00
Stephen Morris
9fa65c7819 [2342] Documentation changes as result of review 2012-11-08 12:14:10 +00:00
Jelte Jansen
00c64fb762 [2447] fix small typo in docstring 2012-11-08 12:07:18 +01:00
JINMEI Tatuya
2d1b56424a [2447] dump a log message if connecting to cc-channel fails.
and suggest checking output from msgq using -v.
2012-11-08 00:31:50 -08:00
JINMEI Tatuya
a0bd58df7c [2447] improve intitial failure handling for msgq, gracefully and with logs 2012-11-08 00:31:47 -08:00
JINMEI Tatuya
ec63a9a5ba [2447] show the reason of the error when opening IPC lock file fails. 2012-11-08 00:31:44 -08:00
JINMEI Tatuya
86ed7ae9cf [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.
2012-11-08 00:31:42 -08:00
JINMEI Tatuya
88c9fb48d7 [2447] catch failure on initial log, which is most likely a permission issue.
so, it now just prints some hints to stderr and exits.
2012-11-08 00:31:39 -08:00
JINMEI Tatuya
0590b6d313 [2447] improved detailed description of CONFIG_LOAD_FAIL ref'ing sock failure.
it even suggests restarting as a root.
2012-11-08 00:31:36 -08:00
JINMEI Tatuya
98a3c1b57b [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.
2012-11-08 00:31:31 -08:00
JINMEI Tatuya
1b828baa8e [master] check -lnsl, -lsocket for some network API libs.
this is necessary for Solaris. okayed on jabber.
2012-11-08 04:13:08 +00:00
Tomek Mrugalski
89886bb661 [2414] Compilation fix for Solaris 11 2012-11-07 17:05:50 -05:00
Tomek Mrugalski
beca6b4aef [2414] Compilation fix for FreeBSD 2012-11-07 16:40:31 -05:00
JINMEI Tatuya
08630dbbb0 [master] Merge branch 'trac2449' 2012-11-07 13:24:59 -08:00
JINMEI Tatuya
82ad5754e3 [master] Merge branch 'trac2371' 2012-11-07 13:17:34 -08:00
Tomek Mrugalski
9d9c83375c [2414] Removed hardcoded DNS_SERVERS option
DNS_SERVERS option is now sent only if requested by clients
 (as it should be)
2012-11-07 15:19:53 -05:00
Tomek Mrugalski
c778e931a6 [2414] solicitBasic1 test fixed and renamed to advertiseOptions 2012-11-07 15:18:06 -05:00
Mukund Sivaraman
cec4bf4314 [2421] Handle exceptions when loading a zone 2012-11-08 01:19:50 +05:30
Mukund Sivaraman
80c2a36861 [2421] Add a testcase for empty zone too (which should throw EmptyZone) 2012-11-08 01:19:41 +05:30
Mukund Sivaraman
ecace4bc15 [2421] Change test data to throw ZoneDataUpdater::AddError
... instead of MasterLoadError.
2012-11-08 01:19:11 +05:30
Mukund Sivaraman
0ff35f6ed7 [2421] Add lettuce test with broken zone 2012-11-08 00:14:35 +05:30
JINMEI Tatuya
3f0397574f [2384] editorial in exception message: add a space for readability 2012-11-07 10:16:16 -08:00
Marcin Siodelski
03e57865c0 [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.
2012-11-07 18:55:56 +01:00
Stephen Morris
aa1643faad [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
2012-11-07 17:46:02 +00:00
JINMEI Tatuya
4850934647 [master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
commit.
2012-11-07 08:19:53 -08:00
Jelte Jansen
56f0319afe [2305] address review comments
updated documentation of bindctl chapter
fixed a stray space in module help output in bindctl
2012-11-07 11:47:32 +01:00
Michal 'vorner' Vaner
8f2d93292a [2384] Document the use of units in TTL 2012-11-07 10:45:32 +01:00