]>
git.ipfire.org Git - thirdparty/kea.git/log
Marcin Siodelski [Wed, 27 Apr 2016 13:34:33 +0000 (15:34 +0200)]
[4303] Address second round of review comments.
- No additional check for HR mode in findReservations
- Additional commentary in the loop collecting host ids.
Thomas Markwalder [Wed, 27 Apr 2016 11:41:47 +0000 (07:41 -0400)]
[4303] Added commentary in dhcp4_srv.h
Marcin Siodelski [Wed, 27 Apr 2016 07:22:29 +0000 (09:22 +0200)]
[4303] Addressed remaining review comments.
Marcin Siodelski [Tue, 26 Apr 2016 15:18:45 +0000 (17:18 +0200)]
[4303] Renamed CfgHostReservations to CfgHostOperations.
This change was suggested during a ticket review.
Marcin Siodelski [Thu, 14 Apr 2016 12:40:55 +0000 (14:40 +0200)]
[4303] Values in 'host-reservation-identifiers' used by the servers.
Both DHCPv4 and DHCPv6.
Marcin Siodelski [Thu, 14 Apr 2016 09:35:47 +0000 (11:35 +0200)]
[4303] Implemented parser for 'host-reservation-identifiers' list.
Marcin Siodelski [Wed, 13 Apr 2016 10:23:14 +0000 (12:23 +0200)]
[4303] Added class holding configuration of host identifiers.
The identifiers are held on an ordered list and the server will
use them to search for host reservations for each client using
this order.
Marcin Siodelski [Wed, 13 Apr 2016 06:56:28 +0000 (08:56 +0200)]
[4303] Servers now search for host reservations using any identifier.
Marcin Siodelski [Tue, 12 Apr 2016 11:03:12 +0000 (13:03 +0200)]
[master] Added ChangeLog entry for pull request #19.
Marcin Siodelski [Tue, 12 Apr 2016 10:29:16 +0000 (12:29 +0200)]
[master] Merge branch 'github19'
Marcin Siodelski [Tue, 12 Apr 2016 10:27:36 +0000 (12:27 +0200)]
[github19] Updated AUTHORS file.
Added Angelo as contributor.
Marcin Siodelski [Mon, 11 Apr 2016 12:47:28 +0000 (14:47 +0200)]
[github19] Integrated pull request 19 with unit test fix.
Shawn Routhier [Fri, 8 Apr 2016 03:05:53 +0000 (20:05 -0700)]
[master] Update change log to add commit number for trac4265
Thomas Markwalder [Thu, 7 Apr 2016 11:36:52 +0000 (07:36 -0400)]
[master] Added ChangeLog entry 1104 for #4259.
Thomas Markwalder [Thu, 7 Apr 2016 11:09:59 +0000 (07:09 -0400)]
[master] DDNS parameter, replace-client-name, now supports multiple modes
Merges in trac4259.
Thomas Markwalder [Thu, 7 Apr 2016 11:05:13 +0000 (07:05 -0400)]
[4259] Address review comments, part II
Fixed minor typos.
Marcin Siodelski [Wed, 6 Apr 2016 20:21:11 +0000 (22:21 +0200)]
[master] Added ChangeLog entry for #4301.
Marcin Siodelski [Wed, 6 Apr 2016 19:50:05 +0000 (21:50 +0200)]
[master] Merge branch 'trac4301'
Shawn Routhier [Wed, 6 Apr 2016 19:27:22 +0000 (12:27 -0700)]
Merge branch 'trac4265' Access to options and constants from DHCP6 relay encapsulations
Shawn Routhier [Wed, 6 Apr 2016 18:41:53 +0000 (11:41 -0700)]
[trac4265] Update copyrights and use HOP_COUNT_LIMIT instead of hardcoded value
Marcin Siodelski [Wed, 6 Apr 2016 16:04:28 +0000 (18:04 +0200)]
[4301] Addressed review comments.
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
Stephen Morris [Wed, 6 Apr 2016 14:33:18 +0000 (15:33 +0100)]
[master] ChangeLog for trac4293
Stephen Morris [Wed, 6 Apr 2016 14:28:08 +0000 (15:28 +0100)]
[master] Merge branch 'trac4293'
Marcin Siodelski [Wed, 6 Apr 2016 13:00:12 +0000 (15:00 +0200)]
[4301] DUID and HWAddr classes use strutil to convert text to binary.
Marcin Siodelski [Wed, 6 Apr 2016 12:50:05 +0000 (14:50 +0200)]
[4301] Implemented utility functions to convert from hex strings.
The supported hex strings may have different formats:
- colon separated values,
- with '0x'prefix
- no prefix, no colons
Shawn Routhier [Wed, 6 Apr 2016 04:42:55 +0000 (21:42 -0700)]
[trac4265] update unittests to go along with token name change
Shawn Routhier [Wed, 6 Apr 2016 04:24:52 +0000 (04:24 +0000)]
[trac4265] Regenerate parser.cc and parser.h after updates
Shawn Routhier [Wed, 6 Apr 2016 03:55:42 +0000 (20:55 -0700)]
[trac4265] updates per review comments
Thomas Markwalder [Tue, 5 Apr 2016 19:31:40 +0000 (15:31 -0400)]
[4265] Removed whitespaces
Stephen Morris [Tue, 5 Apr 2016 18:03:42 +0000 (19:03 +0100)]
[4293] Correction of a typo in the dhcpsrv message file
Marcin Siodelski [Tue, 5 Apr 2016 14:23:30 +0000 (16:23 +0200)]
[4301] HostReservationParser::isIdentifierParameter belongs to parent class.
Marcin Siodelski [Fri, 1 Apr 2016 14:27:46 +0000 (16:27 +0200)]
[4301] Host configuration parser now supports circuit-id parameter.
Marcin Siodelski [Tue, 5 Apr 2016 13:54:49 +0000 (15:54 +0200)]
[master] Correcting previous change.
Replace <cstdint> with <stdint.h> because the former is C++11 only.
Marcin Siodelski [Tue, 5 Apr 2016 13:38:14 +0000 (15:38 +0200)]
[master] Added missing inclusion of <cstdint> in strutil.h.
Okayed on jabber.
Thomas Markwalder [Tue, 5 Apr 2016 13:28:27 +0000 (09:28 -0400)]
[master] Added ChangeLog entry 1100 for #4243.
Thomas Markwalder [Tue, 5 Apr 2016 12:50:20 +0000 (08:50 -0400)]
[master] Mitigate GCC 5.x optmizer issue in asiolink
Merged in trac4243.
Marcin Siodelski [Tue, 5 Apr 2016 12:31:05 +0000 (14:31 +0200)]
[master] Merge branch 'trac4300'
Marcin Siodelski [Tue, 5 Apr 2016 11:30:37 +0000 (13:30 +0200)]
[4300] Addressed review comments.
Thomas Markwalder [Mon, 4 Apr 2016 19:34:19 +0000 (15:34 -0400)]
[4243] Distcheck failure correction
Distcheck sporadically fails to clean up test_leases.csv.2
can be left behind by dhcp4 and dhcp6 testing.
src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp6/tests/Makefile.am
- Added test_leases.csv.* to CLEANFILES
Thomas Markwalder [Mon, 4 Apr 2016 19:32:57 +0000 (15:32 -0400)]
[4243] Addressed review comments
src/lib/asiolink/Makefile.am
added asio_wrapper.h to list of sources
src/lib/asiolink/asio_wrapper.h
updated commentary to include GNU/Boost bugs and
added prominent warning comment
Shawn Routhier [Mon, 4 Apr 2016 17:30:10 +0000 (10:30 -0700)]
[trac4265] Add test code, tidy up main code
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 [Thu, 31 Mar 2016 10:22:20 +0000 (12:22 +0200)]
[4300] Added "circuit-id" as supported identifier into Host class.
Marcin Siodelski [Thu, 31 Mar 2016 08:44:42 +0000 (10:44 +0200)]
[4300] Added utility function to convert string in quotes to vector.
Marcin Siodelski [Wed, 30 Mar 2016 06:59:02 +0000 (08:59 +0200)]
[4300] Host class holds identifier rather than HW address or DUID.
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.
Stephen Morris [Thu, 31 Mar 2016 20:29:59 +0000 (21:29 +0100)]
[4293] Get rid of DHCPSRV_MEMFILE_LFC_UNREGISTER_TIMER_FAILED error message during shutdown
The message may have multiple causes, a shutdown being one of
them. As the condition leading to the message is benign, the
message has been made a debug message.
Shawn Routhier [Thu, 31 Mar 2016 18:48:08 +0000 (18:48 +0000)]
[trac4265] First round of allowing access to v6 relay options via the classification code
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