]>
git.ipfire.org Git - thirdparty/kea.git/log
Michal 'vorner' Vaner [Thu, 17 Jan 2013 10:38:41 +0000 (11:38 +0100)]
[2573] (minor) Spacing and capitalization fixes
Just comments and style. No functionality or code change.
Marcin Siodelski [Thu, 17 Jan 2013 09:59:12 +0000 (10:59 +0100)]
[2637] Removed dead initialization from dhcp4_srv_unittest.cc.
Marcin Siodelski [Thu, 17 Jan 2013 09:51:15 +0000 (10:51 +0100)]
[2637] Fixed doxygen warnings in the DHCP code.
Marcin Siodelski [Thu, 17 Jan 2013 09:14:26 +0000 (10:14 +0100)]
[2637] Cast uint8_t to int when logging them.
When directly logging uint8_t values they are rather printed as char,
not the integer value within the range of 0..255. Converting them to
integer guarantees that they are printed as numbers.
JINMEI Tatuya [Thu, 17 Jan 2013 08:09:03 +0000 (00:09 -0800)]
[2438] added python wrapper for ZoneUpdater::getRRsetCollection().
JINMEI Tatuya [Thu, 17 Jan 2013 01:25:44 +0000 (17:25 -0800)]
[2438] introduce Python RRsetCollectionError and convert it find().
JINMEI Tatuya [Wed, 16 Jan 2013 23:06:32 +0000 (15:06 -0800)]
[2438] make sure cppobj is NULL in the base RRsetCollection wrapper classs.
JINMEI Tatuya [Wed, 16 Jan 2013 21:00:01 +0000 (13:00 -0800)]
[2438] more conflict resolution
JINMEI Tatuya [Wed, 16 Jan 2013 20:40:17 +0000 (12:40 -0800)]
[2438] Merge branch 'trac2438-0' into trac2438
resolved Conflicts:
src/lib/datasrc/Makefile.am
src/lib/datasrc/database.cc
src/lib/datasrc/tests/database_unittest.cc
src/lib/datasrc/tests/master_loader_callbacks_test.cc
src/lib/datasrc/tests/zone_loader_unittest.cc
src/lib/datasrc/zone.h
src/lib/dns/rrset_collection_base.h
JINMEI Tatuya [Wed, 16 Jan 2013 19:37:16 +0000 (11:37 -0800)]
[2573] count added RR within datasrc loader, and deprecate MasterLoader method
in fact, the master loader's method is redundant because its user can count
them the same way. its own method might be of some use in the future,
but until then I'd simpy remove it based on YAGNI.
Also made some unrelated cleanup based on recent clarification of
null tests on pointer/shared pointers.
Marcin Siodelski [Wed, 16 Jan 2013 19:30:55 +0000 (20:30 +0100)]
[2637] Use full configuration everytime the new configuration is commited.
JINMEI Tatuya [Wed, 16 Jan 2013 18:48:26 +0000 (10:48 -0800)]
[2573] updated python wrapper using loader's getProgress.
get_size/get_position were deprecated and removed.
Marcin Siodelski [Wed, 16 Jan 2013 18:41:01 +0000 (19:41 +0100)]
[2637] Validate option space name in the configuration parsers.
JINMEI Tatuya [Wed, 16 Jan 2013 18:29:02 +0000 (10:29 -0800)]
[2573] introduce getProgress instead size/position.
JINMEI Tatuya [Wed, 16 Jan 2013 15:56:53 +0000 (07:56 -0800)]
[master] Merge branch 'trac2572-fix'
Jelte Jansen [Wed, 16 Jan 2013 14:43:27 +0000 (15:43 +0100)]
[2595] Better error reporting on failed login in bindctl
If the connection is reset, it is likely there is an SSL problem, so report that.
Also a tiny refactor for the common login code in login_to_cmdctl()
Jelte Jansen [Wed, 16 Jan 2013 14:28:49 +0000 (15:28 +0100)]
[2595] Better handling of bad files in b10-cmdctl
Still a fatal error if it gets to that point, but
- exact error message
- basic checks (exists, isfile, isreadable) are done when updating configuration as well
Michal 'vorner' Vaner [Wed, 16 Jan 2013 12:09:39 +0000 (13:09 +0100)]
Changelog for #2436
Michal 'vorner' Vaner [Wed, 16 Jan 2013 11:34:41 +0000 (12:34 +0100)]
Merge #2436
Let isc::datasrc::ZoneLoader validate the data before committing by
isc::dns::checkZone. Also, remove the in-house validation from b10-loadzone,
since it's only a subset of the checkZone, which is now performed.
Import a merge fixup from mukund.
Marcin Siodelski [Wed, 16 Jan 2013 10:38:25 +0000 (11:38 +0100)]
[2591] Code cleanup in Dhcp4SrvTest.processRequest and .processDiscover.
Mukund Sivaraman [Wed, 16 Jan 2013 10:15:56 +0000 (15:45 +0530)]
Merge branch 'master' into trac2435
Conflicts:
src/lib/datasrc/tests/database_unittest.cc
Marcin Siodelski [Wed, 16 Jan 2013 09:09:46 +0000 (10:09 +0100)]
[master] Initialize the list of strings before passing it to boost foreach.
This overcomes the compilation failure on Sunstudio that is caused by the
boost::foreach_detail_::is_rvalue_() overloading ambiguity when
passing the rvalue to boost foreach.
JINMEI Tatuya [Tue, 15 Jan 2013 19:10:07 +0000 (11:10 -0800)]
[2157] corrected order of EXPECT_EQ params: 1st param should be the 'expected'.
JINMEI Tatuya [Tue, 15 Jan 2013 19:08:16 +0000 (11:08 -0800)]
[2157] constify
Marcin Siodelski [Tue, 15 Jan 2013 18:53:58 +0000 (19:53 +0100)]
[2591] Append requested options to the OFFER message.
Marcin Siodelski [Tue, 15 Jan 2013 17:47:42 +0000 (18:47 +0100)]
[2591] Added est that checks if requested options are appended to offer.
Stephen Morris [Tue, 15 Jan 2013 15:40:42 +0000 (15:40 +0000)]
[2559] Remove the temporary configuration of the lease database
The DHCP6 server had the lease database configuration temporarily
hard-coded. With the introduction of database configuration
parameters, that is no longer needed.
Marcin Siodelski [Tue, 15 Jan 2013 15:20:35 +0000 (16:20 +0100)]
[2314] Added the test to check that standard V4 option can be encapsulated.
Stephen Morris [Tue, 15 Jan 2013 15:08:50 +0000 (15:08 +0000)]
[2559] Make opening of the lease database an informational message
Tomek Mrugalski [Tue, 15 Jan 2013 15:05:33 +0000 (16:05 +0100)]
[2596] "Interface" parameter in Subnet6 configuration added.
Marcin Siodelski [Tue, 15 Jan 2013 14:55:29 +0000 (15:55 +0100)]
[2314] Append sub-options to DHCPv4 options.
Marcin Siodelski [Tue, 15 Jan 2013 14:33:55 +0000 (15:33 +0100)]
[2314] Encapsulate standard DHCPv6 options.
Marcin Siodelski [Mon, 14 Jan 2013 15:42:30 +0000 (16:42 +0100)]
[2314] Added encapsulated option space name to std option definitions.
Marcin Siodelski [Mon, 14 Jan 2013 11:42:18 +0000 (12:42 +0100)]
[2314] Removed debug message.
Marcin Siodelski [Fri, 11 Jan 2013 17:39:35 +0000 (18:39 +0100)]
[2314] Append sub-options to options being configured.
Marcin Siodelski [Fri, 11 Jan 2013 12:08:46 +0000 (13:08 +0100)]
[2314] Simplified getting configured options when creating answer packet.
Marcin Siodelski [Fri, 11 Jan 2013 12:01:10 +0000 (13:01 +0100)]
[2314] Configure encapsulated option space for DHCPv6 options.
Marcin Siodelski [Fri, 11 Jan 2013 10:55:25 +0000 (11:55 +0100)]
[2314] Create option definition with encapsulated option space name.
Marcin Siodelski [Fri, 11 Jan 2013 10:11:31 +0000 (11:11 +0100)]
[2314] Added encapsulated option space name to option definition.
Marcin Siodelski [Tue, 15 Jan 2013 14:05:24 +0000 (15:05 +0100)]
[2314] Validate option space name received in a configuration.
Stephen Morris [Tue, 15 Jan 2013 14:04:55 +0000 (14:04 +0000)]
[2559] Changes to comments
Stephen Morris [Tue, 15 Jan 2013 14:03:19 +0000 (14:03 +0000)]
[2597] Some changes to messages and documentation
Marcin Siodelski [Tue, 15 Jan 2013 13:50:38 +0000 (14:50 +0100)]
[master] Added ChangeLog entry for #2317.
Marcin Siodelski [Tue, 15 Jan 2013 13:28:01 +0000 (14:28 +0100)]
[master] Merge branch 'trac2317'
Conflicts:
src/bin/dhcp6/dhcp6_srv.cc
src/lib/dhcpsrv/Makefile.am
src/lib/dhcpsrv/cfgmgr.h
Jelte Jansen [Tue, 15 Jan 2013 13:07:46 +0000 (13:07 +0000)]
[master] Add std:: to memcmp
Michal 'vorner' Vaner [Tue, 15 Jan 2013 12:36:09 +0000 (13:36 +0100)]
[2582] Lettuce tests for msgq logging
This way we check the logging works to the correct place and that the
configuration is handled. It is better checked by lettuce than unit
tests, since there's a lot of inter-module communication in it.
Michal 'vorner' Vaner [Tue, 15 Jan 2013 12:09:03 +0000 (13:09 +0100)]
[2582] Background the handling of commands
Michal 'vorner' Vaner [Tue, 15 Jan 2013 12:01:15 +0000 (13:01 +0100)]
[2582] Logging of msgq configuration
Michal 'vorner' Vaner [Tue, 15 Jan 2013 11:54:55 +0000 (12:54 +0100)]
[2582] Unrelated cleanup: don't use global variable
The original code had a TODO, fixing it.
Michal 'vorner' Vaner [Tue, 15 Jan 2013 11:52:22 +0000 (12:52 +0100)]
[2582] Perform some locking of msgq
Not that it would be obvious what should be locked, mostly to be on the
safe side.
Michal 'vorner' Vaner [Tue, 15 Jan 2013 11:43:50 +0000 (12:43 +0100)]
[2582] Let the msgq connect to itself
Once the config manager is ready, connect to itself to get the config.
Not covered by unit tests, since it is part of startup routine and
requires interaction with other modules, but lettuce succeeds, which
means msgq itself works.
Michal 'vorner' Vaner [Tue, 15 Jan 2013 10:15:31 +0000 (11:15 +0100)]
[2582] Synchronisation when the config manager connects
Jelte Jansen [Tue, 15 Jan 2013 09:47:45 +0000 (10:47 +0100)]
[master] Merge branch 'trac2498'
Conflicts:
src/lib/dns/gen-rdatacode.py.in
Marcin Siodelski [Tue, 15 Jan 2013 09:34:40 +0000 (10:34 +0100)]
[2317] Minor: removed a spurious whitespace.
Jelte Jansen [Tue, 15 Jan 2013 09:29:47 +0000 (10:29 +0100)]
[2587] use sockaddr_storage
Michal 'vorner' Vaner [Tue, 15 Jan 2013 09:26:54 +0000 (10:26 +0100)]
[2582] Signal connection of config manager
Let the config manager call a function when the config manager
subscribes. The function is empty in this commit, but it'll be used
later on.
Marcin Siodelski [Tue, 15 Jan 2013 09:07:17 +0000 (10:07 +0100)]
[2317] Pass a string object to is_any_of() instead of char* value.
This is a workaround for the warnings on Debian6: "array subscript is
above array bounds".
Mukund Sivaraman [Tue, 15 Jan 2013 08:54:43 +0000 (14:24 +0530)]
[2572] Make minor comment updates
Naoki Kambe [Tue, 15 Jan 2013 08:20:23 +0000 (17:20 +0900)]
[2225_statistics] do imp.reload(counters) in setUp() method instead of in setUpClass() method
Because it was found that reloading in setUp() method was not enough
in another environment.
Naoki Kambe [Tue, 15 Jan 2013 08:07:40 +0000 (17:07 +0900)]
[2225_statistics] Revert "[2225_statistics] use timedelta.total_seconds() instead of redundant computation"
This reverts commit
31b16f3568b95073fc15b68e435215572f25c5b8 .
This is because timedelta.total_seconds() is not supported yet on Python3.1.
Naoki Kambe [Tue, 15 Jan 2013 08:27:10 +0000 (17:27 +0900)]
[2225_statistics] rename counter.py to counters.py
Mukund Sivaraman [Tue, 15 Jan 2013 08:15:40 +0000 (13:45 +0530)]
[2435] Elaborate note about unsupported RRTypes
Mukund Sivaraman [Tue, 15 Jan 2013 08:00:37 +0000 (13:30 +0530)]
[2435] Add a note that some records may not be found by the datasrc RRsetCollection
Mukund Sivaraman [Tue, 15 Jan 2013 07:43:31 +0000 (13:13 +0530)]
[2435] Throw an exception if the database RRsetCollection implementation is used after commit()
Mukund Sivaraman [Tue, 15 Jan 2013 07:04:45 +0000 (12:34 +0530)]
[2435] Updating after getting RRsetCollection on DatabaseUpdater must fail
Mukund Sivaraman [Tue, 15 Jan 2013 06:28:08 +0000 (11:58 +0530)]
[2435] Return a isc::datasrc::RRsetCollectionBase in ZoneUpdater::getRRsetCollection()
Mukund Sivaraman [Tue, 15 Jan 2013 06:14:21 +0000 (11:44 +0530)]
[2435] Introduce an abstract datasrc::RRsetCollectionBase class
Mukund Sivaraman [Tue, 15 Jan 2013 05:57:45 +0000 (11:27 +0530)]
[2435] Revise RRsetCollection constructor doc
Mukund Sivaraman [Tue, 15 Jan 2013 05:53:43 +0000 (11:23 +0530)]
[2435] Make ZoneUpdater::getRRsetCollection() return a RRsetCollectionBase&
... because in case of some updaters, the returned RRsetCollectionBase
is very well a singleton for that updater instance, and it does not make
sense to return multiple RRsetCollections for it.
Mukund Sivaraman [Tue, 15 Jan 2013 05:39:14 +0000 (11:09 +0530)]
[2435] Add documentation for RRsetCollectionPtr
JINMEI Tatuya [Tue, 15 Jan 2013 04:19:40 +0000 (20:19 -0800)]
[master] Merge branch 'trac2576'
JINMEI Tatuya [Tue, 15 Jan 2013 03:15:15 +0000 (19:15 -0800)]
[2572] convert OpenError to Unexpected in the stream ver. of pushSource.
with the change for #2572 this version can now have this exception, and
since it's intended to be hidden within the lexer and input source classes,
we need to convert it. doc/tests are also added/updated.
JINMEI Tatuya [Tue, 15 Jan 2013 02:30:32 +0000 (18:30 -0800)]
[2572] avoid direct comparison between size_t and streampos
JINMEI Tatuya [Tue, 15 Jan 2013 02:19:03 +0000 (18:19 -0800)]
[2572] handled solaris oddity: catch uncommon/buggy results of seekg/tellg.
JINMEI Tatuya [Mon, 14 Jan 2013 22:05:45 +0000 (14:05 -0800)]
Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
JINMEI Tatuya [Mon, 14 Jan 2013 22:04:12 +0000 (14:04 -0800)]
[master] place internal exception class in a separate namespace.
this is the same workaround with particular versions of clang++ (on a
particular instance of OS X box) as that we did for isc.log wrapper.
committing it at my discretion.
JINMEI Tatuya [Mon, 14 Jan 2013 22:02:31 +0000 (14:02 -0800)]
[master] removed a garbage from a comment.
It was introduced at commit
71eee6e2 for no apparent reason. I believe
it's a merge error or simple typo. Directly committing.
Jelte Jansen [Mon, 14 Jan 2013 20:38:46 +0000 (21:38 +0100)]
[2587] move deletes
So members aren't deleted if the code doesn't even reach the call to set them again
Jelte Jansen [Mon, 14 Jan 2013 20:32:52 +0000 (21:32 +0100)]
[2587] Fix a memleak in a unit test
Jelte Jansen [Mon, 14 Jan 2013 20:29:50 +0000 (21:29 +0100)]
[2587] Fix for unit test; set sa_len if available
On NetBSD4, getnameinfo() used in a test does a strict check on the sa_len field, which isn't set by asio. So this fix sets it if the field is there.
Michal 'vorner' Vaner [Mon, 14 Jan 2013 18:09:07 +0000 (19:09 +0100)]
[2582] Run the MSGQ poller in separate thread
This will be needed in the following work. If we run in the same thread
and tried to connect to self by the cc library, it would deadlock, since
the library blocks waiting for answer.
Also, small cleanup of shutdown is included.
No functional change should be observable.
Tomek Mrugalski [Mon, 14 Jan 2013 17:14:19 +0000 (18:14 +0100)]
[2597] Documentation updated.
JINMEI Tatuya [Mon, 14 Jan 2013 17:03:06 +0000 (09:03 -0800)]
[master] editorial: removed an unnecessary semicolon
commiting at my discretion.
Tomek Mrugalski [Mon, 14 Jan 2013 16:57:26 +0000 (17:57 +0100)]
[2597] Server-id in DHCPv4 is now stored to a file.
Tomek Mrugalski [Mon, 14 Jan 2013 16:48:07 +0000 (17:48 +0100)]
[2597] Server-ID is now stored and read from a file.
Jelte Jansen [Mon, 14 Jan 2013 16:19:19 +0000 (17:19 +0100)]
[master] Merge branch 'trac680'
Jelte Jansen [Mon, 14 Jan 2013 16:18:07 +0000 (17:18 +0100)]
[680] Update text and added code comments
Jelte Jansen [Mon, 14 Jan 2013 16:08:28 +0000 (17:08 +0100)]
[2498] Add another HINFO test
and remove some code that should not have been committed
Shane Kerr [Mon, 14 Jan 2013 15:51:21 +0000 (16:51 +0100)]
[2571] Explain unit test for character 255.
JINMEI Tatuya [Wed, 9 Jan 2013 04:18:06 +0000 (20:18 -0800)]
[2571] a small optimization: avoid calling strlen() every time in loop
JINMEI Tatuya [Wed, 9 Jan 2013 04:12:37 +0000 (20:12 -0800)]
[2571] editorial cleanups: &/* position, use camel name for func; const
Shane Kerr [Fri, 21 Dec 2012 09:11:05 +0000 (10:11 +0100)]
[2571] Change from char to int when we need special character values.
In cases where we use values outside of normal character range (-128
to 127 or 0 to 255) to indicate special things, like EOF, we need to
insure that we can hold these values. To do that, we use an int.
It turns out that the default type conversions also meant that our
JSON conversion from strings would break in some cases. A test was
added to show that, and to confirm the fix.
Jelte Jansen [Mon, 14 Jan 2013 15:12:44 +0000 (16:12 +0100)]
[master] Added missing virtual destructor to Lease class
Michal 'vorner' Vaner [Mon, 14 Jan 2013 14:20:47 +0000 (15:20 +0100)]
[2582] Missing log message added
A leftover from logging switch, there was a call to write to stdout,
instead of logging.
Jelte Jansen [Mon, 14 Jan 2013 13:49:08 +0000 (14:49 +0100)]
[680] Update 'no default' bindctl message
Marcin Siodelski [Mon, 14 Jan 2013 13:20:50 +0000 (14:20 +0100)]
[2317] Eliminated cppcheck errors.
Marcin Siodelski [Mon, 14 Jan 2013 11:25:01 +0000 (12:25 +0100)]
[2317] Added changes as a result of the review.
Jelte Jansen [Mon, 14 Jan 2013 11:04:28 +0000 (12:04 +0100)]
[2498] Add a few quoting tests for toText() in HINFO and NAPTR
Jelte Jansen [Mon, 14 Jan 2013 10:08:31 +0000 (11:08 +0100)]
[2498] Add operator= and use scoped_ptr in HINFO and NAPTR
JINMEI Tatuya [Sat, 12 Jan 2013 08:41:34 +0000 (00:41 -0800)]
[2573] added python wrapper for ZoneLoader extension