]>
git.ipfire.org Git - thirdparty/kea.git/log
JINMEI Tatuya [Mon, 8 Oct 2012 18:32:18 +0000 (11:32 -0700)]
[2292] minor cleanups: constify, indentation
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:19:12 +0000 (17:19 +0200)]
[2292] Update tests
They don't need the mutable versions to work, but they used them anyway.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:18:33 +0000 (17:18 +0200)]
[2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:03:18 +0000 (17:03 +0200)]
[2292] Drop tests for InMemoryClient::add
As the method was removed.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:50:50 +0000 (16:50 +0200)]
[2292] Remove unused template parameters
The domain tree no longer supports the mutable find versions, so we
don't need the template parameters allowing for them.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:38:23 +0000 (16:38 +0200)]
[2292] Remove mutable find methods
They are currently used in test code only (so we'll need to update the
tests to compile). The real code seams clean now.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:13:56 +0000 (16:13 +0200)]
[2292] Remove the setZoneData method
Currently, the content of zone is passed to the addZone method. No way
to change it later, but the addZone overwrites the old value if called
again.
This should hopefully allow for removal of mutable find methods from the
tree.
Michal 'vorner' Vaner [Tue, 2 Oct 2012 19:05:33 +0000 (21:05 +0200)]
[2292] Get rid of the const_cast
It was needed when extracting data from a domain tree chain. The chain
now can hold mutable pointers too, so we use that (and some amount of
template bureaucracy) to avoid the cast.
While the interface changed (on the core find function, it is not
possible to pass const node chain and have a mutable node get out), it
doesn't seem to influence the current code. Also, it is a private
interface anyway, so it should be safe.
Michal 'vorner' Vaner [Tue, 2 Oct 2012 18:22:23 +0000 (20:22 +0200)]
[2292] Parametrize constness of the chain
Mukund Sivaraman [Tue, 9 Oct 2012 05:11:32 +0000 (10:41 +0530)]
[master] Set lockfile path for DHCP tests
Mukund Sivaraman [Tue, 9 Oct 2012 05:05:21 +0000 (10:35 +0530)]
[master] Update .gitignore files
Mukund Sivaraman [Tue, 9 Oct 2012 04:51:48 +0000 (10:21 +0530)]
[master] Remove empty GNU-style dist files
JINMEI Tatuya [Mon, 8 Oct 2012 21:12:02 +0000 (14:12 -0700)]
[master] define dbutil_test.sh as noinst_SCRIPTS to auto-regenerate on modify.
this will prevent surprising test failure on an incrementally updated dev
tree. okayed on jabber.
JINMEI Tatuya [Mon, 8 Oct 2012 21:11:39 +0000 (14:11 -0700)]
[master] added changelog for #1870
JINMEI Tatuya [Wed, 3 Oct 2012 21:12:39 +0000 (14:12 -0700)]
[1870] avoid using "no" keyword as a configured value for "bind10-include".
JINMEI Tatuya [Wed, 3 Oct 2012 19:21:40 +0000 (12:21 -0700)]
[1870] removed unnecessary call to AX_BOOST_INCLUDE.
since AC_REQUIRE internally does it.
JINMEI Tatuya [Tue, 2 Oct 2012 04:13:02 +0000 (21:13 -0700)]
[1870] removed rrsetlist.h from the libdns___include_HEADERS
it will be cleaned up and should better be excluded from the publicly
visible list.
JINMEI Tatuya [Mon, 1 Oct 2012 22:31:27 +0000 (15:31 -0700)]
[1870] some more doc cleanups
JINMEI Tatuya [Mon, 1 Oct 2012 22:26:25 +0000 (15:26 -0700)]
[1870] provided top level README
JINMEI Tatuya [Mon, 1 Oct 2012 22:12:52 +0000 (15:12 -0700)]
[1870] separated BIND 10 common libs and DNS lib
so that we can eventually selectively choose module specific libraries.
JINMEI Tatuya [Mon, 1 Oct 2012 22:12:15 +0000 (15:12 -0700)]
[1870] removed src/bin/host/Makefile from toplevel configure.ac.
JINMEI Tatuya [Sat, 29 Sep 2012 04:24:11 +0000 (21:24 -0700)]
[1870] introduced separate m4 files for dependencies.
JINMEI Tatuya [Fri, 28 Sep 2012 23:39:38 +0000 (16:39 -0700)]
[1870] make sure install some more headers under dns/ and util/
there may be more, but at least this makes (b10-)host compile as a 3rd party
app.
JINMEI Tatuya [Fri, 28 Sep 2012 23:37:47 +0000 (16:37 -0700)]
[1870] moved src/bin/host under example/
(at least for now) there's no way to transform xml doc to other formats.
only xml is provided for reference.
JINMEI Tatuya [Fri, 28 Sep 2012 23:32:11 +0000 (16:32 -0700)]
[1870] created a separate dir to store example "3rd party" apps using BIND 10.
JINMEI Tatuya [Fri, 5 Oct 2012 17:12:42 +0000 (10:12 -0700)]
[2203] renamed datasrc_configurator to datasrc_config; it represents it better.
JINMEI Tatuya [Thu, 4 Oct 2012 05:58:06 +0000 (22:58 -0700)]
[2203] forotten cleanup: removed now-unused header file.
JINMEI Tatuya [Thu, 4 Oct 2012 00:28:41 +0000 (17:28 -0700)]
[2203] a piggy back fix: prevent redundant initial data configuration.
this addresses the issue described in #2291. Still not really clean,
but thanks to boost::bind we can centralize all the code logic in the
callback, so I think it's now less likely that we forget cleaning it up
when the hack is not necessary.
JINMEI Tatuya [Thu, 4 Oct 2012 00:17:36 +0000 (17:17 -0700)]
[2203] changed configurator class to a simple function.
as it's now completely stateless and can work independently.
the common specialization for the main implementation is defined in a
new created .cc file.
JINMEI Tatuya [Wed, 3 Oct 2012 22:44:29 +0000 (15:44 -0700)]
[2203] pass server obj to configurator's reconfigure().
now the configurator class is completely stateless.
JINMEI Tatuya [Wed, 3 Oct 2012 22:24:22 +0000 (15:24 -0700)]
[2203] refactoring 2nd step: configurator can now be a separate object.
i.e., it's not a singleton any more.
testReconfigure() method isn't needed any more because it doesn't hold
CC session internally.
DatasrcConfiguratorTest.initialization test currently fails and is
disabled for now. The plan is to make the class completely stateless,
at which point we don't even have to think about initialization or cleanup,
and then the test will be able to be removed.
JINMEI Tatuya [Wed, 3 Oct 2012 03:38:31 +0000 (20:38 -0700)]
[2203] changed the callback type of addRemoteConfig to boost::function.
this will make it more convenient, e.g., by allowing the caller to pass
boost::bind encapsulating a class object and a class method.
boost::function is upper compatible to function pointer, so it doesn't
ensure source-level compatibility.
the functor overhead shouldn't matter in this context, and since this module
already uses boost::function this change doesn't introduce additional
dependency.
JINMEI Tatuya [Wed, 3 Oct 2012 03:24:57 +0000 (20:24 -0700)]
[2203] refactoring 1st step: move session obj outside of datasrc configurator.
Mukund Sivaraman [Mon, 8 Oct 2012 07:06:20 +0000 (12:36 +0530)]
[1899] Allow other RRtypes in nsec3 table (for RRSIGs)
* The unique constraint on NSEC3 owner per zone is now removed
* NSEC3 RRSIGs are now returned next to their RR set
* Test was adjusted to check for RRSIGs too
Mukund Sivaraman [Sun, 30 Sep 2012 19:53:58 +0000 (01:23 +0530)]
[1899] Add another unittest to check that NSEC3 RRs are being returned
Mukund Sivaraman [Sun, 30 Sep 2012 19:46:39 +0000 (01:16 +0530)]
[1899] Break up UNION SQL query into two and merge manually
Also drop unnecessary columns and ORDER BYs.
Mukund Sivaraman [Sun, 30 Sep 2012 19:15:45 +0000 (00:45 +0530)]
[1899] Add a unique constraint to nsec3 table
This is to check that only one NSEC3 RR exists per owner name in a
zone. The code to fix #1899 would depend on this assertion.
JINMEI Tatuya [Mon, 8 Oct 2012 16:41:33 +0000 (16:41 +0000)]
[master] add std:: for memset(). sunstudio requires this with <cstring>
Jelte Jansen [Mon, 8 Oct 2012 07:41:11 +0000 (09:41 +0200)]
[2275] fix strncpy in socketrequestortest
Jelte Jansen [Fri, 5 Oct 2012 10:10:56 +0000 (12:10 +0200)]
[2275] address review comments
Jelte Jansen [Thu, 4 Oct 2012 13:57:43 +0000 (15:57 +0200)]
[2275] valgrind fixes: uninitialized memory
Jelte Jansen [Thu, 4 Oct 2012 10:21:04 +0000 (12:21 +0200)]
[2275] valgrind fixes: uninitialized memory
Jelte Jansen [Thu, 4 Oct 2012 09:44:46 +0000 (11:44 +0200)]
[2275] use const char* for test globals
Jelte Jansen [Wed, 3 Oct 2012 14:54:08 +0000 (16:54 +0200)]
[2275] valgrind fix: initialize memory in labelsequence test
Jelte Jansen [Wed, 3 Oct 2012 14:42:08 +0000 (16:42 +0200)]
[2275] valgrind fix: store singleton instance in auto_ptr
Jelte Jansen [Wed, 3 Oct 2012 14:11:51 +0000 (16:11 +0200)]
[2275] valgrind fix: close db in test case
Mukund Sivaraman [Mon, 8 Oct 2012 09:12:55 +0000 (14:42 +0530)]
[master] Add libb10-cc.la to tests Makefile.am
Jelte Jansen [Tue, 2 Oct 2012 07:41:38 +0000 (09:41 +0200)]
[2278] Add temporary suppression for false positives
Jelte Jansen [Thu, 27 Sep 2012 14:28:25 +0000 (16:28 +0200)]
[2278] remove a bit of dead code
Jelte Jansen [Thu, 27 Sep 2012 14:00:48 +0000 (16:00 +0200)]
[2278] A number of cppcheck fixes
and whitespace things, while i was there
JINMEI Tatuya [Wed, 10 Oct 2012 18:02:24 +0000 (11:02 -0700)]
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
JINMEI Tatuya [Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)]
[2340] added comment about why we need to explicitly define empty dtor.
JINMEI Tatuya [Mon, 8 Oct 2012 06:53:26 +0000 (23:53 -0700)]
[2340] added workaround for the clang++ "unused arguments" warn/error.
by specifying -Qunused-arguments. Also, as a cleanup for better organization
I moved compiler specific settings to earlier part of configure.ac, where
this workaround was added.
JINMEI Tatuya [Mon, 8 Oct 2012 04:20:52 +0000 (21:20 -0700)]
[2340] Revert "[2340] specify thread flag as part CPPFLAGS, not LDFLAGS."
This reverts commit
daf81c8846bf0b4e4308068a019c96beb09c5199 .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Mon, 8 Oct 2012 04:19:23 +0000 (21:19 -0700)]
[2340] Revert "[2340] specify -pthread in CXXFLAGS and via system-indepedent variable."
This reverts commit
d62a1e4250c88e765b3cd7f77fe9a948db0a565d .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Sun, 7 Oct 2012 21:12:02 +0000 (14:12 -0700)]
[2340] specify -pthread in CXXFLAGS and via system-indepedent variable.
specifying it in LDFLAGS would trigger build error with some versions of clang.
hardcoding "-pthread" is less portable.
JINMEI Tatuya [Sun, 7 Oct 2012 19:34:55 +0000 (12:34 -0700)]
[2340] removed an effectively unused variable. clang would complain.
JINMEI Tatuya [Sun, 7 Oct 2012 19:20:34 +0000 (12:20 -0700)]
[2340] specify thread flag as part CPPFLAGS, not LDFLAGS.
newer version of clang treats the latter as a fatal error.
JINMEI Tatuya [Sun, 7 Oct 2012 17:13:58 +0000 (10:13 -0700)]
[2340] explictly define destructor of mostly empty template class.
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
Jelte Jansen [Thu, 11 Oct 2012 15:22:23 +0000 (17:22 +0200)]
[2349] Ignore EXPECT_DEATH when run in valgrind
Valgrind complains (probably rightfully so) that memory is leaking in death-tests. This has been reported upstream, but is not addressed yet, and may not be in the near future, if at all (one response was don't use EXPECT_DEATH).
So I added a checker function, *if* valgrind headers are available, that returns true if the tests are run under valgrind. Death tests are now ignored if so.
Note that we should be very careful about using this; and only use it for things we are sure valgrind can't help, since it is possible to do things differently when using valgrind, which kind of defeats its purpose
Mukund Sivaraman [Thu, 11 Oct 2012 14:43:05 +0000 (20:13 +0530)]
[2268] Fix disabled tests without using InMemoryClient::add()
Also remove direct tests for add() as the method has been removed now.
Tomek Mrugalski [Thu, 11 Oct 2012 14:14:28 +0000 (16:14 +0200)]
[master] Compilation fix for OpenBSD.
For some reason comparison operator for std::vector<uint8_t> does
not work with EXPECT_EQ macro on OpenBSD.
Tomek Mrugalski [Thu, 11 Oct 2012 14:07:32 +0000 (16:07 +0200)]
[master] Warning shown on Debian6 with g++ 4.4 removed.
Tomek Mrugalski [Thu, 11 Oct 2012 13:33:40 +0000 (15:33 +0200)]
[master] Compilation fix for Solaris in LeaseMgr
Mukund Sivaraman [Thu, 11 Oct 2012 13:09:13 +0000 (18:39 +0530)]
Merge branch 'master' into trac2268
Conflicts:
src/lib/datasrc/memory/Makefile.am
src/lib/datasrc/memory/memory_client.cc
src/lib/datasrc/memory/memory_client.h
src/lib/datasrc/tests/memory/memory_client_unittest.cc
Tomek Mrugalski [Thu, 11 Oct 2012 12:59:58 +0000 (14:59 +0200)]
[master] Merge branch 'trac2237' (Subnet/pool storage for DHCPv4)
Conflicts:
ChangeLog
src/lib/dhcp/cfgmgr.h
src/lib/dhcp/tests/cfgmgr_unittest.cc
Tomek Mrugalski [Thu, 11 Oct 2012 12:55:04 +0000 (14:55 +0200)]
[2237] Changes after review.
Tomek Mrugalski [Thu, 11 Oct 2012 12:40:04 +0000 (14:40 +0200)]
[master] Merge branch 'trac2269' (configuration for b10-dhcp6)
Tomek Mrugalski [Thu, 11 Oct 2012 12:30:28 +0000 (14:30 +0200)]
[2269] Typo fixed.
Tomek Mrugalski [Thu, 11 Oct 2012 12:15:10 +0000 (14:15 +0200)]
[master] Merge branch 'trac2140' (Abstract API for DHCP database)
Conflicts:
ChangeLog
src/lib/dhcp/tests/Makefile.am
Jelte Jansen [Thu, 11 Oct 2012 12:09:15 +0000 (14:09 +0200)]
[2223] small change in comment
Jelte Jansen [Thu, 11 Oct 2012 12:06:19 +0000 (14:06 +0200)]
[2223] revert vector implementation, use a count function
Stephen Morris [Thu, 11 Oct 2012 11:46:51 +0000 (12:46 +0100)]
[2304] Minor changes to header comments
Tomek Mrugalski [Thu, 11 Oct 2012 11:40:11 +0000 (13:40 +0200)]
[2140] LeaseMgr minor tweaks, ChangeLog updated.
Mukund Sivaraman [Thu, 11 Oct 2012 06:51:42 +0000 (12:21 +0530)]
[2266] Update ChangeLog
Mukund Sivaraman [Thu, 11 Oct 2012 06:49:00 +0000 (12:19 +0530)]
Merge branch 'master' into trac2266
JINMEI Tatuya [Thu, 11 Oct 2012 06:01:23 +0000 (23:01 -0700)]
[2332] (unrelated) style cleanups: func name convention, () after sizeof.
JINMEI Tatuya [Thu, 11 Oct 2012 05:58:39 +0000 (22:58 -0700)]
[2332] (unrelated) cleanup: removed unnecesary failure case in Locker.
We don't have to worry about the case lock() throws in the constructor.
In that case the destructor won't be called.
This simplification will make the code simpler, and we can also make
mutex_ member variable a const.
JINMEI Tatuya [Thu, 11 Oct 2012 05:55:34 +0000 (22:55 -0700)]
[2332] added class documentation
JINMEI Tatuya [Thu, 11 Oct 2012 05:17:25 +0000 (22:17 -0700)]
[2332] added more tests and some more comments
JINMEI Tatuya [Thu, 11 Oct 2012 03:09:58 +0000 (20:09 -0700)]
[2332] supported wait() and signal()
JINMEI Tatuya [Wed, 10 Oct 2012 23:45:41 +0000 (16:45 -0700)]
[2332] removed unused changed
JINMEI Tatuya [Wed, 10 Oct 2012 23:25:05 +0000 (16:25 -0700)]
[2332] makefile updates for the new files
JINMEI Tatuya [Wed, 10 Oct 2012 23:24:21 +0000 (16:24 -0700)]
[2332] added initial sets of condition variable encapsulation
currently it does almost nothing except initialize and cleanup
JINMEI Tatuya [Wed, 10 Oct 2012 23:00:28 +0000 (16:00 -0700)]
[2332] unrelated cleanup: noncopyable doesn't have to be public inheritance
(maybe a matter of taste, though)
JINMEI Tatuya [Wed, 10 Oct 2012 22:14:52 +0000 (15:14 -0700)]
[master] minor wording fix in a README file.
committing at my discretion.
JINMEI Tatuya [Wed, 10 Oct 2012 21:52:37 +0000 (14:52 -0700)]
[2340] Merge branch 'master' into trac2340
JINMEI Tatuya [Wed, 10 Oct 2012 20:50:21 +0000 (13:50 -0700)]
[master] changelog for #2339
JINMEI Tatuya [Wed, 10 Oct 2012 20:38:20 +0000 (13:38 -0700)]
[master] Merge branch 'trac2339'
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:42:46 +0000 (20:42 +0200)]
Compilation fix: usual static_cast<X*>(NULL)
Sunstudio is unhappy with plain NULL inside EXPECT_EQ and thinks it is
int. This makes it think otherwise.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:28:16 +0000 (20:28 +0200)]
Remove extra comma at the end of enum
This should fix compilation issue on sunstudio.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:17:38 +0000 (20:17 +0200)]
[2207] Document the local zone loader
JINMEI Tatuya [Wed, 10 Oct 2012 18:02:24 +0000 (11:02 -0700)]
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
Tomek Mrugalski [Wed, 10 Oct 2012 17:28:09 +0000 (19:28 +0200)]
[2140] DUID no longer returns unsafe references, tests updated.
Tomek Mrugalski [Wed, 10 Oct 2012 17:27:28 +0000 (19:27 +0200)]
[2140] Renew, rebind timers added to lease4, recycle-timer removed
JINMEI Tatuya [Wed, 10 Oct 2012 16:32:40 +0000 (09:32 -0700)]
[master] added changelog for #2244
JINMEI Tatuya [Wed, 10 Oct 2012 16:31:30 +0000 (09:31 -0700)]
[master] a minor grammar fix to changelog entry.
JINMEI Tatuya [Wed, 10 Oct 2012 16:26:47 +0000 (09:26 -0700)]
[master] Merge branch 'trac2244'
JINMEI Tatuya [Wed, 10 Oct 2012 16:19:06 +0000 (09:19 -0700)]
[master] Merge branch 'trac2204'
Marcin Siodelski [Wed, 10 Oct 2012 15:21:01 +0000 (17:21 +0200)]
[2304] Code cleanup.