]>
git.ipfire.org Git - thirdparty/kea.git/log
Thomas Markwalder [Thu, 22 Dec 2016 19:37:59 +0000 (14:37 -0500)]
[master] Added Changelog entry 1200 for 3238
Thomas Markwalder [Thu, 22 Dec 2016 19:35:46 +0000 (14:35 -0500)]
[master] kea-dhcp4/6 support libreload command
Merge branch 'trac3238'
Thomas Markwalder [Thu, 22 Dec 2016 18:38:00 +0000 (13:38 -0500)]
[5046] CommandMgr dups the connection socket prior to executing command
src/lib/config/command_mgr.cc
CommandMgr::commandReader(int sockfd) - duplicates the connection
socket to use for repsonding in case the command closes the channel.
src/lib/testutils/io_utils.cc
fileExists() - now uses stat() function so one can use it on any
type of file, like a unix socket
updated unit tests accordingly
Tomek Mrugalski [Thu, 22 Dec 2016 18:35:04 +0000 (19:35 +0100)]
[5039] getNonConst method is now const.
Tomek Mrugalski [Thu, 22 Dec 2016 18:10:07 +0000 (19:10 +0100)]
[5039] Doc updated, doxygen warnings removed.
Tomek Mrugalski [Thu, 22 Dec 2016 17:43:21 +0000 (18:43 +0100)]
[5039] Changes after review:
- address_family_, default ctor removed from two parsers
- copyright year updated
- Element::getNonConst is now documented
- user's guide is now clear about csv-format default value is now true
Andrei Pavel [Thu, 22 Dec 2016 15:47:55 +0000 (17:47 +0200)]
Repopulated Doxyfile tags
Tomek Mrugalski [Thu, 22 Dec 2016 15:36:28 +0000 (16:36 +0100)]
[5039] Element::getMutableMap implemented
Tomek Mrugalski [Thu, 22 Dec 2016 15:21:16 +0000 (16:21 +0100)]
[5039] Failing unit-tests fixed
Tomek Mrugalski [Thu, 22 Dec 2016 15:20:34 +0000 (16:20 +0100)]
[5039] SimpleParser is now split into cc/SimpleParser and SimpleParser{4,6}
Andrei Pavel [Thu, 22 Dec 2016 15:03:44 +0000 (17:03 +0200)]
Undid with-dhcp changes to changelog
Marcin Siodelski [Thu, 22 Dec 2016 14:34:15 +0000 (15:34 +0100)]
[5088] Added commentary in the header file.
Marcin Siodelski [Thu, 22 Dec 2016 14:30:53 +0000 (15:30 +0100)]
[5088] Fixed doxygen errors.
Thomas Markwalder [Thu, 22 Dec 2016 14:24:35 +0000 (09:24 -0500)]
[5046] Added documentation to the admin guide for set-config
Marcin Siodelski [Thu, 22 Dec 2016 13:51:48 +0000 (14:51 +0100)]
[5088] Proper documentation of the new HTTP classes.
Also, included a couple of modifications in the API.
Marcin Siodelski [Wed, 21 Dec 2016 21:30:17 +0000 (22:30 +0100)]
[5088] Fixed whitespace.
Marcin Siodelski [Wed, 21 Dec 2016 21:27:55 +0000 (22:27 +0100)]
[5088] Http response creator and unit tests implemented.
Marcin Siodelski [Wed, 21 Dec 2016 19:58:08 +0000 (20:58 +0100)]
[5088] Implemented date time conversions for HTTP.
Marcin Siodelski [Mon, 19 Dec 2016 18:15:03 +0000 (19:15 +0100)]
[5088] Improved HttpResponse and derived classes.
Marcin Siodelski [Mon, 19 Dec 2016 14:55:35 +0000 (15:55 +0100)]
[5088] Created HttpResponseCreator interface.
Marcin Siodelski [Fri, 16 Dec 2016 16:27:40 +0000 (17:27 +0100)]
[5088] Implemented HttpResponse and derived classes.
Tomek Mrugalski [Thu, 22 Dec 2016 10:57:32 +0000 (11:57 +0100)]
[5039] Unit-tests for SimpleParser added.
Tomek Mrugalski [Thu, 22 Dec 2016 10:55:55 +0000 (11:55 +0100)]
[5039] Simple parser moved to lib/cc
Thomas Markwalder [Wed, 21 Dec 2016 20:51:24 +0000 (15:51 -0500)]
[5046] Undo a couple of minor nits
Francis Dupont [Wed, 21 Dec 2016 15:38:36 +0000 (16:38 +0100)]
[5091] Use a switch in writeInt<> to avoid a g++ bug
Tomek Mrugalski [Tue, 20 Dec 2016 21:10:16 +0000 (22:10 +0100)]
[master] ChangeLog updated after 5017 merge
Tomek Mrugalski [Tue, 20 Dec 2016 21:08:33 +0000 (22:08 +0100)]
[master] Merge branch 'trac5017' (dhcp4 bison parser)
# Conflicts:
# doc/examples/kea4/classify.json
Tomek Mrugalski [Tue, 20 Dec 2016 21:05:57 +0000 (22:05 +0100)]
[5017] Addressed two minor comments:
- removed "Linux" from advanced.json
- corrected one typo
Francis Dupont [Tue, 20 Dec 2016 17:31:28 +0000 (17:31 +0000)]
trac5017: regen dhcp4 lexer
Francis Dupont [Tue, 20 Dec 2016 17:12:50 +0000 (17:12 +0000)]
trac5017: regen parsers
Tomek Mrugalski [Tue, 20 Dec 2016 15:25:51 +0000 (16:25 +0100)]
[5017] missing advanced.json example added
Tomek Mrugalski [Tue, 20 Dec 2016 15:25:35 +0000 (16:25 +0100)]
[5017] DHCP{4,6} parsers regenerated
Tomek Mrugalski [Tue, 20 Dec 2016 15:25:01 +0000 (16:25 +0100)]
[5017] version parameter removed from both Dhcp4 and Dhcp6 parsers
Tomek Mrugalski [Tue, 20 Dec 2016 15:16:06 +0000 (16:16 +0100)]
[5017] Parser unit-tests cleanup:
- removed almost redundant functions
- added comments
Tomek Mrugalski [Tue, 20 Dec 2016 14:54:23 +0000 (15:54 +0100)]
[5017] dhcp-socket-type is now supported
- added doc/examples/kea4/advanced.json
- unit-tests now remove comments before passing to legacy JSON parser
Tomek Mrugalski [Tue, 20 Dec 2016 13:29:52 +0000 (14:29 +0100)]
[5017] Updated regenerated dhcp4_lexer.cc
Tomek Mrugalski [Tue, 20 Dec 2016 13:27:47 +0000 (14:27 +0100)]
[5017] Revert "[5017] Fixed one unit-test."
This reverts commit
bc6502b3cafa5e2fb5eee12ca5b9286c52003491 .
Tomek Mrugalski [Tue, 20 Dec 2016 13:27:32 +0000 (14:27 +0100)]
[5017] Split slash unicode into separate test.
Francis Dupont [Mon, 19 Dec 2016 18:43:11 +0000 (19:43 +0100)]
[master] Fixed a trivial typo which does not always crash?
Tomek Mrugalski [Mon, 19 Dec 2016 18:13:16 +0000 (19:13 +0100)]
[5017] Added previously deleted dhcp6_lexer.cc
Tomek Mrugalski [Mon, 19 Dec 2016 18:04:07 +0000 (19:04 +0100)]
[5017] Fixed one unit-test.
Francis Dupont [Mon, 19 Dec 2016 17:28:49 +0000 (18:28 +0100)]
[master] Adding a comment marking readPsid & co issue origin
Francis Dupont [Mon, 19 Dec 2016 17:20:54 +0000 (18:20 +0100)]
[master] All chars are <= 127 shouts g++
Marcin Siodelski [Mon, 19 Dec 2016 16:10:17 +0000 (17:10 +0100)]
[master] Merge branch 'trac5077'
Francis Dupont [Mon, 19 Dec 2016 15:31:06 +0000 (16:31 +0100)]
[master] Commented unused arguments
Marcin Siodelski [Mon, 19 Dec 2016 13:49:01 +0000 (14:49 +0100)]
[master] Added ChangeLog entry for #5075.
Marcin Siodelski [Mon, 19 Dec 2016 13:48:05 +0000 (14:48 +0100)]
[master] Merge branch 'trac5075'
Marcin Siodelski [Mon, 19 Dec 2016 13:41:56 +0000 (14:41 +0100)]
[5077] Addressed two additional review comments.
- Type cast to char, rather than uint8_t
- Return tag in the doxygen documentation
Marcin Siodelski [Mon, 19 Dec 2016 11:04:04 +0000 (12:04 +0100)]
[5077] Provided unit test for extraneous data in the HTTP request.
Marcin Siodelski [Mon, 19 Dec 2016 10:07:17 +0000 (11:07 +0100)]
[5075] Addressed review comments and removed spurious += from Makefile.
Francis Dupont [Sun, 18 Dec 2016 08:59:12 +0000 (09:59 +0100)]
[5017] Distribute new example files
Francis Dupont [Sat, 17 Dec 2016 22:21:07 +0000 (23:21 +0100)]
[5017] Added parser_context_decl.h to *_SOURCES for distcheck
Francis Dupont [Sat, 17 Dec 2016 14:56:56 +0000 (14:56 +0000)]
trac5017: regen parser
Francis Dupont [Sat, 17 Dec 2016 14:51:22 +0000 (15:51 +0100)]
[5017] Finished config_parser_unittest.cc files
Francis Dupont [Sat, 17 Dec 2016 12:11:44 +0000 (13:11 +0100)]
[5017] More parseDHCP4 (unfinished)
Francis Dupont [Sat, 17 Dec 2016 00:05:26 +0000 (01:05 +0100)]
[5017] Some fixes (including a not yet detected error in classify CONFIG[0]) using parser
Francis Dupont [Fri, 16 Dec 2016 22:17:48 +0000 (23:17 +0100)]
[5017] Fixed port from dhcp6
Francis Dupont [Fri, 16 Dec 2016 22:02:12 +0000 (23:02 +0100)]
[5017] 6->4 in comments
Francis Dupont [Fri, 16 Dec 2016 21:53:23 +0000 (22:53 +0100)]
[5017] 6->4 in comments
Francis Dupont [Fri, 16 Dec 2016 21:31:28 +0000 (22:31 +0100)]
[5017] 6->4 in a comment
Francis Dupont [Fri, 16 Dec 2016 21:24:19 +0000 (22:24 +0100)]
[5017] Swapped Dhcp[46] tokens
Tomek Mrugalski [Fri, 16 Dec 2016 17:58:06 +0000 (18:58 +0100)]
[5017] dhcp4_lexer.cc regenerated.
Tomek Mrugalski [Fri, 16 Dec 2016 17:57:48 +0000 (18:57 +0100)]
[5017] Examples for echo-client-id and match-client-id added.
Tomek Mrugalski [Fri, 16 Dec 2016 17:47:27 +0000 (18:47 +0100)]
[5017] flex/bison files regenerated
Tomek Mrugalski [Fri, 16 Dec 2016 17:45:14 +0000 (18:45 +0100)]
[5017] 4o6-interface-id support implemented
Tomek Mrugalski [Fri, 16 Dec 2016 17:33:23 +0000 (18:33 +0100)]
[5017] Support for several v4 specific keywords implemented:
- next-server, server-hostname, boof-file-name, echo-client-id,
match-client-id
Thomas Markwalder [Fri, 16 Dec 2016 16:02:04 +0000 (11:02 -0500)]
[5046] Added set-config command handler test to dhcp4 unit tests
Francis Dupont [Fri, 16 Dec 2016 13:15:57 +0000 (14:15 +0100)]
[5077] Reverted not trivial auto
Tomek Mrugalski [Fri, 16 Dec 2016 12:25:51 +0000 (13:25 +0100)]
[5017] Copyright years updated.
Francis Dupont [Fri, 16 Dec 2016 12:01:55 +0000 (13:01 +0100)]
[5077] Added lambda (and auto as a side effect) C++ feature check
Francis Dupont [Fri, 16 Dec 2016 11:49:04 +0000 (12:49 +0100)]
[5077] indent
Francis Dupont [Fri, 16 Dec 2016 11:43:19 +0000 (12:43 +0100)]
[5077] Replaced auto
Francis Dupont [Thu, 15 Dec 2016 23:14:46 +0000 (00:14 +0100)]
[5077] Fixed LDADDs
Francis Dupont [Thu, 15 Dec 2016 23:11:02 +0000 (00:11 +0100)]
[5077] spelling & co (i.e., only cosmetics)
Francis Dupont [Thu, 15 Dec 2016 23:00:03 +0000 (00:00 +0100)]
[5075] Fixed LDADDs
Francis Dupont [Thu, 15 Dec 2016 21:46:06 +0000 (22:46 +0100)]
[5077] reindent
Thomas Markwalder [Thu, 15 Dec 2016 21:15:26 +0000 (16:15 -0500)]
[5046] Move apply logging and config commit from processConfig to set-config handler
src/bin/dhcp4/ctrl_dhcp4_srv.cc
commandConfigReloadHandler() - use commandSetConfigHandler()
instead of processConfig() to account for logging config
commandSetConfigHandler() - apply logging config and commit config here instead of
in processConfig()
src/bin/dhcp4/tests/dhcp4_test_utils.h
~NakedDhcpv4Srv() - removed unecesary initLogger call
src/bin/dhcp4/tests/kea_controller_unittest.cc
~JSONFileBackendTest() - removed unecessary call to setDefaultLogging
src/bin/dhcp6/ctrl_dhcp6_srv.cc
commandConfigReloadHandler() - use commandSetConfigHandler()
instead of processConfig() to account for logging config
commandSetConfigHandler() - apply logging config and commit config here instead of
in processConfig()
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
createUnixChannelServer() - added config commit so command channel behavior
is correct
TEST_F(CtrlDhcpv6SrvTest, configReload)
Wrap configuration in Dhcp6 element
TEST_F(CtrlChannelDhcpv6SrvTest, set_config)
Turn off timers in config
src/lib/dhcpsrv/srv_config.cc
SrvConfig::applyLoggingCfg() - remove logic added to not call manager.process
when there are no specs.
Francis Dupont [Thu, 15 Dec 2016 21:13:01 +0000 (22:13 +0100)]
[5075] spelling
Francis Dupont [Thu, 15 Dec 2016 20:49:33 +0000 (21:49 +0100)]
[5075] spelling
Francis Dupont [Thu, 15 Dec 2016 20:21:25 +0000 (21:21 +0100)]
[3238] spelling
Tomek Mrugalski [Thu, 15 Dec 2016 16:57:24 +0000 (17:57 +0100)]
[master] ChangeLog updated.
Tomek Mrugalski [Thu, 15 Dec 2016 15:54:01 +0000 (16:54 +0100)]
[5017] Added generated flex/bison files.
Tomek Mrugalski [Thu, 15 Dec 2016 15:53:35 +0000 (16:53 +0100)]
[5017] Doc updated, doxygen warnings removed.
Andrei Pavel [Thu, 15 Dec 2016 15:49:43 +0000 (17:49 +0200)]
Added KEA_CXXFLAGS to all components
In order to compile all libraries with the same compiler flags.
Tomek Mrugalski [Thu, 15 Dec 2016 14:21:47 +0000 (15:21 +0100)]
[5072] Two small corrections in example configs.
Tomek Mrugalski [Thu, 15 Dec 2016 14:05:56 +0000 (15:05 +0100)]
[5072] lfc-interval has been added to the example configs.
Andrei Pavel [Thu, 15 Dec 2016 13:05:18 +0000 (15:05 +0200)]
Upgraded Docbook from v4.2 to v5.0
Used script http://docbook.org/xml/5.0/tools/db4-upgrade.xsl as
specified in the installation documentation at
http://tdg.docbook.org/tdg/5.0/appa.html.
Andrei Pavel [Thu, 15 Dec 2016 09:00:32 +0000 (11:00 +0200)]
Merge branch 'cassandra-host-data-source-stress-test' of https://github.com/andreipavelQ/kea into cassandra-host-data-source-stress-test
Andrei Pavel [Thu, 15 Dec 2016 08:59:15 +0000 (10:59 +0200)]
Added missing message
Andrei Pavel [Thu, 15 Dec 2016 08:15:01 +0000 (10:15 +0200)]
Added a missing message
Tomek Mrugalski [Wed, 14 Dec 2016 23:17:56 +0000 (00:17 +0100)]
[5017] The new parser is now being used.
Tomek Mrugalski [Wed, 14 Dec 2016 23:15:49 +0000 (00:15 +0100)]
[5017] Dhcp4 bison parser implemented.
Razvan Becheriu [Wed, 14 Dec 2016 17:18:47 +0000 (19:18 +0200)]
added missing changes
Razvan Becheriu [Wed, 14 Dec 2016 17:16:56 +0000 (19:16 +0200)]
added missing changes
Marcin Siodelski [Wed, 14 Dec 2016 16:43:22 +0000 (17:43 +0100)]
[5077] Removed extraneous state transitions in HTTP request parser.
Andrei Pavel [Wed, 14 Dec 2016 15:18:42 +0000 (17:18 +0200)]
Merge branch 'cassandra-host-data-source' of https://github.com/andreipavelQ/kea into cassandra-host-data-source
Andrei Pavel [Wed, 14 Dec 2016 15:13:36 +0000 (17:13 +0200)]
Merge branch 'cassandra-host-data-source' into cassandra-host-data-source-stress-test
Andrei Pavel [Wed, 14 Dec 2016 13:54:32 +0000 (15:54 +0200)]
Cassandra Host Data Source
Added src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh to include host_reservations table in Cassandra.
Updated documentation to indicate that Cassandra now supports host reservations.
Added src/lib/dhcpsrv/cql_host_data_source.cc and cql_host_data_source.h.
Fixed a bug in CfgOption::mergeInternal() where formatted_value_ was not taken into consideration when merging, this is needed for merging the denormalized results on host retrieval in Cassandra. The method is not used elsewhere so there is no regression impact.
Added Cassandra support in HostDataSourceFactory.
Implemented a todo in mysql_host_data_source.cc
Added cql_host_data_source_unittest.cc
Functionality that Cassandra is not capable of like ORDER BY clause is
adjusted in generic_host_data_source_unittest.cc.
Andrei Pavel [Wed, 14 Dec 2016 12:47:57 +0000 (14:47 +0200)]
Cassandra update
Replaced unrecommended backticks with $() in cql_version() in bash scripts.
*_execute() and *_execute_script() functions from src/bin/admin/admin-utils.sh now pass the parameters to the underlying backend binary whenever they are given rather than when there are 2 or more.
Corrected cql_version() return error in src/bin/admin/admin-utils.sh.
Removed redundant "USE" from cql_init() in src/bin/admin/kea-admin.in.
Inserted a newline in src/bin/admin/tests/Makefile.am to separate unrelated targets.
Style changes in cql_*_test() functions in src/bin/admin/tests/cql_tests.sh.in.
src/bin/admin/tests/dhcpdb_create_1.0.cql:
"perfromance" typo
Added comment headers
Added index on expire since it is used in WHERE clauses (further performance testing may be required)
Removed dhcp4_options and dhcp6_options table since they are not required for Cassandra
Added DROP INDEX in src/share/database/scripts/cql/dhcpdb_drop.cql.
Added sql_common.h
Added cql_exchange.h and cql_exchange.cc which mediate communication with Cassandra.
Added cql_lease_mgr.h and cql_lease_mgr.cc
Parameterized reconnect-wait-time, connect-timeout, request-timeout, tcp-keepalive, tcp-nodelay for Cassandra in kea.conf. Changes are in src/lib/dhcpsrv/cql_connection.cc and src/lib/dhcpsrv/parsers/dbaccess_parser.cc.
Reformated x != NULL into !x as specified in the Kea style guidelines
src/lib/dhcpsrv/cql_connection.cc:
Added range check for port
Added CqlConnection:setConsistency
Added CqlConnection::startTransaction which is a noop
Added CqlTransaction method implementations.
Corrected ending brace of namespace declaration, it doesn't need semicolon.
src/lib/dhcpsrv/cql_connection.h:
Added explicit on CqlConnection constructor. Unlikely that this class will ever be derived, but it's good practice.
Changed some comments.
Added CqlTransaction class definition.
src/lib/dhcpsrv/cql_lease_mgr.cc:
Formatted the entire code.
Changed data types to cass_ types.
Added some log messages.
Moved structs, enums and typedefs from src/lib/dhcpsrv/lease_mgr.h to src/lib/dhcpsrv/sql_common.h
Added some missing tests in src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
Andrei Pavel [Wed, 14 Dec 2016 14:58:39 +0000 (16:58 +0200)]
--with-dhcp-backend -> --with-backend