]>
git.ipfire.org Git - thirdparty/kea.git/log
Michal 'vorner' Vaner [Tue, 12 Jun 2012 11:24:22 +0000 (13:24 +0200)]
[1975] Rename search -> find
To have better naming consistency.
Michal 'vorner' Vaner [Tue, 12 Jun 2012 11:17:43 +0000 (13:17 +0200)]
[1975] Use reference instead of pointer
As the pointer should never be NULL anyway, it might be better to pass
reference.
Marcin Siodelski [Tue, 12 Jun 2012 11:16:16 +0000 (13:16 +0200)]
[master] Merge branch 'trac1955' with resolving conflicts.
Michal 'vorner' Vaner [Tue, 12 Jun 2012 11:13:44 +0000 (13:13 +0200)]
[1975] Docs: It is for single class only
Mukund Sivaraman [Tue, 12 Jun 2012 11:13:38 +0000 (16:43 +0530)]
[2036] Show deeper stack
Michal 'vorner' Vaner [Tue, 12 Jun 2012 11:06:49 +0000 (13:06 +0200)]
[1975] Comment about inheriting the ConfigurableContainer
Saying that it should not be done. The data_sources_ variable should be
considered private.
Mukund Sivaraman [Tue, 12 Jun 2012 10:59:15 +0000 (16:29 +0530)]
[2036] Integrate valgrind into our test suite
* Supply --enable-valgrind to configure to run tests (make check)
under valgrind
* Use two classes of suppressions files:
+ src/valgrind-suppressions for permanent suppressions that we
never want to re-consider again
+ src/valgrind-suppressions.revisit for temporary suppressions
(such as issues in testcases) that are not a priority to fix,
but we'd like to fix them sometime
Marcin Siodelski [Tue, 12 Jun 2012 10:34:00 +0000 (12:34 +0200)]
[1955] Disable unused-parameter warning in dhcp for clang.
Jeremy C. Reed [Tue, 12 Jun 2012 02:41:26 +0000 (21:41 -0500)]
[master]Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
JINMEI Tatuya [Mon, 11 Jun 2012 23:56:12 +0000 (16:56 -0700)]
[master] removed incorrect line continuation.
accidentally introduced in the previous merge, and it broke 'make install'.
JINMEI Tatuya [Mon, 11 Jun 2012 21:17:18 +0000 (14:17 -0700)]
[master] Merge branch 'trac2003' with fixing conflicts.
Also updated server_common/auth_command.py so it uses the package level
logger module (as originally planned in #1978).
JINMEI Tatuya [Mon, 11 Jun 2012 21:02:24 +0000 (14:02 -0700)]
[master] Merge branch 'trac1978-2'
JINMEI Tatuya [Mon, 11 Jun 2012 20:56:33 +0000 (13:56 -0700)]
[master] changelog for #1982
JINMEI Tatuya [Mon, 11 Jun 2012 20:54:06 +0000 (13:54 -0700)]
[master/1982] append $(DESTDIR) to the paths checked in compatcheck.
Stephen Morris [Mon, 11 Jun 2012 16:04:52 +0000 (17:04 +0100)]
[1955] Added "const" to arguments of setData()
Definition now matches the declaration.
Tomek Mrugalski [Mon, 11 Jun 2012 15:53:40 +0000 (17:53 +0200)]
[1651] Changes after review in dhcp4 and IfaceMgr
Michal 'vorner' Vaner [Mon, 11 Jun 2012 14:53:10 +0000 (16:53 +0200)]
[2003] Typo fix in comment
Marcin Siodelski [Mon, 11 Jun 2012 11:30:36 +0000 (13:30 +0200)]
[1955] Corrections to timestamp unit tests in dhcp::PktN.
Marcin Siodelski [Mon, 11 Jun 2012 11:23:31 +0000 (13:23 +0200)]
[1955] Added setData() unit test for dhcp::Option.
Michal 'vorner' Vaner [Mon, 11 Jun 2012 08:05:07 +0000 (10:05 +0200)]
Merge #1997
Support for static data source under the new data source framework.
Michal 'vorner' Vaner [Mon, 11 Jun 2012 08:01:41 +0000 (10:01 +0200)]
[1997] Add forgotten EXTRA_DIST
Jelte Jansen [Mon, 11 Jun 2012 07:38:17 +0000 (09:38 +0200)]
[master] fix build failures after 1514 merge
The branch used a few calls that had been changed/removed by other branches (mainly #2018), this commit updates those calls
haikuo zhang [Mon, 11 Jun 2012 05:40:59 +0000 (13:40 +0800)]
Merge branch 'master' into trac1514
[1514] merge master to trac1514
Conflicts:
src/lib/python/isc/ddns/session.py
src/lib/python/isc/ddns/tests/session_tests.py
Mukund Sivaraman [Sun, 10 Jun 2012 18:32:20 +0000 (00:02 +0530)]
[1828] Use with statement to auto-close file handles when done using them
JINMEI Tatuya [Sat, 9 Jun 2012 21:40:03 +0000 (14:40 -0700)]
[1978] cleanup: remove a garbage character somehow inserted in previous commit.
JINMEI Tatuya [Sat, 9 Jun 2012 06:14:02 +0000 (23:14 -0700)]
[1978] have ddns notify auth of an update if necessary.
JINMEI Tatuya [Sat, 9 Jun 2012 05:35:45 +0000 (22:35 -0700)]
[1978] another refactoring: extract xfrout specific part of notify_update.
so that the main __notify_update method can be shared with the auth case.
no behavior change yet, so no need for updating the test.
JINMEI Tatuya [Sat, 9 Jun 2012 05:29:47 +0000 (22:29 -0700)]
[1978] refactoring: move 'loadzone' msg creation from xfrin to server_common.
so that it can be shared with ddns. This is a straightforward refactoring,
without changeing the actual behavior.
JINMEI Tatuya [Sat, 9 Jun 2012 01:05:01 +0000 (18:05 -0700)]
[1975] more editorial cleanups: spacing, doxygen format for code; const.
JINMEI Tatuya [Fri, 8 Jun 2012 22:41:16 +0000 (15:41 -0700)]
[1975] use EXPECT_TRUE with == inside it, instead of EXPECT_EQ to make it build.
Since no operator<< for SearchResult is defined, EXPECT_EQ doesn't compile,
at least not on some environment. This is not the only way to fix it, but
reviewing it without having buildable tree is quite difficult, so I'm
tentatively making the easiest fix and committing it. Feel free to override
it.
JINMEI Tatuya [Fri, 8 Jun 2012 22:18:58 +0000 (15:18 -0700)]
[1975] editorial fixes: constify, brace position, newlines, typo.
I added newlines before the start of doxygen doc. We don't have it our
guideline, but I thought we agreed before we add to insert a new line here
for readability.
JINMEI Tatuya [Fri, 8 Jun 2012 21:04:15 +0000 (14:04 -0700)]
[2003] added get_total_len() DNSTCPSendBuffer and use it for better log msg.
Tomek Mrugalski [Fri, 8 Jun 2012 18:39:01 +0000 (20:39 +0200)]
[1651] Implemented command tests for DHCPv4
JINMEI Tatuya [Fri, 8 Jun 2012 16:40:58 +0000 (09:40 -0700)]
[2003] cleanup: removed white space in a blank line.
JINMEI Tatuya [Fri, 8 Jun 2012 16:40:14 +0000 (09:40 -0700)]
[2003] forgot to add a new test file
Marcin Siodelski [Fri, 8 Jun 2012 16:09:54 +0000 (18:09 +0200)]
[1955] Check for null options pointers.
Marcin Siodelski [Fri, 8 Jun 2012 15:47:27 +0000 (17:47 +0200)]
[1955] Using named constants for offsets and transaction id in unit tests.
Marcin Siodelski [Fri, 8 Jun 2012 14:35:34 +0000 (16:35 +0200)]
[1955] Using OutputBuffer::writeUint8At to avoid OutputBuffer::clear().
Jelte Jansen [Fri, 8 Jun 2012 13:49:54 +0000 (15:49 +0200)]
[2016] add tests to check find() returns original data
Tomek Mrugalski [Fri, 8 Jun 2012 13:28:18 +0000 (15:28 +0200)]
[1651] New skeleton tests for ControlledDhcpv4Srv class added.
Tomek Mrugalski [Fri, 8 Jun 2012 13:27:45 +0000 (15:27 +0200)]
[1651] Control interface in DHCPv4 refactored into separate class
- See ControlledDhcpv4Srv class for msgq support.
Marcin Siodelski [Fri, 8 Jun 2012 11:55:34 +0000 (13:55 +0200)]
[1955] Access perf_pktN and pktN class members via getters and setters.
Some of the pktN protected variables are still accessed directly in derived
classes thus warnings have been added in libs.
Marcin Siodelski [Fri, 8 Jun 2012 10:09:02 +0000 (12:09 +0200)]
[1955] Removed redundant constructors, used default values instead.
Marcin Siodelski [Fri, 8 Jun 2012 08:47:48 +0000 (10:47 +0200)]
[1955] Updated dates in perfdhcp copyright headers.
JINMEI Tatuya [Fri, 8 Jun 2012 06:15:54 +0000 (23:15 -0700)]
[2003] sorted log messages.
JINMEI Tatuya [Fri, 8 Jun 2012 06:14:38 +0000 (23:14 -0700)]
[2003] completed detailed log messages.
JINMEI Tatuya [Fri, 8 Jun 2012 04:42:28 +0000 (21:42 -0700)]
[2003] supported quota on the nubmer of acceptable TCP clients.
right now, it's harcoded, but it should be made configurable in a later
task.
haikuo zhang [Fri, 8 Jun 2012 03:49:29 +0000 (11:49 +0800)]
[1514] polished codes, added execption operation for DDNS_SOA
JINMEI Tatuya [Fri, 8 Jun 2012 01:14:06 +0000 (18:14 -0700)]
[2003] log the event when continued TCP send failed.
JINMEI Tatuya [Fri, 8 Jun 2012 00:41:03 +0000 (17:41 -0700)]
[2003] extended ddns select so it can handle outstanding TCP sends.
JINMEI Tatuya [Thu, 7 Jun 2012 22:47:21 +0000 (15:47 -0700)]
[2003] TCP send continuation first part: record the context in the server.
also added error case handling.
JINMEI Tatuya [Thu, 7 Jun 2012 22:02:55 +0000 (15:02 -0700)]
[2003] supported a simple case with TCP response.
it only handles the case where the initial send() completes the transmission.
JINMEI Tatuya [Thu, 7 Jun 2012 21:35:28 +0000 (14:35 -0700)]
[2003] added a utility module for handling DNS message over TCP.
the logger is now shared in the entire package, and is defined in its own
module.
Michal 'vorner' Vaner [Thu, 7 Jun 2012 16:53:54 +0000 (18:53 +0200)]
[1997] Generate the zone file
The zone file is generated from the authors file and the current
version.
Michal 'vorner' Vaner [Thu, 7 Jun 2012 14:52:15 +0000 (16:52 +0200)]
[1997] Implemented the static data source factory
It uses the in-memory data source behind the scenes to do the work. One
test disabled, since some other part of the source is broken there (or,
lacks a sanity check).
Michal 'vorner' Vaner [Thu, 7 Jun 2012 14:35:46 +0000 (16:35 +0200)]
[1997] Tests for static data source
Introduced (yet empty and not implemented) static data source library.
The tests for the future implementations are in place and obviously
fail.
Jelte Jansen [Thu, 7 Jun 2012 13:50:43 +0000 (15:50 +0200)]
[2016] check for single_update_mode
Jelte Jansen [Thu, 7 Jun 2012 13:31:52 +0000 (15:31 +0200)]
[2016] docstrings and cleanup
Jelte Jansen [Thu, 7 Jun 2012 12:39:57 +0000 (14:39 +0200)]
[2016] Additional tests for diff changes
Jelte Jansen [Wed, 6 Jun 2012 15:37:31 +0000 (17:37 +0200)]
[2016] Add 'find_updated' and 'find_all_updated'
These methods take the current additions and deletions into account; on success (or basic not-found), they add and remove rrs found in their respective buffers of the diff; i.e. added data is added to the result, removed data is removed. In effect, this returns the data as if the diff would have been committed. These only work on basic data, and do not take special find() processing into account. Therefore, any 'other' result is directly returned (and left to be handled by the caller).
This needed one other change; if you add data which is also in the deletions list, instead of adding it to the additions, it is removed from the deletions (and vice versa). This has the additional benefit of making diffs smaller if they contain removal and addition of the same data.
Stephen Morris [Thu, 7 Jun 2012 12:06:05 +0000 (13:06 +0100)]
[1955] Miscellaneous corrections to comments.
Jelte Jansen [Thu, 7 Jun 2012 08:37:44 +0000 (10:37 +0200)]
[master] Merge branch 'trac2018' with trivial conflicts
Conflicts:
src/lib/python/isc/ddns/session.py
src/lib/python/isc/ddns/tests/session_tests.py
Jelte Jansen [Thu, 7 Jun 2012 07:43:23 +0000 (09:43 +0200)]
[2018] parentheses around | operation
haikuo zhang [Thu, 7 Jun 2012 02:13:57 +0000 (10:13 +0800)]
[1514] If the new serial number is greater or equal to the old one, the SOA in
zone should be replaced by the new one. If not, the serial number in SOA will be
increased automatically
JINMEI Tatuya [Wed, 6 Jun 2012 21:29:03 +0000 (14:29 -0700)]
[master] Merge branch 'trac1513'
JINMEI Tatuya [Wed, 6 Jun 2012 18:58:44 +0000 (11:58 -0700)]
[master] use Py_hash_t for return value of tp_hash, and define it for old vers.
The previous code (using long) caused build failure on Solaris.
Python 3.2 changed the return type of internal hash API:
http://docs.python.org/py3k/c-api/object.html#PyObject_Hash
from long to Py_hash_t and solaris seems to be more strict about the
difference of these types.
this patch is a bit ad hoc (define it for older python versions
referring to PY_MINOR_VERSION) but I thought that's the best way for
an urgent care fix. I'll create a ticket for a cleaner solution.
Michal 'vorner' Vaner [Wed, 6 Jun 2012 15:35:18 +0000 (17:35 +0200)]
[1975] Test reconfiguration
We try calling the configure function multiple times on the same object.
Michal 'vorner' Vaner [Wed, 6 Jun 2012 15:30:33 +0000 (17:30 +0200)]
[1975] Implement the loading of configuration
The loading was moved from constructor to separate function, because:
* It is not possible to call virtual functions from constructor (it is,
but they are not called in the virtual manner). It is a problem for
test mock purposes.
* It is possible to call the function multiple times on the same
object, to reuse the same object.
Updated tests accordingly.
Jeremy C. Reed [Wed, 6 Jun 2012 14:41:55 +0000 (09:41 -0500)]
[master]Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
Michal 'vorner' Vaner [Wed, 6 Jun 2012 13:55:44 +0000 (15:55 +0200)]
[1975] Check that data source error exception is propagated
Jelte Jansen [Wed, 6 Jun 2012 13:38:12 +0000 (15:38 +0200)]
[2018] add find defaults
and reverted the acl check from the previous commit (going to address that separately)
Also add committed check to diff's find and find_all
Michal 'vorner' Vaner [Wed, 6 Jun 2012 13:31:56 +0000 (15:31 +0200)]
[1965] Tests for configuration
Michal 'vorner' Vaner [Wed, 6 Jun 2012 11:19:14 +0000 (13:19 +0200)]
[1975] Prepare for configuration tests
The data source is now a bare pointer. It will be deleted from it's
container, which is preserved too.
A function that'll be responsible for creation of the data source is
added.
Mukund Sivaraman [Wed, 6 Jun 2012 05:14:34 +0000 (10:44 +0530)]
Merge branch 'master' into trac2004
JINMEI Tatuya [Wed, 6 Jun 2012 00:04:53 +0000 (17:04 -0700)]
[1513] InternalError is local to DDNSServer, so need 'self' to refer to it.
Michal 'vorner' Vaner [Tue, 5 Jun 2012 19:20:33 +0000 (21:20 +0200)]
[1975] TODO for the time we support caches
The search semantics will be slightly different at places. The places
are now marked and explained.
Michal 'vorner' Vaner [Tue, 5 Jun 2012 19:15:30 +0000 (21:15 +0200)]
[1975] Implement the search function
Or, at last, the part without caches.
Michal 'vorner' Vaner [Tue, 5 Jun 2012 19:14:31 +0000 (21:14 +0200)]
[1975] Fix the fake data source
It behaved wrongly in partial matches, since the lower_bound function
went to the other side of the wanted iterator than I wanted.
Michal 'vorner' Vaner [Tue, 5 Jun 2012 18:37:07 +0000 (20:37 +0200)]
[1975] Tests with multiple data sources
Marcin Siodelski [Tue, 5 Jun 2012 18:36:34 +0000 (20:36 +0200)]
[1955] Use PktTransform class for v6 packets.
Marcin Siodelski [Tue, 5 Jun 2012 16:05:33 +0000 (18:05 +0200)]
[1955] Fixed doxygen typos in perfdhcp.
Marcin Siodelski [Tue, 5 Jun 2012 16:00:13 +0000 (18:00 +0200)]
[1955] Reword comments in PerfPkt4 and PktTransform classes.
JINMEI Tatuya [Tue, 5 Jun 2012 15:36:27 +0000 (08:36 -0700)]
[1513] corrected typo for a test name
Marcin Siodelski [Tue, 5 Jun 2012 15:13:01 +0000 (17:13 +0200)]
[1955] Swap output buffer and options argument in call to packOptions.
Marcin Siodelski [Tue, 5 Jun 2012 14:42:21 +0000 (16:42 +0200)]
[1955] Added remaining unit tests for PerfPkt4 and cleaned up the code.
Marcin Siodelski [Mon, 4 Jun 2012 16:13:17 +0000 (18:13 +0200)]
[1955] Added basic unit tests and DHCP v4 packet handler.
Jelte Jansen [Tue, 5 Jun 2012 10:02:10 +0000 (12:02 +0200)]
[2018] move module-level tests to own test class
Jelte Jansen [Tue, 5 Jun 2012 09:58:34 +0000 (11:58 +0200)]
[2018] update docstrings
Jelte Jansen [Tue, 5 Jun 2012 09:56:04 +0000 (11:56 +0200)]
[2018] separate diff creation from get_update_zone
and made get_update_zone protected instead of private
Jelte Jansen [Tue, 5 Jun 2012 09:27:00 +0000 (11:27 +0200)]
[2018] replace diff.get_updater by find() and find_all()
JINMEI Tatuya [Tue, 5 Jun 2012 07:34:10 +0000 (00:34 -0700)]
[1513] reorder log messages
JINMEI Tatuya [Tue, 5 Jun 2012 07:31:40 +0000 (00:31 -0700)]
[1513] added notification from ddns to xfrout about zone update.
there's not directly related change: rename the internal SessionError
to InternalError, because the former could be confused with the same
name of exception defined in isc.cc.
JINMEI Tatuya [Tue, 5 Jun 2012 01:16:09 +0000 (18:16 -0700)]
[1513] refactoring: extract socket send operation into a separate method.
this will make the planned implementation for this ticket simpler, and
will also help further unrelated extensions such as TCP support.
JINMEI Tatuya [Mon, 4 Jun 2012 22:00:26 +0000 (15:00 -0700)]
[master] editorial cleanup: removed a stale comment.
It was made as a hint what we'd do at the time we only had a framework
of UpdateSession. Now that we've filled in it, we don't need the comment.
should be trivial, directly committing.
Mukund Sivaraman [Mon, 4 Jun 2012 21:34:13 +0000 (03:04 +0530)]
[1704] Stop dist of the .{cc,h} generated from .mes file (distcheck fails otherwise)
Mukund Sivaraman [Mon, 4 Jun 2012 20:22:47 +0000 (01:52 +0530)]
[2004] Add Python unittests for the specialized exceptions that we catch
Mukund Sivaraman [Mon, 4 Jun 2012 20:04:06 +0000 (01:34 +0530)]
[2004] Catch std::exception before ... to print some detail if possible
Also update the messages returned.
JINMEI Tatuya [Mon, 4 Jun 2012 17:32:41 +0000 (10:32 -0700)]
[master] Merge branch 'trac2013' with fixing a conflict.
JINMEI Tatuya [Mon, 4 Jun 2012 17:19:13 +0000 (10:19 -0700)]
[master] changelog for #1912
JINMEI Tatuya [Mon, 4 Jun 2012 17:16:04 +0000 (10:16 -0700)]
[master] Merge branch 'trac1912'