]>
git.ipfire.org Git - thirdparty/kea.git/log
Marcin Siodelski [Thu, 3 Sep 2015 13:51:04 +0000 (15:51 +0200)]
[3970] Added missing includes in WatchSocket.
Marcin Siodelski [Thu, 3 Sep 2015 10:17:09 +0000 (12:17 +0200)]
[master] Added ChangeLog entry for #3965.
Marcin Siodelski [Thu, 3 Sep 2015 09:42:57 +0000 (11:42 +0200)]
[master] Merge branch 'trac3965'
Marcin Siodelski [Thu, 3 Sep 2015 09:35:25 +0000 (11:35 +0200)]
[3965] deleteExpiredReclaimed returns number of deleted leases.
Francis Dupont [Thu, 3 Sep 2015 07:44:31 +0000 (09:44 +0200)]
[master] Updated git hash
Francis Dupont [Thu, 3 Sep 2015 07:42:50 +0000 (09:42 +0200)]
[master] Finished merge of trac4031 (combined: header, asiodns, testutils, asiolink cleanup)
Francis Dupont [Thu, 3 Sep 2015 07:42:05 +0000 (09:42 +0200)]
[master] Merged trac4031 (combined: header, asiodns, testutils, asiolink cleanup)
Francis Dupont [Wed, 2 Sep 2015 20:28:02 +0000 (22:28 +0200)]
[4009] Fixed the boost_system dependency
Francis Dupont [Wed, 2 Sep 2015 19:55:52 +0000 (21:55 +0200)]
[4009] Added many missing boost/scoped_ptr.hpp includes
Francis Dupont [Wed, 2 Sep 2015 19:29:18 +0000 (21:29 +0200)]
[4009] Fixed asiolink
Francis Dupont [Wed, 2 Sep 2015 19:16:27 +0000 (21:16 +0200)]
[4009] Added temporary -lboost_system to link asiolink
Francis Dupont [Wed, 2 Sep 2015 19:15:14 +0000 (21:15 +0200)]
[4009] error_ and system_code in system (vs asio) namespace
Francis Dupont [Wed, 2 Sep 2015 18:54:56 +0000 (20:54 +0200)]
[4009] Added temporary -lboost_system to link cc
Francis Dupont [Wed, 2 Sep 2015 18:06:53 +0000 (20:06 +0200)]
[4009] ASIO_HPP -> BOOST_ASIO_HPP
Francis Dupont [Wed, 2 Sep 2015 17:49:11 +0000 (19:49 +0200)]
[4009] Added boost to asio (tentative)
Marcin Siodelski [Wed, 2 Sep 2015 17:46:20 +0000 (19:46 +0200)]
[3965] Lease state is the enum-like value, rather than bitfield.
Marcin Siodelski [Wed, 2 Sep 2015 16:36:56 +0000 (18:36 +0200)]
[master] Added Changelog entry for #3947.
Marcin Siodelski [Wed, 2 Sep 2015 16:20:47 +0000 (18:20 +0200)]
[master] Merge branch 'trac3947'
Francis Dupont [Wed, 2 Sep 2015 15:09:06 +0000 (17:09 +0200)]
[4031] Cleaned up asiolink (tentative)
Francis Dupont [Wed, 2 Sep 2015 14:31:30 +0000 (16:31 +0200)]
[master] Updated git hash
Francis Dupont [Wed, 2 Sep 2015 14:30:38 +0000 (16:30 +0200)]
[master] Finished merge of trac4026 (LoggingTest.basicSpec fails in distcheck)
Francis Dupont [Wed, 2 Sep 2015 14:28:03 +0000 (16:28 +0200)]
[master] Merged trac4026 (LoggingTest.basicSpec fails in distcheck)
Marcin Siodelski [Wed, 2 Sep 2015 13:06:42 +0000 (15:06 +0200)]
[3947] Addressed review comments.
Marcin Siodelski [Wed, 2 Sep 2015 12:08:47 +0000 (14:08 +0200)]
[3970] Rename 'deregister' to 'unregister' in TimerMgr.
Marcin Siodelski [Wed, 2 Sep 2015 11:51:25 +0000 (13:51 +0200)]
[3970] Added logging traces to the TimerMgr.
Tomek Mrugalski [Wed, 2 Sep 2015 11:37:34 +0000 (13:37 +0200)]
[3983] Unit-tests for incorrect decline-probation-period added.
Tomek Mrugalski [Wed, 2 Sep 2015 11:29:56 +0000 (13:29 +0200)]
[3983] Changes after review:
- commitGlobalParameters renamed to setGlobalParameters
- const added
- Comments updated
Marcin Siodelski [Wed, 2 Sep 2015 11:10:52 +0000 (13:10 +0200)]
[3970] Disabled one test in TimerMgr.
Francis Dupont [Wed, 2 Sep 2015 10:54:32 +0000 (12:54 +0200)]
[4026] Fixed the path define
Marcin Siodelski [Wed, 2 Sep 2015 10:52:32 +0000 (12:52 +0200)]
[3970] Prevent race conditions during timers registration.
Marcin Siodelski [Wed, 2 Sep 2015 09:10:17 +0000 (11:10 +0200)]
[3970] Improved test coverage for the TimerMgr.
Francis Dupont [Tue, 1 Sep 2015 21:46:24 +0000 (23:46 +0200)]
[4029] Removed obsolete testutils/testdata directory
Francis Dupont [Tue, 1 Sep 2015 21:30:14 +0000 (23:30 +0200)]
[4029] Removed obsolete references to testutils/testdata
Francis Dupont [Tue, 1 Sep 2015 16:12:53 +0000 (18:12 +0200)]
[4029] Cleaned up cfgrpt/tests/Makefile.am
Francis Dupont [Tue, 1 Sep 2015 15:55:51 +0000 (17:55 +0200)]
[4029] Cleanup testutils code too
Francis Dupont [Tue, 1 Sep 2015 15:20:40 +0000 (17:20 +0200)]
[4029] Applied #4028 removals
Francis Dupont [Tue, 1 Sep 2015 15:19:55 +0000 (17:19 +0200)]
[4029] Removed unused files (tentative)
Francis Dupont [Tue, 1 Sep 2015 14:14:52 +0000 (16:14 +0200)]
[master] Merged trac4003 (messing <iterator> include)
Tomek Mrugalski [Tue, 1 Sep 2015 11:28:20 +0000 (13:28 +0200)]
[master] Merge branch 'trac4025' ExceptionTest.verbose fail fix
Francis Dupont [Mon, 31 Aug 2015 14:51:02 +0000 (16:51 +0200)]
[3911a] Fixes for static link (still subject to #4004 issue)
Francis Dupont [Sun, 30 Aug 2015 14:04:10 +0000 (16:04 +0200)]
[3911a] Finished dependency cleanup + fixed g++/Linux errors
Francis Dupont [Sun, 30 Aug 2015 01:23:52 +0000 (03:23 +0200)]
[3911a] Finished dependency cleanup in src/lib
Francis Dupont [Sat, 29 Aug 2015 18:34:40 +0000 (20:34 +0200)]
[3911a] Reorganized library Makefile.am files (hooks)
Francis Dupont [Sat, 29 Aug 2015 13:30:32 +0000 (15:30 +0200)]
[3911a] Reorganized library Makefile.am files (exception, util, log)
Marcin Siodelski [Fri, 28 Aug 2015 15:25:02 +0000 (17:25 +0200)]
[3965] Improvements to generic lease mgr test as a result of review.
Marcin Siodelski [Fri, 28 Aug 2015 15:17:03 +0000 (17:17 +0200)]
[3965] Removed the spurious logic in the CSVLeaseFile6.
Marcin Siodelski [Fri, 28 Aug 2015 15:12:15 +0000 (17:12 +0200)]
[3965] Updated descriptions of indexes in the Memfile storages.
Marcin Siodelski [Fri, 28 Aug 2015 14:55:11 +0000 (16:55 +0200)]
[3965] Updated description of the state_ field to reference constants.
Marcin Siodelski [Fri, 28 Aug 2015 14:33:01 +0000 (16:33 +0200)]
[3965] Removed unused fields from the Lease structures.
Francis Dupont [Fri, 28 Aug 2015 12:26:54 +0000 (14:26 +0200)]
[4015] Added missing IANA definitions (commented when not for secure DHCPv6)
Marcin Siodelski [Fri, 28 Aug 2015 11:48:55 +0000 (13:48 +0200)]
[3965] Lease state 0 is a default state.
Changes according to the review.
Marcin Siodelski [Fri, 28 Aug 2015 07:51:38 +0000 (09:51 +0200)]
[3681] Minor updates to the MySqlConnection.
Marcin Siodelski [Fri, 28 Aug 2015 06:51:05 +0000 (08:51 +0200)]
[3681] Corrections to documentation of the DatabaseConnection class.
Marcin Siodelski [Fri, 28 Aug 2015 05:36:11 +0000 (07:36 +0200)]
[3970] Cosmetic updates to the TimerMgr documentation.
Tomek Mrugalski [Thu, 27 Aug 2015 17:13:33 +0000 (19:13 +0200)]
[4025] Incorrect use of temporary object fixed in Exception::what()
Marcin Siodelski [Thu, 27 Aug 2015 16:50:12 +0000 (18:50 +0200)]
[3970] Updated implementation of TimerMgr and make it almost ready.
The TimerMgr now uses the IfaceMgr to register WatchSockets. It
also comes with a full doxygen documentation and extensive
commentary in the code.
Francis Dupont [Thu, 27 Aug 2015 16:16:41 +0000 (18:16 +0200)]
[4024] Fixed c++11 detected errors
Francis Dupont [Thu, 27 Aug 2015 11:48:55 +0000 (13:48 +0200)]
[master] Updated git hash
Francis Dupont [Thu, 27 Aug 2015 11:48:13 +0000 (13:48 +0200)]
[master] Finished merge of trac3752 (logger immediate flush)
Francis Dupont [Thu, 27 Aug 2015 11:46:08 +0000 (13:46 +0200)]
[master] Merged trac3752 (logger immediate flush)
Francis Dupont [Thu, 27 Aug 2015 11:45:08 +0000 (13:45 +0200)]
[3752] Moved copyrights to Tomek's style
Francis Dupont [Thu, 27 Aug 2015 10:54:07 +0000 (12:54 +0200)]
[master] Updated git hash
Francis Dupont [Thu, 27 Aug 2015 10:53:11 +0000 (12:53 +0200)]
[master] Finished merge of trac4006 (Fixes for Boost 1.59)
Francis Dupont [Thu, 27 Aug 2015 10:49:29 +0000 (12:49 +0200)]
[master] Merged trac4006 (Fixes for Boost 1.59)
Francis Dupont [Thu, 27 Aug 2015 10:07:48 +0000 (12:07 +0200)]
[4003] Added iterator missing include
Thomas Markwalder [Wed, 26 Aug 2015 17:40:21 +0000 (13:40 -0400)]
[2615] Rollback unwanted dhcp6/tests changes
Previous commit,
55207601c7a71e7db55d8fff2b451b054a7b315e , included
changes in the dhcp6/tests directory which should not have been included.
These have been removed.
Tomek Mrugalski [Wed, 26 Aug 2015 14:05:02 +0000 (16:05 +0200)]
[master] ChangeLog updated after trac4000 merge.
Tomek Mrugalski [Wed, 26 Aug 2015 14:02:57 +0000 (16:02 +0200)]
[master] Merge branch 'trac4000' (signal handler should not modify errno)
Thomas Markwalder [Tue, 25 Aug 2015 18:58:56 +0000 (14:58 -0400)]
[2615] Corrected NO_HR index and text
The NO_HR enum value was erroneously set to an explicit
value, causing the wrong text to be used for some tests.
Changed reserved host name in config to avoid causing
NCR remove/adds during renewals.
Tomek Mrugalski [Tue, 25 Aug 2015 15:02:41 +0000 (17:02 +0200)]
[master] Merge branch 'trac3902' (extended unit-tests for command channel)
Marcin Siodelski [Tue, 25 Aug 2015 14:49:59 +0000 (16:49 +0200)]
[3970] Use thread to run handlers in TimerMgr.
Tomek Mrugalski [Tue, 25 Aug 2015 14:12:40 +0000 (16:12 +0200)]
[4000] Changes after review:
- distinction between ISC and std exceptions removed.
- reference to support ticket removed.
Marcin Siodelski [Tue, 25 Aug 2015 11:56:33 +0000 (13:56 +0200)]
[3970] Basic implementation of the TimerMgr singleton.
Francis Dupont [Mon, 24 Aug 2015 15:34:22 +0000 (17:34 +0200)]
[3908] Updated configure.ac
Francis Dupont [Mon, 24 Aug 2015 14:24:44 +0000 (16:24 +0200)]
[3908] Changed minimal OpenSSL version from 1.0.0 to 1.0.1
Thomas Markwalder [Mon, 24 Aug 2015 14:21:29 +0000 (10:21 -0400)]
[2615] v4 clients may now release out-of-range leases
Modified v4 server to not enforce subnet match when clients attempt
to release an existing, but out-of-range lease.
Added a battery of unit tests to verify proper v4 server behavior
when clients attempt to renew or release out-of-range addresses.
src/bin/dhcp4/dhcp4_messages.mes
- deleted DHCP4_RELEAE_FILE_NO SUBNET as it is now obsolete
src/bin/dhcp4/dhcp4_srv.cc
- Dhcpv4Srv::processRelease() - removed the check to make sure the
release pertains to a configured subnet. This allows clients to
release leases after configuration changes rendered them out of
range.
src/bin/dhcp4/tests/Makefile.am
- added out_of_range_unittest.cc
src/bin/dhcp4/tests/out_of_range_unittest.cc
- New file containing DHCPv4 tests for server behavior regarding
renews and releases of "out of range" addresses.
src/bin/dhcp4/tests/release_unittest.cc
- TEST_F(ReleaseTest, releaseNoSubnet) - modified the test to
verify that a client CAN release an out-of-range lease
Tomek Mrugalski [Mon, 24 Aug 2015 13:18:49 +0000 (15:18 +0200)]
[3681_rebase] Changes after review
- Indent fixed
- Missing parameter descriptions added
Marcin Siodelski [Mon, 24 Aug 2015 12:25:15 +0000 (14:25 +0200)]
[3970] Propagate errors emitted when closing the WatchSocket.
Marcin Siodelski [Fri, 21 Aug 2015 19:41:34 +0000 (21:41 +0200)]
[3970] Moved WatchSocket class to utilities.
Tomek Mrugalski [Fri, 21 Aug 2015 16:27:41 +0000 (18:27 +0200)]
[3681_rebase] MySQLLeaseMgr uses, but does not derive from MySqlConnection.
Tomek Mrugalski [Fri, 21 Aug 2015 13:35:51 +0000 (15:35 +0200)]
[3961_rebase] Changes after review:
- DataSource renamed to DatabaseConnection
- exception now prints missing parameter name
- description updated
- unnecessary this removed
Marcin Siodelski [Fri, 21 Aug 2015 12:01:35 +0000 (14:01 +0200)]
[3965] Fixed build failure due to unused parameters.
Tomek Mrugalski [Fri, 21 Aug 2015 11:12:24 +0000 (13:12 +0200)]
[3902] Workaround for file descriptor 0 implemented.
Marcin Siodelski [Fri, 21 Aug 2015 10:45:00 +0000 (12:45 +0200)]
[3965] Delete expired-reclaimed leases from the lease file.
Tomek Mrugalski [Fri, 21 Aug 2015 10:36:09 +0000 (12:36 +0200)]
[3983] Description updated.
Tomek Mrugalski [Thu, 20 Aug 2015 18:51:28 +0000 (20:51 +0200)]
[3983] Support for 'decline-probation-period' implemented.
Marcin Siodelski [Thu, 20 Aug 2015 17:25:38 +0000 (19:25 +0200)]
[3965] Added stub methods for getting and removing expired leases.
Marcin Siodelski [Thu, 20 Aug 2015 16:14:06 +0000 (18:14 +0200)]
[3965] Write and read state from the lease files.
Tomek Mrugalski [Thu, 20 Aug 2015 14:36:24 +0000 (16:36 +0200)]
[trac4000] Exception handling in DHCPv6 improved
- std::exception is now caught
- try/catch clause added around handleSignal
Tomek Mrugalski [Thu, 20 Aug 2015 14:31:03 +0000 (16:31 +0200)]
[trac4000] Unit-tests for process spawn + errno, verbose exceptions added.
Tomek Mrugalski [Thu, 20 Aug 2015 13:37:50 +0000 (15:37 +0200)]
[trac4000] Unnecessary messages removed.
Tomek Mrugalski [Tue, 18 Aug 2015 12:08:00 +0000 (14:08 +0200)]
[support8785] Likely fix for the issues with "no child processes" exception
This fix makes the signal handler no longer modify errno value.
That was causing "no child processes" exceptions in places that
had nothing to do with signals or processes.
Tomek Mrugalski [Mon, 17 Aug 2015 19:33:53 +0000 (21:33 +0200)]
[support8785] Verbose Exception::what() has been implemented.
This change by itself does nothing, but it allows changing
e.what() to e.what(true) to get more details about an exception.
This can be useful for exception debugging.
Tomek Mrugalski [Mon, 17 Aug 2015 18:49:39 +0000 (20:49 +0200)]
[support8785] std::exception, not just isc::Exception is caught
If std::exception would be thrown anywhere in message processing
in Dhcp4Srv::run(), we would not catch it. In principle, that
should never happen, as the Kea code only throws isc::Exception
derivatives, but maybe some of the system or boost calls could
throw std::exception.
Tomek Mrugalski [Mon, 17 Aug 2015 18:21:00 +0000 (20:21 +0200)]
[support8785] ISC and std exceptions in handleSignal() are now caught
The calls to handleSignal() are now wrapped with catch clauses
for both ISC and standard exceptions. This would not solve the
underlying issue, but at least would cause the server to continue
after the issue occurs.
Tomek Mrugalski [Thu, 20 Aug 2015 12:56:26 +0000 (14:56 +0200)]
[support8785] Select interruption by signal is now logged.
One of the hypotheses for the #8785 issue is mis-handling of
the SingalInterruptOnSelect exception. This message will
be printed every time a signal is received during select().
Conflicts:
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/dhcp4_srv.cc
Marcin Siodelski [Thu, 20 Aug 2015 10:21:26 +0000 (12:21 +0200)]
[3965] Added capability to remove expired-reclaimed leases.
Marcin Siodelski [Wed, 19 Aug 2015 11:52:06 +0000 (13:52 +0200)]
[3965] Use tags rather than numbers to access memfile indexes.
Marcin Siodelski [Thu, 13 Aug 2015 12:06:52 +0000 (14:06 +0200)]
[3965] Implemented functions to retrieve expired leases.
Francis Dupont [Tue, 18 Aug 2015 10:25:31 +0000 (12:25 +0200)]
[4006] removed pfto macros and some compiler junk conditionals