]>
git.ipfire.org Git - thirdparty/kea.git/log
Thomas Markwalder [Thu, 7 Apr 2016 11:05:13 +0000 (07:05 -0400)]
[4259] Address review comments, part II
Fixed minor typos.
Thomas Markwalder [Wed, 6 Apr 2016 15:41:38 +0000 (11:41 -0400)]
[4259] Addressed review comments
Moved string/enum conversion functions inside D2ClientConfig
Changed underscores to hypens in replace-client-name values and changed
all literal values to lower case.
Fixed minor wording issues in admin guide and new log messages.
Added commentary and extra error logging to unit tests
Added test case for invalid value of replace-client-name
Thomas Markwalder [Mon, 4 Apr 2016 11:24:16 +0000 (07:24 -0400)]
[4259] Updated admin guide and spec files
Revamped discussion of FQDN name generation and use of the
replace-client-name parameter in the v4 and v6 guides.
Thomas Markwalder [Mon, 4 Apr 2016 11:21:43 +0000 (07:21 -0400)]
[4259] kea-dhcp6 now supports replace-client-name modes
src/bin/dhcp6/dhcp6_messages.mes
- Added new log message, DHCP6_DDNS_SUPPLY_FQDN
src/bin/dhcp6/dhcp6_srv.cc
- Dhcpv6Srv::processClientFqdn() - modified to support the name
replacement modes
src/bin/dhcp6/tests/fqdn_unittest.cc
- FqdnDhcpv6SrvTest::testReplaceClientNameMode() new method which tests
a server's handling of a single client packet for a given
replace-client-name mode.
- TEST_F(FqdnDhcpv6SrvTest, replaceClientNameModeTest) - new test which
exercises the permutations of client packets and replace-client-name
modes.
Thomas Markwalder [Mon, 4 Apr 2016 11:19:55 +0000 (07:19 -0400)]
[4259] kea-dhcp4 now supports replace-client-name modes
src/bin/dhcp4/dhcp4_messages.mes
- Added new log message DHCP4_SUPPLY_HOSTNAME
src/bin/dhcp4/dhcp4_srv.cc
- Dhcpv4Srv::processClientName() - pushed lack of host option in the
client request down into processHostoption()
- Dhcpv4Srv::processHostnameOption() - modified to support the new name
replacement modes
src/bin/dhcp4/tests/fqdn_unittest.cc
- NameDhcpv4SrvTest:: testReplaceClientNameMode() - new method which
tests a server's handling of a single client packet for a given
replace-client-name mode.
- TEST_F(NameDhcpv4SrvTest, replaceClientNameModeTest) - new test which
exercises the permutations of client packets and replace-client-name
modes.
Thomas Markwalder [Mon, 4 Apr 2016 11:18:24 +0000 (07:18 -0400)]
[4259] Converted replace-client-name from boolean to enumeration
The D2 client configuration parameter, replace-client-name, was
changed from a boolean, to an enumerated list of modes:
"NEVER" - do not alter or supply the client name
"ALWAYS" - always replace the client name, or supply it if
not sent by the client
"WHEN_PRESENT" - replace the client name sent by the client,
do not supply one otherwise
"WHEN_NOT_PRESENT" - supply the client name only if one was
not sent by the client
src/lib/dhcpsrv/d2_client_cfg.cc
src/lib/dhcpsrv/d2_client_cfg.h
Added the D2ClientConfig::ReplaceClientNameMode enumeration.
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
- Alter replace-client-name parsing to parse the mode labels.
- Maps boolean literals true and false to RCM_WHEN_PRESENT and
RCM_NEVER respectively
src/bin/dhcp4/dhcp6_srv.cc
src/bin/dhcp4/dhcp4_srv.cc
src/lib/dhcpsrv/d2_client_mgr.h
- Adapted to use the enumeration
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp6/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
src/lib/dhcpsrv/tests/d2_client_unittest.cc
src/lib/dhcpsrv/tests/d2_udp_unittest.cc
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
- Alter existing tests to use the enumeration. Note false was replaced
with RCM_NEVER and true with RCM_WHEN_PRESENT
Thomas Markwalder [Mon, 4 Apr 2016 11:16:09 +0000 (07:16 -0400)]
[4259] Add unit tests to ensure StringParser can parse booleans
Added checks to ensure that StringParser can handle being given
a boolean literal (i.e. unquoted true or false)
Marcin Siodelski [Mon, 4 Apr 2016 08:49:45 +0000 (10:49 +0200)]
[master] Added ChangeLog entry for #4302.
Marcin Siodelski [Mon, 4 Apr 2016 07:50:56 +0000 (09:50 +0200)]
[master] Merge branch 'trac4302_rebase'
Marcin Siodelski [Fri, 1 Apr 2016 15:44:32 +0000 (17:44 +0200)]
[4302] Address further review comments.
- cppcheck issues
- Unique index for prefix and prefix length.
Marcin Siodelski [Fri, 1 Apr 2016 07:49:06 +0000 (09:49 +0200)]
[4302] Additional indexes added to search for hosts in MySQL.
Marcin Siodelski [Thu, 31 Mar 2016 17:32:00 +0000 (19:32 +0200)]
[4302] MySQL database upgraded to version 4.2.
- Added new table host_identifier_type
- Added foreign key on hosts table referencing
host_identifier_type
- Indexes on hosts table are now unique
Marcin Siodelski [Thu, 31 Mar 2016 11:45:44 +0000 (13:45 +0200)]
[4302] Addressed review comments.
- Rename GET_HOST_HWADDR_DUID to GET_HOST_DHCPID
- Fixes and clarifications in doxygen documentation
Marcin Siodelski [Tue, 29 Mar 2016 14:26:18 +0000 (16:26 +0200)]
[4302] Use new functions to retrieve reservations by any identifier.
Marcin Siodelski [Thu, 10 Mar 2016 13:13:07 +0000 (14:13 +0100)]
[4302] Refactored host data source classes.
The updated API exposes functions which retrieve hosts
by any identifier and identifier type, rather than DUID
or HW address.
Marcin Siodelski [Thu, 24 Mar 2016 11:34:43 +0000 (12:34 +0100)]
[master] Eliminate doxygen warnings after #4212 and #3696.
Committing on my discretion and with no objections on jabber.
Marcin Siodelski [Thu, 24 Mar 2016 10:46:57 +0000 (11:46 +0100)]
[master] Added ChangeLog entry for #4212.
Francis Dupont [Wed, 23 Mar 2016 15:47:29 +0000 (16:47 +0100)]
[master] Updated git hash
Francis Dupont [Wed, 23 Mar 2016 15:46:35 +0000 (16:46 +0100)]
[master] Finished merge of trac4267 (final run_one())
Francis Dupont [Wed, 23 Mar 2016 15:42:21 +0000 (16:42 +0100)]
[master] Merged trac4267 (final run_one())
Francis Dupont [Wed, 23 Mar 2016 15:39:44 +0000 (16:39 +0100)]
[4267] Addressed comments
Thomas Markwalder [Wed, 23 Mar 2016 14:54:20 +0000 (10:54 -0400)]
[master] Added ChangeLog entry 1096 for Trac 4316
Thomas Markwalder [Wed, 23 Mar 2016 14:34:11 +0000 (10:34 -0400)]
[master] Primary lease events now log at INFO level
Merges in branch 'trac4316'
Marcin Siodelski [Wed, 23 Mar 2016 12:51:55 +0000 (13:51 +0100)]
[master] Merge branch 'trac4212'
Thomas Markwalder [Wed, 23 Mar 2016 12:28:29 +0000 (08:28 -0400)]
[4316] Changed primary lease event logging from DEBUG to INFO
src/bin/dhcp4/dhcp4_messages.mes
- Replaced the word "debug" with "informational" where appropriate
src/bin/dhcp4/dhcp4_srv.cc
- Changed several lease4_logger messages from DEBUG to INFO
DHCP4_INIT_REBOOT
DHCP4_LEASE_ADVERT
DHCP4_LEASE_ALLOC
DHCP4_RELEASE
DHCP4_DECLINE_LEASE
src/bin/dhcp6/dhcp6_messages.mes
- Replaced the word "debug" with "informational" where appropriate
- Added two new messages:
DHCP6_LEASE_RENEW
DHCP6_PD_LEASE_RENEW
src/bin/dhcp6/dhcp6_srv.cc
- Changed several lease6_logger messages from DEBUG to INFO
DHCP6_LEASE_ADVERT
DHCP6_LEASE_ALLOC
DHCP6_PD_LEASE_ADVERT
DHCP6_PD_LEASE_ALLOC
DHCP6_RELEASE_NA
DHCP6_RELEASE_PD
DHCP6_DECLINE_LEASE
- Dhcpv6Srv::extendIA_NA() - added new log for DHCP6_LEASE_RENEW
- Dhcpv6Srv::extendIA_PD() - added new log for DHCP6_PD_LEASE_RENEW
Marcin Siodelski [Wed, 23 Mar 2016 11:07:50 +0000 (12:07 +0100)]
[4212] Addressed review comments.
Francis Dupont [Tue, 22 Mar 2016 16:49:45 +0000 (17:49 +0100)]
[master] Updated git hash
Francis Dupont [Tue, 22 Mar 2016 16:48:50 +0000 (17:48 +0100)]
[master] Finished merge of trac4326 (small Coverity fixes)
Francis Dupont [Tue, 22 Mar 2016 16:46:40 +0000 (17:46 +0100)]
[master] Merged trac4326 (small Coverity fixes)
Francis Dupont [Tue, 22 Mar 2016 16:45:19 +0000 (17:45 +0100)]
[4326] Changed ULL by an inline cast
Francis Dupont [Tue, 22 Mar 2016 16:31:30 +0000 (17:31 +0100)]
[4326] untabified
Marcin Siodelski [Mon, 21 Mar 2016 22:57:03 +0000 (23:57 +0100)]
[master] Added ChangeLog entry for #4339.
Marcin Siodelski [Mon, 21 Mar 2016 22:45:30 +0000 (23:45 +0100)]
[master] Merge branch 'trac4339a'
Francis Dupont [Mon, 21 Mar 2016 21:45:33 +0000 (22:45 +0100)]
[4339a] grammar
Marcin Siodelski [Mon, 21 Mar 2016 18:17:28 +0000 (19:17 +0100)]
[4339] Addressed review comments.
- Replace rand() with random()
- Use i++ rather than ++i
Francis Dupont [Mon, 21 Mar 2016 14:49:31 +0000 (15:49 +0100)]
[master] Updated git hash
Francis Dupont [Mon, 21 Mar 2016 14:48:57 +0000 (15:48 +0100)]
[master] Finished merge of trac4306 (overflow in pkt4::set{File,Name}())
Francis Dupont [Mon, 21 Mar 2016 14:46:24 +0000 (15:46 +0100)]
[master] Merged trac4306 (overflow in pkt4::set{File,Name}())
Francis Dupont [Mon, 21 Mar 2016 14:41:51 +0000 (15:41 +0100)]
[4306] Added comments about uninitilaized too big arrays
Marcin Siodelski [Mon, 21 Mar 2016 13:07:04 +0000 (14:07 +0100)]
[4339] Fixed issues with hostname generation in new unit test.
Marcin Siodelski [Mon, 21 Mar 2016 11:28:02 +0000 (12:28 +0100)]
[4339] Corrected issues with updating lease indexes in Memfile.
Tomek Mrugalski [Thu, 10 Mar 2016 10:49:32 +0000 (11:49 +0100)]
[4339] Unit-test for updating lease indexes implemented.
Also updated tests for Lease6::toText function.
Francis Dupont [Sat, 19 Mar 2016 16:46:37 +0000 (17:46 +0100)]
Francis Dupont [Sat, 19 Mar 2016 16:42:56 +0000 (17:42 +0100)]
[4326] Fixed CID 132738[1-4]
Francis Dupont [Sat, 19 Mar 2016 15:54:03 +0000 (16:54 +0100)]
[4306] Added/improved unit tests
Marcin Siodelski [Fri, 18 Mar 2016 14:18:33 +0000 (15:18 +0100)]
[master] Removed linking with gtest in libdhcpsrvtest.
This change was okayed on jabber by Thomas. The issue
occurred when static linking was enabled on OSX.
Linking a static lib from statically linked lib causes
various issues and isn't generally considered a good
idea.
Marcin Siodelski [Fri, 18 Mar 2016 11:49:30 +0000 (12:49 +0100)]
[master] Added ChangeLog entry for #4319.
Marcin Siodelski [Fri, 18 Mar 2016 11:32:17 +0000 (12:32 +0100)]
[master] Merge branch 'trac4319'
Marcin Siodelski [Fri, 18 Mar 2016 11:30:48 +0000 (12:30 +0100)]
[4319] Updated comments for empty options in host tests.
Francis Dupont [Fri, 18 Mar 2016 10:35:58 +0000 (11:35 +0100)]
[master] Updated git hash
Francis Dupont [Fri, 18 Mar 2016 10:34:06 +0000 (11:34 +0100)]
[master] Finished merge of trac4307 (uncaught exception in d2 and other server main())
Francis Dupont [Fri, 18 Mar 2016 10:29:46 +0000 (11:29 +0100)]
[master] Merged trac4307 (uncaught exception in d2 server main())
Francis Dupont [Fri, 18 Mar 2016 10:12:03 +0000 (11:12 +0100)]
[master] Updated git hash
Francis Dupont [Fri, 18 Mar 2016 10:10:33 +0000 (10:10 +0000)]
[master] regen flex/bison
Francis Dupont [Fri, 18 Mar 2016 10:09:15 +0000 (11:09 +0100)]
[master] Fixing some .gitignore
Francis Dupont [Fri, 18 Mar 2016 10:04:02 +0000 (11:04 +0100)]
[master] Finished merge of trac4232a (IP address literal)
Marcin Siodelski [Thu, 17 Mar 2016 18:02:44 +0000 (19:02 +0100)]
[4319] Addressed some review comments.
- use unsigned int in for loops
- NULL pointer rather than NULL in function descriptions
Thomas Markwalder [Thu, 17 Mar 2016 17:09:36 +0000 (13:09 -0400)]
[master] Fixed Coverity issue in alloc_engine.cc
Merged in Trac #4309.
Shawn Routhier [Thu, 17 Mar 2016 14:38:28 +0000 (07:38 -0700)]
[trac4309] Fix some typos
Shawn Routhier [Wed, 16 Mar 2016 19:13:12 +0000 (12:13 -0700)]
[trac4232a] Typo in the classify text
Francis Dupont [Wed, 16 Mar 2016 13:42:20 +0000 (14:42 +0100)]
[master] Updated git hash (and regen flex/bison)
Francis Dupont [Wed, 16 Mar 2016 13:40:31 +0000 (13:40 +0000)]
regen flex/bison
Francis Dupont [Wed, 16 Mar 2016 13:35:02 +0000 (14:35 +0100)]
[master] Finishing merge of trac4313 (relay4[xxx].exists)
Francis Dupont [Wed, 16 Mar 2016 13:31:58 +0000 (14:31 +0100)]
[master] Merged trac4313 (relay4[xxx].exists)
Francis Dupont [Wed, 16 Mar 2016 13:29:59 +0000 (14:29 +0100)]
[4313] spelling
Tomek Mrugalski [Wed, 16 Mar 2016 13:21:49 +0000 (14:21 +0100)]
[4313] Added parameter descriptions in two context unit-tests functions.
Francis Dupont [Wed, 16 Mar 2016 13:09:39 +0000 (14:09 +0100)]
[4232a] Addressed comments
Tomek Mrugalski [Tue, 15 Mar 2016 17:11:57 +0000 (18:11 +0100)]
[master] Merge branch 'trac4226' (Pkt4 exception clean up)
Marcin Siodelski [Tue, 15 Mar 2016 14:41:32 +0000 (15:41 +0100)]
[4319] Added additional configuration parser tests.
New test check that it is possible to specify a
non-standard option within a host declaration.
Marcin Siodelski [Tue, 15 Mar 2016 11:56:15 +0000 (12:56 +0100)]
[4319] Added new config parser unit test for DHCPv4 and DHCPv6.
These tests check that it is possible to specify options
for hosts.
Francis Dupont [Tue, 15 Mar 2016 11:53:52 +0000 (12:53 +0100)]
[master] Updated git hash
Francis Dupont [Tue, 15 Mar 2016 11:53:19 +0000 (12:53 +0100)]
[master] Finished merge of trac4310 (LOG_FATAL() double errors)
Francis Dupont [Tue, 15 Mar 2016 11:51:20 +0000 (12:51 +0100)]
[master] Merged trac4310 (LOG_FATAL() double errors)
Francis Dupont [Tue, 15 Mar 2016 11:44:51 +0000 (12:44 +0100)]
[master] Updated git hash
Francis Dupont [Tue, 15 Mar 2016 11:43:56 +0000 (12:43 +0100)]
[master] Finished merge of rac4291 (empty option vs csv-format)
Francis Dupont [Tue, 15 Mar 2016 11:41:26 +0000 (12:41 +0100)]
[master] Merged trac4291 (empty option vs csv-format)
Francis Dupont [Tue, 15 Mar 2016 11:35:01 +0000 (12:35 +0100)]
[4232a] Grammar (by Stephen)
Marcin Siodelski [Tue, 15 Mar 2016 10:01:09 +0000 (11:01 +0100)]
[4319] Extend host reservation parser to parse options.
Thomas Markwalder [Mon, 14 Mar 2016 19:07:35 +0000 (15:07 -0400)]
[4309] Fixed Coverity issue
1341466e in alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.cc
- AllocEngine::reclaimExpiredLease(const Lease6Ptr& lease,
const DbReclaimMode& reclaim_mode,
const CalloutHandlePtr& callout_handle)
Simplified logic for flagging a lease for removal. Renamed "remove_tmp"
to "remove_lease" for clarity.
- AllocEngine::reclaimExpiredLease(const Lease4Ptr& lease,
const DbReclaimMode& reclaim_mode,
const CalloutHandlePtr& callout_handle)
Simplified logic for flagging a lease for removal. Renamed "remove_tmp"
to "remove_lease" for clarity.
Francis Dupont [Mon, 14 Mar 2016 19:04:45 +0000 (20:04 +0100)]
[4326] Fixed Coverity CID
1327378 (needs a second view)
Francis Dupont [Mon, 14 Mar 2016 18:44:22 +0000 (19:44 +0100)]
[4326] Fixed Coverity CID
1232320
Francis Dupont [Mon, 14 Mar 2016 17:58:19 +0000 (18:58 +0100)]
[4326] Fixed Coverity CID
1232272
Francis Dupont [Mon, 14 Mar 2016 17:54:23 +0000 (18:54 +0100)]
[4326] Fixed Coverity CID
1232271
Francis Dupont [Sun, 13 Mar 2016 18:03:43 +0000 (19:03 +0100)]
[4326] Addressed coverity CID
1202723
Francis Dupont [Sun, 13 Mar 2016 18:01:43 +0000 (19:01 +0100)]
[4326] copyright
Francis Dupont [Sun, 13 Mar 2016 17:51:42 +0000 (18:51 +0100)]
[4326] Addressed coverity CID
1202661
Marcin Siodelski [Fri, 11 Mar 2016 12:40:46 +0000 (13:40 +0100)]
[master] Added ChangeLog entry for #3571.
Marcin Siodelski [Fri, 11 Mar 2016 12:39:03 +0000 (13:39 +0100)]
[master] Merge branch 'trac3571'
Marcin Siodelski [Fri, 11 Mar 2016 12:37:35 +0000 (13:37 +0100)]
[3571] Address review comments.
Corrected mixed up use of DHCPv4 vs DHCPv6 and the
dhcp4 vs dhcp6 option space names.
Shawn Routhier [Fri, 11 Mar 2016 03:43:13 +0000 (19:43 -0800)]
[master] Add commit number to change log entry for 4292
Shawn Routhier [Fri, 11 Mar 2016 03:41:14 +0000 (19:41 -0800)]
[master] Add comment and change log entry for 4292
Shawn Routhier [Fri, 11 Mar 2016 03:04:51 +0000 (19:04 -0800)]
Merge branch 'trac4292' Copy BOOTP flags from requets to responses
Francis Dupont [Thu, 10 Mar 2016 14:32:36 +0000 (15:32 +0100)]
[4313] Added TokenOption::getRepresention()
Francis Dupont [Thu, 10 Mar 2016 14:27:16 +0000 (15:27 +0100)]
[4313] Improved relay4[code].exists comment
Francis Dupont [Thu, 10 Mar 2016 13:57:56 +0000 (14:57 +0100)]
[4313] untabify
Francis Dupont [Thu, 10 Mar 2016 13:53:29 +0000 (14:53 +0100)]
[4313] Explained relay4 shares option representation types
Francis Dupont [Thu, 10 Mar 2016 13:46:57 +0000 (14:46 +0100)]
[4313] Added a comment about Token subtype order
Francis Dupont [Thu, 10 Mar 2016 13:38:03 +0000 (14:38 +0100)]
[4313] Added a comment about token order
Tomek Mrugalski [Wed, 9 Mar 2016 14:50:21 +0000 (15:50 +0100)]
[4212] Compilation fix
Francis Dupont [Wed, 9 Mar 2016 14:48:50 +0000 (15:48 +0100)]
[master] Updated git hash