]>
git.ipfire.org Git - thirdparty/kea.git/log
Francis Dupont [Wed, 23 May 2018 08:10:52 +0000 (10:10 +0200)]
[5488] Attached cpp-driver.rb
Thomas Markwalder [Mon, 21 May 2018 11:44:15 +0000 (07:44 -0400)]
[5488] Minor wording changes
Francis Dupont [Sat, 19 May 2018 13:37:53 +0000 (15:37 +0200)]
[5488] Updated doc
Thomas Markwalder [Wed, 16 May 2018 15:17:32 +0000 (11:17 -0400)]
[5488] Fixed syntax error in configure.ac
Variable reference needed quotes.
Francis Dupont [Fri, 4 May 2018 16:48:57 +0000 (18:48 +0200)]
[5488] Ported and fixed PR#71
Thomas Markwalder [Wed, 2 May 2018 15:17:20 +0000 (11:17 -0400)]
[master] Shared lease stats infrastructure and MemfileLeaseMgr implementation
Merges branch 'trac5585'
Marcin Siodelski [Wed, 2 May 2018 14:21:47 +0000 (16:21 +0200)]
[5585] Minor fixes as a result of the review.
- Adjusted accessors to fit the coding style
- Typos corrected
- Passing objects by reference to avoid cppcheck complaints
Marcin Siodelski [Wed, 2 May 2018 13:17:53 +0000 (15:17 +0200)]
[master] Added ChangeLog entry for #5458.
Marcin Siodelski [Wed, 2 May 2018 12:41:40 +0000 (14:41 +0200)]
[master] Merge branch 'trac5458a'
Francis Dupont [Tue, 1 May 2018 12:43:39 +0000 (14:43 +0200)]
[5458a] Added solicit with rapid-commit in to be tested comments
Marcin Siodelski [Mon, 30 Apr 2018 15:17:10 +0000 (17:17 +0200)]
[5458] CtrlDhcpv6Srv now passes network_state to dhcp6_srv_configured co.
Thomas Markwalder [Fri, 27 Apr 2018 14:03:33 +0000 (10:03 -0400)]
[master] Added ChangeLog entry 1391 for #5535
Thomas Markwalder [Fri, 27 Apr 2018 14:00:59 +0000 (10:00 -0400)]
[master] kea-dhpc4/6 now support relay ip-addresses
Merges in branch 'trac5535'
Tomek Mrugalski [Fri, 27 Apr 2018 13:24:37 +0000 (14:24 +0100)]
[5535] Minor changes after review:
- improved tests for selectSubnet
- improved hadAddresses
- reinstantiated missing unit-test description
Marcin Siodelski [Fri, 27 Apr 2018 13:02:25 +0000 (15:02 +0200)]
[5458] Removed deleted_leases from ClientContext6.
Also, declined lease is treated as new lease when calling
leases6_committed hook.
Marcin Siodelski [Fri, 27 Apr 2018 11:38:32 +0000 (13:38 +0200)]
[5458] Updated leases6_committed doc to include Rapid Commit case.
Marcin Siodelski [Fri, 27 Apr 2018 11:35:24 +0000 (13:35 +0200)]
[5458] Removed ClientContext6::committed_ flag.
Marcin Siodelski [Fri, 27 Apr 2018 09:52:45 +0000 (11:52 +0200)]
[5458] Eliminated extraneous Pkt6Ptr arguments in calls to processX funcs.
Marcin Siodelski [Fri, 27 Apr 2018 09:25:06 +0000 (11:25 +0200)]
[5458] Added a comment for processDhcpv4Query that it doesn't throw.
Marcin Siodelski [Fri, 27 Apr 2018 09:20:36 +0000 (11:20 +0200)]
[5458] Make sanityCheck call compacted.
Marcin Siodelski [Fri, 27 Apr 2018 09:06:23 +0000 (11:06 +0200)]
[5458] Dhcp6Hooks declaration is back in anonymous namespace.
Marcin Siodelski [Fri, 27 Apr 2018 09:02:19 +0000 (11:02 +0200)]
[5458] Eliminated new unit test failure due to issues with DUID file access
Tomek Mrugalski [Fri, 27 Apr 2018 06:23:52 +0000 (07:23 +0100)]
[master] ChangeLog updated.
Tomek Mrugalski [Fri, 27 Apr 2018 06:19:05 +0000 (07:19 +0100)]
[5538] User's guide corrections, makefile extended
Tomek Mrugalski [Fri, 27 Apr 2018 06:15:52 +0000 (07:15 +0100)]
[5538] Example config updated.
Tomek Mrugalski [Fri, 27 Apr 2018 06:15:16 +0000 (07:15 +0100)]
[5538] Radius example comments updated.
Francis Dupont [Thu, 26 Apr 2018 23:13:12 +0000 (01:13 +0200)]
[5538] Added secrets
Francis Dupont [Thu, 26 Apr 2018 22:54:11 +0000 (00:54 +0200)]
[5538] Merge branch 'trac5538' of ssh://git.kea.isc.org/git/kea into trac5538
Francis Dupont [Thu, 26 Apr 2018 22:53:17 +0000 (00:53 +0200)]
[5538] Added radius.json tentative RADIUS config
Tomek Mrugalski [Thu, 26 Apr 2018 21:58:06 +0000 (22:58 +0100)]
[5538] The hosts-databases entries are not needed.
Tomek Mrugalski [Thu, 26 Apr 2018 21:22:59 +0000 (22:22 +0100)]
[5538] Radius docs updated and corrected.
Tomek Mrugalski [Thu, 26 Apr 2018 21:22:24 +0000 (22:22 +0100)]
[5538] host-cache documentation written
Thomas Markwalder [Thu, 26 Apr 2018 19:13:53 +0000 (15:13 -0400)]
[5535] RelayInfo parser emits ip-address deprecation message
Tomek Mrugalski [Thu, 26 Apr 2018 19:11:22 +0000 (20:11 +0100)]
[5538] RADIUS hook documentation added.
Thomas Markwalder [Thu, 26 Apr 2018 18:42:38 +0000 (14:42 -0400)]
[5535] Updated admin guide
Thomas Markwalder [Thu, 26 Apr 2018 18:24:46 +0000 (14:24 -0400)]
[5535] kea-dhcp6 parsing now supports relay "ip-addresses"
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
Modified to support "ip-address" and
"ip-addresses" under "relay"
src/bin/dhcp6/tests/get_config_unittest.cc
Updated per process.
src/bin/dhcp6/tests/config_parser_unittest.cc
void checkResult() - modified to output parsing error text
TEST_F(Dhcp6ParserTest, subnetRelayInfo)
TEST_F(Dhcp6ParserTest, sharedNetworksDerive)
- updated to use new Network methods
TEST_F(Dhcp6ParserTest, subnetRelayInfoList) - new test
to verify a list of addresses in relay
Thomas Markwalder [Thu, 26 Apr 2018 17:54:45 +0000 (13:54 -0400)]
[5535] kea-dhcp4 parsing now supports relay "ip-addresses"
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
Modified to support "ip-address" and
"ip-addresses" under "relay"
src/bin/dhcp4/tests/get_config_unittest.cc
Updated per process.
src/bin/dhcp4/tests/config_parser_unittest.cc
void checkResult() - modified to output parsing error text
TEST_F(Dhcp4ParserTest, subnetRelayInfo)
TEST_F(Dhcp4ParserTest, classifySubnets)
- updated to use new Network methods
TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
to verify a list of addresses in relay
Thomas Markwalder [Thu, 26 Apr 2018 17:20:39 +0000 (13:20 -0400)]
[5535] RelayInfo parsing handles both ip-address and ip-addresses
src/lib/dhcpsrv/parsers/dhcp_parsers.*
RelayInfoParser::parse() - reworked to support either
ip-address or ip-addresses
RelayInfoParser::addAddress() - new parser helper method
src/lib/dhcpsrv/parsers/shared_network_parser.cc
SharedNetwork4Parser::parse()
SharedNetwork6Parser::parse()
- both now parse "relay" element (was missing)
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
Modified to support testing "relay" element parsing
Added new tests:
TEST_F(SharedNetwork4ParserTest, relayInfoTests)
TEST_F(SharedNetwork6ParserTest, relayInfoTests)
Francis Dupont [Thu, 26 Apr 2018 14:48:02 +0000 (16:48 +0200)]
[5458a] Merge branch 'trac5458a' of ssh://git.kea.isc.org/git/kea into trac5458a
Francis Dupont [Thu, 26 Apr 2018 14:47:05 +0000 (16:47 +0200)]
[5458a] Improved tests (with the plan for next steps)
Thomas Markwalder [Wed, 25 Apr 2018 18:47:21 +0000 (14:47 -0400)]
[5535] dhcpsrv now supports multiple relay addresses in RelayInfo
src/lib/dhcpsrv/network.*
Network::RelayInfo
- modified to support a list of IP addresses
- added methods:
addAddress(const asiolink::IOAddress& addr)
bool hasAddresses()
bool containsAddress(const asiolink::IOAddress& addr)
+const IOAddressList& getAddresses()
Network
- added wrapper methods for convenience:
addRelayAddress(const asiolink::IOAddress& addr)
bool hasRelays()
bool hasRelayAddress(const asiolink::IOAddress& addr)
const IOAddressList& getRelayAddresses()
- toElement() - modified to output ip-addresses list
Updated the following accordingly:
src/lib/dhcpsrv/cfg_subnets4.cc
src/lib/dhcpsrv/cfg_subnets6.cc
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/subnet.cc
src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/dhcpsrv/tests/shared_network_unittest.cc
src/lib/dhcpsrv/tests/subnet_unittest.cc
Francis Dupont [Wed, 25 Apr 2018 18:35:08 +0000 (20:35 +0200)]
[master] Updated git hash
Francis Dupont [Wed, 25 Apr 2018 18:34:16 +0000 (20:34 +0200)]
[master] Merged trac5530a doc
Francis Dupont [Wed, 25 Apr 2018 18:32:39 +0000 (20:32 +0200)]
[master] Finished merge of trac5530a (Radius accounting / dhcp6 srv configured)
Francis Dupont [Wed, 25 Apr 2018 18:29:33 +0000 (20:29 +0200)]
[master] Merged trac5530a (Radius accounting / dhcp6 srv configured
Marcin Siodelski [Wed, 25 Apr 2018 17:46:42 +0000 (19:46 +0200)]
[5458] Corrections in the descriptions of new DHCPv6 server callouts.
Francis Dupont [Wed, 25 Apr 2018 04:14:22 +0000 (06:14 +0200)]
[5458a] Checkpoint: code and main tests done, todo prefix and all v6 corner cases
Tomek Mrugalski [Wed, 25 Apr 2018 00:59:39 +0000 (01:59 +0100)]
[5530a] Documentation for dhcp6_srv_configured added.
Francis Dupont [Mon, 23 Apr 2018 15:09:08 +0000 (17:09 +0200)]
[5458a] Checkpoint: working on tests
Thomas Markwalder [Mon, 23 Apr 2018 14:08:27 +0000 (10:08 -0400)]
[master] Added ChangeLog entry 1388 for #5567
Thomas Markwalder [Mon, 23 Apr 2018 14:06:38 +0000 (10:06 -0400)]
[master] Add backward compatible support for --with-dhcp-<mysql/pgsql>
Merges in branch 'trac5567'
Thomas Markwalder [Mon, 23 Apr 2018 13:41:52 +0000 (09:41 -0400)]
[master] Added ChangeLog entry 1387 for #5115.
Thomas Markwalder [Mon, 23 Apr 2018 13:39:20 +0000 (09:39 -0400)]
[master] Remove unecessary -r command line constraints from perfdhcp
Merges in branch 'trac5115'
Tomek Mrugalski [Mon, 23 Apr 2018 10:22:07 +0000 (11:22 +0100)]
[5567] --with-pgsql,--with-mysql are now more robust
Francis Dupont [Thu, 19 Apr 2018 23:09:31 +0000 (01:09 +0200)]
[5458a] Code done, tests to do
Francis Dupont [Wed, 18 Apr 2018 21:12:27 +0000 (23:12 +0200)]
[master] Removed unused parameters (warnings)
Francis Dupont [Wed, 18 Apr 2018 16:12:19 +0000 (18:12 +0200)]
[master] Removed unused defs
Francis Dupont [Thu, 12 Apr 2018 14:07:47 +0000 (16:07 +0200)]
[5458a] Checkpoint (dhcp6 to finish - lib to do)
Thomas Markwalder [Thu, 12 Apr 2018 13:57:44 +0000 (09:57 -0400)]
[5585] v6 Memfile support complete
src/lib/dhcpsrv/memfile_lease_mgr.*
Added:
- MemfileLeaseStatsQuery6(Lease6Storage& storage6, const SubnetID& subnet_id)
- MemfileLeaseStatsQuery6(Lease6Storage& storage6, const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
- Memfile_LeaseMgr::startSubnetLeaseStatsQuery6()
- Memfile_LeaseMgr::startSubnetRangeLeaseStatsQuery6()
MemfileLeaseStatsQuery6()::start() - modified to set lower/upper bounds based
on select mode
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.*
GenericLeaseMgrTest::testLeaseStatsQuery6() - new test to check v6 variants
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
TEST_F(MemfileLeaseMgrTest, leaseStatsQuery6)
Thomas Markwalder [Thu, 12 Apr 2018 11:35:47 +0000 (07:35 -0400)]
[5585] v4 Memfile support complete
Changed subnetID parms to const refs
src/lib/dhcpsrv/memfile_lease_mgr.*
Added constructors:
- MemfileLeaseStatsQuery(const SubnetID& subnet_id)
- MemfileLeaseStatsQuery(const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
- MemfileLeaseStatsQuery4(Lease4Storage& storage4, const SubnetID& subnet_id)
- MemfileLeaseStatsQuery4(Lease4Storage& storage4, const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
MemfileLeaseStatsQuery4::start() - altered to set lower/upper iterators
based on select mode
Memfile_LeaseMgr::startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
Memfile_LeaseMgr::startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
GenericLeaseMgrTest::testLeaseStatsQuery4() - expanded to cover bad values
Francis Dupont [Thu, 12 Apr 2018 10:32:51 +0000 (12:32 +0200)]
[master] Updated git hash
Francis Dupont [Thu, 12 Apr 2018 10:31:27 +0000 (12:31 +0200)]
[master] Finishing merge of trac5495 (comment/user-context for d2 and ca)
Francis Dupont [Thu, 12 Apr 2018 10:23:34 +0000 (12:23 +0200)]
[5458a] Reported dhcp6 srv configured patch from Radius
Marcin Siodelski [Thu, 12 Apr 2018 10:15:29 +0000 (12:15 +0200)]
[master] Fixed dependency on libkea-eval in lfc and lease_cmds.
Francis Dupont [Thu, 12 Apr 2018 09:14:01 +0000 (11:14 +0200)]
[master] Removed const for an iterator used in erase
Tomek Mrugalski [Wed, 11 Apr 2018 21:12:00 +0000 (23:12 +0200)]
[master] ChangeLog, docs updated after 5543 merge.
Tomek Mrugalski [Wed, 11 Apr 2018 21:05:46 +0000 (23:05 +0200)]
[master] Merge branch 'trac5543' (leaseX-wipe for all subnets)
Tomek Mrugalski [Wed, 11 Apr 2018 21:04:15 +0000 (23:04 +0200)]
[5543] Changes after review
Francis Dupont [Wed, 11 Apr 2018 19:20:08 +0000 (21:20 +0200)]
[master] Final changes from 5374 merge
Thomas Markwalder [Wed, 11 Apr 2018 18:56:44 +0000 (14:56 -0400)]
[5585] Initial LeaseQueryStats, LeaseMgr, and MemfileLeaseMgr extensions
MemfileLeaseMgr unit tests fail for subnet and range query variants, not yet
implemented
src/lib/dhcpsrv/lease_mgr.*
LeaseStatsQuery
- Added SelectMode enum typedef
- Added instance members: first_subnet_id_, last_subnet_id_, and select_mode_
- Added constructors for single subnet and subnet range queries
LeaseMgr
Added virtual start query variants:
- startSubnetLeaseStatsQuery4(SubnetID subnet_id);
- startSubnetRangeLeaseStatsQuery4(SubnetID first, SubnetID last);
- startSubnetLeaseStatsQuery6(SubnetID subnet_id);
- startSubnetRangeLeaseStatsQuery6(SubnetID first, SubnetID last);
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.*
GenericLeaseMgrTest
- Added checkQueryAgainstRowSet()
- Added testLeaseStatsQuery4()
src/lib/dhcpsrv/tests/lease_mgr_unittest.cc
Added LeaseStatsQuery ctor tests
- TEST (LeaseStatsQueryTest, defaultCtor)
- TEST (LeaseStatsQueryTest, singleSubnetCtor)
- TEST (LeaseStatsQueryTest, subnetRangeCtor)
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
TEST_F(MemfileLeaseMgrTest, leaseStatsQuery4) {
Francis Dupont [Wed, 11 Apr 2018 15:40:52 +0000 (17:40 +0200)]
[master] Fixed merge error
Francis Dupont [Wed, 11 Apr 2018 15:35:03 +0000 (15:35 +0000)]
[master] regen flex/bison
Francis Dupont [Wed, 11 Apr 2018 15:34:08 +0000 (17:34 +0200)]
[master] Fixed merge error
Francis Dupont [Wed, 11 Apr 2018 15:18:59 +0000 (17:18 +0200)]
[master] Fixed merge errors
Francis Dupont [Wed, 11 Apr 2018 15:06:37 +0000 (17:06 +0200)]
[master] Updated git hash (note merge is not finished)
Francis Dupont [Wed, 11 Apr 2018 15:05:15 +0000 (17:05 +0200)]
[master] Finishing merge of trac5374 (new classification)
Francis Dupont [Wed, 11 Apr 2018 15:04:16 +0000 (17:04 +0200)]
[master] Fixed merge error
Francis Dupont [Wed, 11 Apr 2018 14:54:26 +0000 (16:54 +0200)]
[master] Fixed merge error
Francis Dupont [Wed, 11 Apr 2018 14:44:30 +0000 (14:44 +0000)]
[master] regen flex/bison
Francis Dupont [Wed, 11 Apr 2018 14:42:23 +0000 (16:42 +0200)]
[master] Merging trac5374 (new classification) - conflicts resolved, regen needed
Francis Dupont [Wed, 11 Apr 2018 12:57:52 +0000 (14:57 +0200)]
[5495] Added comments in get config tests (4, 6, d2, ca)
Tomek Mrugalski [Tue, 10 Apr 2018 21:56:09 +0000 (23:56 +0200)]
[5543] docs updated.
Tomek Mrugalski [Tue, 10 Apr 2018 21:50:05 +0000 (23:50 +0200)]
[5543] leaseX-wipe now allows deleting leases from all subnets.
Francis Dupont [Tue, 10 Apr 2018 16:11:17 +0000 (18:11 +0200)]
[5495] Improved the (i.e)
Francis Dupont [Tue, 10 Apr 2018 14:42:38 +0000 (16:42 +0200)]
[5374] Addressed comments
Francis Dupont [Tue, 10 Apr 2018 13:29:21 +0000 (15:29 +0200)]
[master] Merged trac5525 (Radius config)
Thomas Markwalder [Tue, 10 Apr 2018 11:43:22 +0000 (07:43 -0400)]
[master] Added ChangeLog entry 1383 for #5556.
Thomas Markwalder [Tue, 10 Apr 2018 11:40:09 +0000 (07:40 -0400)]
[master] Database reconnect now supported for MySQL lease/host back ends
Merges branch 'trac5556a'
Thomas Markwalder [Tue, 10 Apr 2018 11:23:18 +0000 (07:23 -0400)]
[5567] Re-add support for --with-dhcp-mysql and --with-dhcp-pgsql
configure.ac
Re-added support --with-dhcp-mysql and --with-dhcp-pgsql but emit a
deprecation warning message encouraging their replacement with
--with-mysql and --with-pgsql.
Thomas Markwalder [Mon, 9 Apr 2018 18:56:22 +0000 (14:56 -0400)]
[5556a] Commentary changes
Thomas Markwalder [Mon, 9 Apr 2018 18:42:42 +0000 (14:42 -0400)]
[5556a] Addressed review comments
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
LeaseMgrDbLostCallbackTest::testNoCallbackOnOpenFailure() {
- removed before hand checks for socket descriptor, grab
the most recently opend descriptor after connecting to the db
and assume its the SQL client's
- test return value of close() rather then errno
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.h
LeaseMgrDbLostCallbackTest
- constructor and destructor clear
DatabaseConnection::db_lost_callback
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
HostMgrDbLostCallbackTest
- Setup and Teardown methods clear DatabaseConnection::db_lost_callback
HostMgrDbLostCallbackTest::testDbLostCallback()
- removed before hand checks for socket descriptor, grab
the most recently opend descriptor after connecting to the db
and assume its the SQL client's
- test return value of close() rather then errno
src/lib/dhcpsrv/tests/test_utils.cc
int findLastSocketFd()
- iterate over all descriptors rather than stopping at first invalid
Marcin Siodelski [Mon, 9 Apr 2018 15:34:26 +0000 (17:34 +0200)]
[5374] Doxygen correction in client_class_def.h.
Marcin Siodelski [Mon, 9 Apr 2018 14:50:53 +0000 (16:50 +0200)]
[5374] Some corrections in the new client classification text of User Guide.
Francis Dupont [Mon, 9 Apr 2018 13:38:11 +0000 (15:38 +0200)]
[5556a] Postgresql -> PostgreSQL
Francis Dupont [Mon, 9 Apr 2018 13:35:52 +0000 (15:35 +0200)]
[5556a] Updated guide copyright
Francis Dupont [Mon, 9 Apr 2018 13:34:30 +0000 (15:34 +0200)]
[master] Finished merge of trac5491 (duplicate comment tests)
Francis Dupont [Mon, 9 Apr 2018 12:32:48 +0000 (14:32 +0200)]
[master] Finishing merge of trac5404 (port relay)
Francis Dupont [Mon, 9 Apr 2018 12:20:10 +0000 (14:20 +0200)]
[master] Finished merge of trac5480 (user context utils)
Francis Dupont [Mon, 9 Apr 2018 12:10:42 +0000 (14:10 +0200)]
[master] Merged trac5480 (user context utils)
Wlodek Wencel [Mon, 9 Apr 2018 10:47:25 +0000 (12:47 +0200)]
[master] ChangeLog renumbered