]>
git.ipfire.org Git - thirdparty/kea.git/log
Marcin Siodelski [Wed, 18 Mar 2015 08:35:10 +0000 (09:35 +0100)]
[3689] Performance optimization in the appendRequestedOptions.
Thomas Markwalder [Tue, 17 Mar 2015 21:19:32 +0000 (17:19 -0400)]
[3689] Removed call to findReservation from AllocateEngine::allocateLeases6()
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/alloc_engine.cc
allocateLeases6()
- removed find_reservation parameter from allocateLeases6
- removed logic that called findReservation(), this eliminates
inadvertanly stomping an already populated host in the context.
Places burden of doing the reservation lookup always on the caller.
src/bin/dhcp6/dhcp6_srv.cc
removed obsolete boolean parameter from allocateLeases6 calls
src/lib/dhcpsrv/tests/alloc_engine_utils.h
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
AllocEngine6Test::findReservation() - new method which calls
engine's findReservation() and fills in context hostname accordingly.
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
added calls to AlloceEnginetTest::findReservation where needed
Thomas Markwalder [Tue, 17 Mar 2015 19:58:57 +0000 (15:58 -0400)]
[3689] Added host reservation tests
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
added tests:
TEST_F(Dhcpv6SrvTest, hostReservationWithHostName)
TEST_F(Dhcpv6SrvTest, hostReservationWithoutHostName)
src/bin/dhcp6/tests/dhcp6_test_utils.h
src/bin/dhcp6/tests/dhcp6_test_utils.cc
Dhcpv6SrvTest::createHost6() - this method was moved
here from FqdnDhcpv6SrvTest()
src/bin/dhcp6/tests/fqdn_unittest.cc
added tests:
TEST_F(FqdnDhcpv6SrvTest, hostnameReservationSuffix)
TEST_F(FqdnDhcpv6SrvTest, hostnameReservationNoSuffix)
TEST_F(FqdnDhcpv6SrvTest, hostnameReservationDdnsDisabled)
Thomas Markwalder [Tue, 17 Mar 2015 19:36:19 +0000 (15:36 -0400)]
[3689] Use context instead of subnet, duid params
src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/dhcp6_srv.cc
replaced parameters subnet and duid with a single paramter for context in
several methods:
assignIA_NA()
assignIA_PD()
extendIA_NA()
extendIA_PD()
extendLeases()
appendRequestedVendorOptions() - added context parameter, removed
redundant call to selectSubnet
processClientFqdn() -
Now sets the hostname value in the context in addition to processing FQDN.
This centralizes the logic to handle both, since they are tightly coupled
and can be influenced by a host reservation.
Note that when the host name from the reservation is being used in place
of the client FQDN, the qualyfing suffix is always appended to the hostname.
This is consistent with the DHCPv4 behavior.
Thomas Markwalder [Tue, 17 Mar 2015 18:11:57 +0000 (14:11 -0400)]
[3689] Changed AllocEngine::allocateLeases6 to not reset context hostname
src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::allocateLeases6() - now only sets context host name
if findReservation() is called. This was stomping on the value
already in the context.
Tomek Mrugalski [Fri, 6 Mar 2015 19:35:16 +0000 (20:35 +0100)]
[3689] hostname from reservation is now applied, if available
Tomek Mrugalski [Fri, 6 Mar 2015 18:05:34 +0000 (19:05 +0100)]
[3689] findReservation() implemented
Marcin Siodelski [Fri, 6 Mar 2015 11:47:26 +0000 (12:47 +0100)]
[master] Added ChangeLog for the #3694.
Marcin Siodelski [Fri, 6 Mar 2015 10:20:09 +0000 (11:20 +0100)]
[master] Merge branch 'trac3694'
Conflicts:
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
Marcin Siodelski [Fri, 6 Mar 2015 08:59:22 +0000 (09:59 +0100)]
[3694] Changes as a result of the second code review.
Shawn Routhier [Fri, 6 Mar 2015 02:14:54 +0000 (18:14 -0800)]
[3694] Fix a test and some typos
Marcin Siodelski [Thu, 5 Mar 2015 20:14:49 +0000 (21:14 +0100)]
[3694] Swap in-pool checks with the host reservation checks in alloc engine.
Marcin Siodelski [Thu, 5 Mar 2015 20:14:26 +0000 (21:14 +0100)]
[3694] Removed doxygen groupings from the Allocation Engine.
Marcin Siodelski [Thu, 5 Mar 2015 19:43:02 +0000 (20:43 +0100)]
[3694] Addressed review comments.
Tomek Mrugalski [Thu, 5 Mar 2015 18:40:46 +0000 (19:40 +0100)]
[master] Merge branch 'trac3709' (ClientContext4)
Tomek Mrugalski [Thu, 5 Mar 2015 18:40:05 +0000 (19:40 +0100)]
[3709] Doc updated
Marcin Siodelski [Thu, 5 Mar 2015 13:44:24 +0000 (14:44 +0100)]
[master] Added ChangeLog for #3710.
Marcin Siodelski [Thu, 5 Mar 2015 13:42:22 +0000 (14:42 +0100)]
[master] Merge branch 'trac3710'
Shawn Routhier [Thu, 5 Mar 2015 05:42:30 +0000 (21:42 -0800)]
[3694] Update copyright
Shawn Routhier [Thu, 5 Mar 2015 05:39:12 +0000 (21:39 -0800)]
[3694] Fix up some typos
Shawn Routhier [Wed, 4 Mar 2015 23:59:00 +0000 (15:59 -0800)]
Merge branch 'trac3694' of ssh://git.kea.isc.org/git/kea into trac3694
Pulling new changes into my branch to commit typo level fixes
Shawn Routhier [Wed, 4 Mar 2015 23:58:26 +0000 (15:58 -0800)]
[3694] Tidy up some typos in the comments
Stephen Morris [Tue, 3 Mar 2015 16:32:59 +0000 (16:32 +0000)]
[master] ChangeLog for trac3279
Stephen Morris [Tue, 3 Mar 2015 16:27:16 +0000 (16:27 +0000)]
[master] Merge branch 'trac3729'
Tomek Mrugalski [Tue, 3 Mar 2015 11:55:50 +0000 (12:55 +0100)]
[3709] createLease4() now uses ClientContext4
Marcin Siodelski [Tue, 3 Mar 2015 09:54:27 +0000 (10:54 +0100)]
[3694] User guide error in the DHCPv4 conflict resolution.
Shawn Routhier [Mon, 2 Mar 2015 21:31:43 +0000 (13:31 -0800)]
Merge branch 'trac3706' Tidy up some issues find by cpp check
Jeremy C. Reed [Mon, 2 Mar 2015 18:43:37 +0000 (13:43 -0500)]
generate manpages from .xml file in srcdir not builddir
The .xml file is not a generated file.
Tomek Mrugalski [Mon, 2 Mar 2015 18:37:57 +0000 (19:37 +0100)]
[3709] allocateLease4 now uses ClientContext4
Jeremy C. Reed [Mon, 2 Mar 2015 18:24:07 +0000 (13:24 -0500)]
change top_srcdir to top_builddir as the path_replacer.sh is a generated tool
problem was noticed by wlodek (and reproduced by me):
make[4]: Entering directory
`/home/wlodek/dev/ktest/src/bin/keactrl'
/home/wlodek/dev/kea_test/tools/path_replacer.sh
/home/wlodek/dev/kea_test/src/bin/keactrl/kea.conf.pre kea.conf
/bin/bash: /home/wlodek/dev/kea_test/tools/path_replacer.sh: No
such file or directory
Marcin Siodelski [Mon, 2 Mar 2015 17:43:13 +0000 (18:43 +0100)]
[3710] Use undefined pthread behavior for FreeBSD.
This prevents failure of the CondVar unit tests which expect that the
pthread_cond_destroy returns error code if the other thread is blocked
on the conditional variable which is being destroyed.
Francis Dupont [Mon, 2 Mar 2015 16:52:23 +0000 (17:52 +0100)]
[master] spelling
Marcin Siodelski [Mon, 2 Mar 2015 10:46:02 +0000 (11:46 +0100)]
[3706] Fixed the two typos in the comments of ProcessSpawn.
Marcin Siodelski [Mon, 2 Mar 2015 10:30:47 +0000 (11:30 +0100)]
[master] Merge branch 'trac3651'
Marcin Siodelski [Mon, 2 Mar 2015 10:30:20 +0000 (11:30 +0100)]
[3651] Replaced bind10 with Kea in the readme file.
Marcin Siodelski [Mon, 2 Mar 2015 10:15:56 +0000 (11:15 +0100)]
[master] Merge branch 'trac3728'
Francis Dupont [Sat, 28 Feb 2015 17:55:07 +0000 (18:55 +0100)]
[master] better handling of TSIG keys with empty secrets (#3727)
Shawn Routhier [Sat, 28 Feb 2015 02:31:38 +0000 (18:31 -0800)]
[trac3706] Fix up comment
Shawn Routhier [Sat, 28 Feb 2015 01:38:48 +0000 (17:38 -0800)]
[trac3706] Lets use the hostname instead of removing it
Shawn Routhier [Sat, 28 Feb 2015 01:28:00 +0000 (17:28 -0800)]
[trac3706] More cpp cleanup
Remove another unused variable in memfile_ubench.cc
Actually use the trimmed variable in host.cc
Update commetns in process_spawn.[cc h]
Francis Dupont [Sat, 28 Feb 2015 01:01:50 +0000 (02:01 +0100)]
[master] spelling
Francis Dupont [Sat, 28 Feb 2015 00:56:29 +0000 (01:56 +0100)]
[master] spelling
Francis Dupont [Fri, 27 Feb 2015 16:29:17 +0000 (17:29 +0100)]
Merge branch 'master' of ssh://git.kea.isc.org/git/kea
Francis Dupont [Fri, 27 Feb 2015 16:28:21 +0000 (17:28 +0100)]
[master] initialize BSD_TYPE in configure.ac (#3723)
Marcin Siodelski [Fri, 27 Feb 2015 16:13:11 +0000 (17:13 +0100)]
[master] Added ChangeLog entry for #3730.
Marcin Siodelski [Fri, 27 Feb 2015 15:58:54 +0000 (16:58 +0100)]
[master] Merge branch 'trac3730'
Marcin Siodelski [Fri, 27 Feb 2015 15:14:46 +0000 (16:14 +0100)]
[3730] Moved the openSockets invocation to the beginning of the method.
This change was suggested in the review.
Stephen Morris [Fri, 27 Feb 2015 13:50:18 +0000 (13:50 +0000)]
[3729] Updated perfdhcp RateControl test
Now checks that division is done correctly in RateControl::getOutboundMessageCount()
Francis Dupont [Fri, 27 Feb 2015 13:36:24 +0000 (14:36 +0100)]
[master] made configure more suitable for cross-compiling (#3723)
Marcin Siodelski [Fri, 27 Feb 2015 09:48:45 +0000 (10:48 +0100)]
[3651] Fixed the non portable whitespace trimming in shell tests.
Shawn Routhier [Fri, 27 Feb 2015 03:25:47 +0000 (19:25 -0800)]
[trac3706] Clean up some issues from cpp check
Remove or comment out some variables that aren't read after they are written.
Tag the process classes as noncopyable to avoid external code trying
to copy them and to avoid an issue for cpp check
Marcin Siodelski [Thu, 26 Feb 2015 20:56:15 +0000 (21:56 +0100)]
[3728] Catch boost and std exceptions in kea-lfc.
Jeremy C. Reed [Thu, 26 Feb 2015 18:03:10 +0000 (13:03 -0500)]
spelling typo
Marcin Siodelski [Thu, 26 Feb 2015 17:44:28 +0000 (18:44 +0100)]
[3728] WritableHostDataSource does not derive from the BaseHostDataSource.
Marcin Siodelski [Thu, 26 Feb 2015 16:29:05 +0000 (17:29 +0100)]
[3730] Method to open sockets closes sockets before configuring IfaceMgr.
Previously, the sockets were closed just before opening a new set of
sockets, rather than before reconfiguring the IfaceMgr. Some steps of the
IfaceMgr reconfiguration failed when sockets were still open, which
effectively led to inability to reconfigure the running server.
Stephen Morris [Thu, 26 Feb 2015 15:51:28 +0000 (15:51 +0000)]
[3729] Fix problem of unintentional integer division
Marcin Siodelski [Thu, 26 Feb 2015 13:43:59 +0000 (14:43 +0100)]
[3694] Added warning message when there is an address conflict.
Marcin Siodelski [Thu, 26 Feb 2015 13:17:26 +0000 (14:17 +0100)]
[3694] Removed unused ClientContext4 member.
Marcin Siodelski [Thu, 26 Feb 2015 08:19:17 +0000 (09:19 +0100)]
[3694] Updates to the Conflict Resolution for the DHCPv4 server in guide.
Shawn Routhier [Thu, 26 Feb 2015 05:16:27 +0000 (21:16 -0800)]
[trac3706] Remove unused variables
Remove some unread variables as flagged by cppcheck
Marcin Siodelski [Wed, 25 Feb 2015 13:50:40 +0000 (14:50 +0100)]
[3694] Improved documentation of the allocation engine.
Also, made a couple of little fixes to the DHCPv4 allocation functions.
Wlodek Wencel [Wed, 25 Feb 2015 10:21:38 +0000 (11:21 +0100)]
[master] remove lastest changes in Makefile.am for pdf guide
Francis Dupont [Tue, 24 Feb 2015 22:00:26 +0000 (23:00 +0100)]
[master] inSubnet() -> inRange() in comments
Wlodek Wencel [Tue, 24 Feb 2015 21:33:03 +0000 (22:33 +0100)]
[master] pdf guides added to Makefile.am
Marcin Siodelski [Tue, 24 Feb 2015 17:53:32 +0000 (18:53 +0100)]
[3694] Fixed the unit test for the conflict resolution in DHCPv4.
Marcin Siodelski [Tue, 24 Feb 2015 16:25:56 +0000 (17:25 +0100)]
[3694] Cleanup in the failing DHCPv4 tests after update to AllocEngine.
Marcin Siodelski [Tue, 24 Feb 2015 11:38:30 +0000 (12:38 +0100)]
[3694] Grouping DHCPv4 functions in the allocation engine.
Marcin Siodelski [Tue, 24 Feb 2015 10:44:51 +0000 (11:44 +0100)]
[3694] Restructured lease4 allocation routines.
Marcin Siodelski [Mon, 23 Feb 2015 21:25:24 +0000 (22:25 +0100)]
[3694] Make index of the Lease4Storage non-unique.
This facilitates adding multiple leases for the same client. It may be
important in cases when one lease is being replaced by another and they
co-exist until the previous lease is deleted.
Marcin Siodelski [Mon, 23 Feb 2015 21:24:07 +0000 (22:24 +0100)]
[3694] New convenience functions added to IOAddress.
Wlodek Wencel [Mon, 23 Feb 2015 21:08:19 +0000 (22:08 +0100)]
[master] version change after release
Francis Dupont [Fri, 20 Feb 2015 12:03:47 +0000 (13:03 +0100)]
[master] v4/v6 typo
Francis Dupont [Fri, 20 Feb 2015 11:43:28 +0000 (12:43 +0100)]
[master] v4/v6 typos in comments
Francis Dupont [Fri, 20 Feb 2015 11:37:03 +0000 (12:37 +0100)]
[master] v4/v6 typos in comments
Tomek Mrugalski [Wed, 18 Feb 2015 21:14:00 +0000 (22:14 +0100)]
[master] Copyright year updated, ChangeLog entry for release added.
Marcin Siodelski [Wed, 18 Feb 2015 20:05:05 +0000 (21:05 +0100)]
[master] Added missing extra dists in the doc/devel.
Wlodek Wencel [Wed, 18 Feb 2015 19:54:29 +0000 (20:54 +0100)]
[master] resolved conflict
Wlodek Wencel [Wed, 18 Feb 2015 19:51:16 +0000 (20:51 +0100)]
[master] minor changes in kea-guide
Wlodek Wencel [Wed, 18 Feb 2015 19:45:29 +0000 (20:45 +0100)]
[master] minor changes in kea-guide
Tomek Mrugalski [Wed, 18 Feb 2015 19:44:58 +0000 (20:44 +0100)]
[master] Unfortunate paragraph about config validation removed.
Tomek Mrugalski [Wed, 18 Feb 2015 19:40:35 +0000 (20:40 +0100)]
[master] Missing developer guide sources are now in dist
Tomek Mrugalski [Wed, 18 Feb 2015 19:28:35 +0000 (20:28 +0100)]
[master] Added hooks.xml to DOCBOOK
Tomek Mrugalski [Wed, 18 Feb 2015 19:07:04 +0000 (20:07 +0100)]
Merge branch 'master' of ssh://git.kea.isc.org/git/kea
Tomek Mrugalski [Wed, 18 Feb 2015 19:06:28 +0000 (20:06 +0100)]
[master] Missing dhcpdb_create_1.0.mysql added to EXTRA_DIST
Wlodek Wencel [Wed, 18 Feb 2015 19:01:15 +0000 (20:01 +0100)]
[master] user guide copyright date update
Tomek Mrugalski [Wed, 18 Feb 2015 16:02:20 +0000 (17:02 +0100)]
[master] fix for Mac OS in IOAddress unit-tests
Marcin Siodelski [Wed, 18 Feb 2015 14:58:04 +0000 (15:58 +0100)]
[master] Fix for error on long literals on 32-bit systems.
Marcin Siodelski [Wed, 18 Feb 2015 13:12:53 +0000 (14:12 +0100)]
[master] Added Changelog for #3711.
Marcin Siodelski [Wed, 18 Feb 2015 12:08:43 +0000 (13:08 +0100)]
[master] Merge branch 'trac3711'
Conflicts:
src/lib/asiolink/io_address.h
src/lib/asiolink/tests/io_address_unittest.cc
Marcin Siodelski [Wed, 18 Feb 2015 11:57:38 +0000 (12:57 +0100)]
[3711] Simplify the logic in the IOAddress::substract.
Wlodek Wencel [Wed, 18 Feb 2015 11:44:38 +0000 (12:44 +0100)]
[master] AUTHORS file update
Wlodek Wencel [Wed, 18 Feb 2015 11:43:48 +0000 (12:43 +0100)]
[master] reordering *.mes files
Tomek Mrugalski [Wed, 18 Feb 2015 11:29:00 +0000 (12:29 +0100)]
[3711] Changes after review:
- IOAddress::increase() simplified
- getLeasesCount renamed to getPoolCapacity
- removed several intermediate variables
Tomek Mrugalski [Wed, 18 Feb 2015 10:35:46 +0000 (11:35 +0100)]
[3711] Changes after first part of the review:
- increaseAddress renamed to increase
- check that addrsInRange throw when max < min
- C++ style casts, consts added
- check that a can be subtracted from b, when a>b
- documentation for IOAddress::increase, subtract improved
- couple unnecessary intermediate objects removed
Wlodek Wencel [Tue, 17 Feb 2015 22:05:31 +0000 (23:05 +0100)]
[master] fixing example conf files
Wlodek Wencel [Tue, 17 Feb 2015 17:10:58 +0000 (18:10 +0100)]
Merge branch 'master' of ssh://git.kea.isc.org/git/kea
Wlodek Wencel [Tue, 17 Feb 2015 17:10:33 +0000 (18:10 +0100)]
[master] typos and numbering error fixed
Marcin Siodelski [Tue, 17 Feb 2015 16:56:26 +0000 (17:56 +0100)]
[master] Added ChangeLog entry for #3672.
Marcin Siodelski [Tue, 17 Feb 2015 16:54:52 +0000 (17:54 +0100)]
[master] Merge branch 'trac3672'
Tomek Mrugalski [Tue, 17 Feb 2015 16:38:51 +0000 (17:38 +0100)]
[3711] Copyright years updated.