summaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [392-search-of-reservations-by-hostname] Checkpont: add new methods - tests ↵Francis Dupont2019-10-1521-8/+1212
| | | | to write
* [#35,!517] Addressed final review commentsThomas Markwalder2019-10-102-6/+6
| | | | | | src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc Fixed indentations in defaults list
* [35-local-d2-dhcp-ddns-client-config] Moved = signFrancis Dupont2019-10-101-3/+3
|
* [#35,!517] Addressed review commentsThomas Markwalder2019-10-1011-36/+24
| | | | | | | | | | | | | | | | | | | | | | Addressed a myriad of minor typos and wording issues. modified: ChangeLog doc/examples/kea4/all-keys.json doc/examples/kea6/all-keys.json doc/sphinx/arm/dhcp4-srv.rst doc/sphinx/arm/dhcp6-srv.rst src/bin/dhcp4/dhcp4_srv.cc 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/d2_unittest.cc src/bin/dhcp6/tests/fqdn_unittest.cc src/lib/dhcpsrv/alloc_engine.cc src/lib/dhcpsrv/alloc_engine.h src/lib/dhcpsrv/d2_client_cfg.h src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/srv_config.h
* [35-local-d2-dhcp-ddns-client-config] Disabled YANG checks with ↵Francis Dupont2019-10-101-2/+2
| | | | with-ddnes.json examples
* [#35,!517] Removed ddns params from INHERIT_TO_SUBNETX listsThomas Markwalder2019-10-104-1314/+3
| | | | | | | | | | | | src/bin/dhcp4/tests/get_config_unittest.cc src/bin/dhcp6/tests/get_config_unittest.cc regenerated tests src/lib/dhcpsrv/parsers/simple_parser4.cc Removed DDNS params from INHERIT_TO_SUBNET4 list src/lib/dhcpsrv/parsers/simple_parser6.cc Removed DDNS params from INHERIT_TO_SUBNET6 list
* [#35,!517] Added v6 scope testThomas Markwalder2019-10-101-24/+107
| | | | | src/bin/dhcp6/tests/fqdn_unittest.cc TEST_F(FqdnDhcpv6SrvTest, ddnsScopeTest) - new test
* [#35,!517] Rework kea-dhcp6 parsing and serverThomas Markwalder2019-10-1018-7230/+7774
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/bin/dhcp6/ctrl_dhcp6_srv.cc Removed setting D2ClientCfg fetch function src/bin/dhcp6/dhcp6_lexer.ll src/bin/dhcp6/dhcp6_parser.yy ddns-send-updates ddns-override-no-update ddns-override-client-update ddns-replace-client-name ddns-generated-prefix ddns-qualifying-suffix - added to DHCP4,SHARED_NETWORK,SUBNET4 hostname-char-set hostname-char-replacement - added to SHARED_NETWORK,SUBNET4 src/bin/dhcp6/dhcp6_srv.cc Dhcpv6Srv::processClientFqdn() Dhcpv6Srv::createNameChangeRequests() Dhcpv6Srv::updateReservedFqdn() - use cxt.getDdnsParams() src/bin/dhcp6/json_config_parser.cc configureDhcp6Server() - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters - handle new "ddns-" globals src/bin/dhcp6/tests/config_parser_unittest.cc src/bin/dhcp6/tests/fqdn_unittest.cc src/bin/dhcp6/tests/get_config_unittest.cc Updated tests
* [#35,!517] Rework kea-dhcp4 parsing and serverThomas Markwalder2019-10-1016-7071/+7359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/bin/dhcp4/ctrl_dhcp4_srv.cc Removed setting D2ClientCfg fetch function src/bin/dhcp4/dhcp4_lexer.ll src/bin/dhcp4/dhcp4_parser.yy ddns-send-updates ddns-override-no-update ddns-override-client-update ddns-replace-client-name ddns-generated-prefix ddns-qualifying-suffix - added to DHCP4,SHARED_NETWORK,SUBNET4 hostname-char-set hostname-char-replacement - added to SHARED_NETWORK,SUBNET4 src/bin/dhcp4/dhcp4_srv.cc Dhcpv4Srv::processClientFqdnOption() Dhcpv4Srv::processHostnameOption() Dhcpv4Srv::assignLease() Use scoped DdnsParams from context to make decisions, pass into D2ClientMgr functions, and supply hostname sanitizer src/bin/dhcp4/json_config_parser.cc configureDhcp4Server() - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters - handle new "ddns-" globals src/bin/dhcp4/tests/config_parser_unittest.cc src/bin/dhcp4/tests/d2_unittest.cc src/bin/dhcp4/tests/dhcp4_test_utils.cc src/bin/dhcp4/tests/fqdn_unittest.cc src/bin/dhcp4/tests/get_config_unittest.cc Updated and new tests
* [#35,!517] Added getDdnsParams() to AllocEngine::ClientContext4/6Thomas Markwalder2019-10-105-17/+76
| | | | | | | | | | | | | | | src/lib/dhcpsrv/alloc_engine.* AllocEngine::ClientContext6::getDdnsParams() AllocEngine::ClientContext4::getDdnsParams() - new methods which return a DdnsParams instance scoped by currently selected subnet Replaced direct references to context::ddns_params_ with new getter methods. src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc Removed global defaults for hostname-char-set/replacement
* [#35,!517] Changed moveDdnsParams to modify element map instead of SrvConfigThomas Markwalder2019-10-105-160/+194
| | | | | | | | | | | | | | | | | | | | Moving the parameters needs to be done before defaults are applied to the config, so moveDdnsParams was changed to modify a mutable top level element map instead of SrvConfig contents. src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc Change ddns-send-updates default to true. src/lib/dhcpsrv/srv_config.* SrvConfig::getConfiguredGlobal() - new method to fetch a global by name SrvConfig::moveDdnsParams() - changed to accept/modify a top-level Element map src/lib/dhcpsrv/tests/srv_config_unittest.cc updated unit tests accordingly
* [#35,!517] Added function to move of DDNS cfg elements to global scope to ↵Thomas Markwalder2019-10-106-4/+250
| | | | | | | | | | | | | | | SrvConfig src/lib/dhcpsrv/dhcpsrv_messages.* DHCPSRV_CFGMGR_DDNS_PARAMETER_IGNORED DHCPSRV_CFGMGR_DDNS_PARAMETER_MOVED src/lib/dhcpsrv/srv_config.* SrvConfig::moveDdnsParams() - new method to move parameters from dhcp-ddns to configured globals. src/lib/dhcpsrv/tests/srv_config_unittest.cc TEST_F(SrvConfigTest, moveDdnsParamsTest) - new test
* [#35,!517] Added hostname-char-set to hostname-char-replacement ↵Thomas Markwalder2019-10-1021-73/+463
| | | | | | | | | | | | | | | | | network/subnet scopes src/lib/dhcpsrv/d2_client_cfg.* Added hostname-char-set and hostname-char-replacement to DdnsParms DdnsParams::getHostnameSanitizer() - new function to return a sanitizer src/lib/dhcpsrv/d2_client_mgr.h D2ClientMgr::adjustDomainName() - now gets sanitizer from ddns_params src/lib/dhcpsrv/network.* src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc Added hostname-char-set and hostname-char-replacement to networks and subnets
* [#35,!517] Added fetch of scoped DDNS parameters to SrvConfigThomas Markwalder2019-10-103-5/+219
| | | | | | | | | | src/lib/dhcpsrv/srv_config.* SrvConfig::getDdnsParams() - new method to fetch scoped DDNS parameters based on a given subnet src/lib/dhcpsrv/tests/srv_config_unittest.cc TEST_F(SrvConfigTest, getDdnsParamsTest4) TEST_F(SrvConfigTest, getDdnsParamsTest6) - new tests
* [#35,!517] Added DDDNS parameters to networks,subnets, and their parsersThomas Markwalder2019-10-1015-126/+691
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/network.* Network - added DDNS parameters: Optional members, getters, setters Network::toElement() - added DDNS parameters src/lib/dhcpsrv/parsers/base_network_parser.* BaseNetworkParser::parseDdnsParams() - new method to parse DDNS parameters BaseNetworkParser::parseLifetime() - fixed unitialized variables warning src/lib/dhcpsrv/parsers/dhcp_parsers.cc Subnet4ConfigParser::initSubnet() Subnet6ConfigParser::initSubnet() - added call to parseDdnsParms(). src/lib/dhcpsrv/parsers/shared_network_parser.cc SharedNetwork4Parser::parse() SharedNetwork6Parser::parse() - added call to parseDdnsParms(). src/lib/dhcpsrv/parsers/simple_parser4.cc SimpleParser4::GLOBAL4_PARAMETERS SimpleParser4::GLOBAL4_DEFAULTS SimpleParser4::SUBNET4_PARAMETERS SimpleParser4::INHERIT_TO_SUBNET4 SimpleParser4::SHARED_NETWORK4_PARAMETERS - added DDNS parameters src/lib/dhcpsrv/parsers/simple_parser6.cc SimpleParser6::GLOBAL6_PARAMETERS SimpleParser6::GLOBAL6_DEFAULTS SimpleParser6::SUBNET6_PARAMETERS SimpleParser6::INHERIT_TO_SUBNET6 SimpleParser6::SHARED_NETWORK6_PARAMETERS - added DDNS parameters src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc src/lib/dhcpsrv/tests/network_unittest.cc src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc src/lib/dhcpsrv/tests/shared_network_unittest.cc src/lib/dhcpsrv/tests/subnet_unittest.cc Updated tests.
* [#35,!517] Removed DDNS params from D2ClientCfg and testsThomas Markwalder2019-10-108-840/+61
| | | | | | | | | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/d2_client_cfg.* D2ClientConfig - removed DDNS params src/lib/dhcpsrv/parsers/dhcp_parsers.cc D2ClientConfigParser::parse() - removed DDNS params src/lib/dhcpsrv/parsers/simple_parser4.cc SimpleParser4::GLOBAL4_PARAMETERS SimpleDefaults SimpleParser4::GLOBAL4_DEFAULTS - added DDSN params src/lib/dhcpsrv/tests/cfgmgr_unittest.cc Updated calls to D2ClientCfg ctor src/lib/dhcpsrv/tests/d2_client_unittest.cc Removed DDNS and hostname params from tests src/lib/dhcpsrv/tests/d2_udp_unittest.cc Updated calls to D2ClientCfg ctor src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc Removed DDNS and hostname params from tests
* [#35,!517] Modify D2ClientMgr functions to accept DdnsParams parameterThomas Markwalder2019-10-107-418/+447
| | | | | | | | | | | | | | | | | | | | | | | | D2ClientMgr functions now get behavior parameters from a passed in structure instead of D2ClientMgr::d2_client_config_. src/lib/dhcpsrv/d2_client_cfg.h struct DdnsParams - new structure to convey request specific (i.e.scopable) Ddns params src/lib/dhcpsrv/alloc_engine.cc src/lib/dhcpsrv/alloc_engine.h Added ddns_params_ to ClientContext4/6 src/lib/dhcpsrv/d2_client_mgr.* D2ClientMgr::adjustFqdnFlags() D2ClientMgr::adjustDomainName() D2ClientMgr::analyzeFqdn() D2ClientMgr::generateFqdn() D2ClientMgr::qualifyName() - now accept DdnsParams instance as parameter src/lib/dhcpsrv/tests/d2_client_unittest.cc Reworked tests to use DdnsParams
* [751-compiler-warning-in-ifacemgr-unit-tests] Addressed ↵tmark-pre-35Francis Dupont2019-10-071-2/+2
| | | | iface_mgr_unittest.cc warnings
* [907-remove-kea-thread-library] Fixed typo left by a previous MR reviewFrancis Dupont2019-09-271-1/+1
|
* [907-remove-kea-thread-library] Addressed commentsFrancis Dupont2019-09-272-0/+2
|
* [907-remove-kea-thread-library] Finished netconfFrancis Dupont2019-09-271-0/+11
|
* [907-remove-kea-thread-library] Checkpoint (todo finish netconf)Francis Dupont2019-09-2729-1568/+71
|
* [#924,!526] Bumped library version numbers for 1.7.0Thomas Markwalder2019-09-2417-17/+17
|
* updated ChangeLog and copyright datesMichal Nowikowski2019-09-232-2/+2
|
* [master] Fixed typoFrancis Dupont2019-09-201-1/+1
|
* [914-move-to-c-11-thread-library-in-core-library-code] Addressed a commentFrancis Dupont2019-09-201-2/+1
|
* [914-move-to-c-11-thread-library-in-core-library-code] Upgraded thread/mutex ↵Francis Dupont2019-09-2068-110/+85
| | | | code in the core library to C++11
* [168-config-manager-clear-does-not-clear-the-d2-client-config-full-clear] ↵Francis Dupont2019-09-203-5/+17
| | | | Fixed unit tests using previous CfgMgr clear() behavior
* [168-config-manager-clear-does-not-clear-the-d2-client-config-full-clear] ↵Francis Dupont2019-09-201-1/+2
| | | | Changed CfgMgr clear() to reset D2ClientConfig
* [345-drop-botan-1-x-support] Removed Botan 1.x supportFrancis Dupont2019-09-134-557/+0
|
* [#796,!504] Avoid memory allocation in signal handler.Marcin Siodelski2019-09-092-21/+126
|
* [#821,!501] Addressed review commentsThomas Markwalder2019-09-062-14/+14
| | | | | | | | src/bin/dhcp4/tests/dhcp4_srv_unittest.cc Cleaned up failure text src/lib/testutils/gtest_utils.h Replaced array with vector
* [#821,!501] kea-dhcp4 now sanity checks inbound messagesThomas Markwalder2019-09-064-17/+281
| | | | | | | | | | | | | | | | | | | | | | | | | src/bin/dhcp4/dhcp4_srv.cc Dhcpv4Srv::processRequest() Dhcpv4Srv::processRelease() Dhcpv4Srv::processDecline() Dhcpv4Srv::processInform() - now all call sanityCheck() src/bin/dhcp4/tests/dhcp4_srv_unittest.cc TEST_F(Dhcpv4SrvTest, sanityCheckDiscover) TEST_F(Dhcpv4SrvTest, sanityCheckRequest) TEST_F(Dhcpv4SrvTest, sanityCheckDecline) TEST_F(Dhcpv4SrvTest, sanityCheckRelease) TEST_F(Dhcpv4SrvTest, sanityCheckInform) - new tests src/lib/testutils/gtest_utils.h New file with handy new test macros: EXPECT_THROW_MSG() ASSERT_THROW_MSG() src/lib/testutils/Makefile.am Added new file gtest_utils.h Added a ChangeLog entry
* [#755,!503] Address outstanding review comments.Marcin Siodelski2019-09-064-15/+30
| | | | This checks that selected packet statistics is set to 0 before the test.
* [#755,!503] Removed spurious whitespace.Marcin Siodelski2019-09-061-1/+1
|
* [#755,!502] Removed duplicated test after the rebase.Marcin Siodelski2019-09-061-74/+0
|
* [755-Kea-DHCP-servers-observations-should-be-reset] resolve threadsFranciszek Gorski2019-09-0610-141/+137
|
* [755-Kea-DHCP-servers-observations-should-be-reset] implement required ↵Franciszek Gorski2019-09-064-60/+39
| | | | changes to dhcp4 and dhcp6 servers
* [755-Kea-DHCP-servers-observations-should-be-reset-to-some-initial] changes ↵Franciszek Gorski2019-09-062-43/+35
| | | | to way of initial values
* [755-Kea-DHCP-servers-observations-should-be-reset-to-some-initial-values-up ↵Franciszek Gorski2019-09-068-21/+288
| | | | on-restart-or-reconfiguration] add initialization of all statistisc during set up
* rebased and updated ChangeLogRazvan Becheriu2019-09-061-1/+1
|
* [#729,!434] consitency between v4 and v6 unit testsRazvan Becheriu2019-09-061-3/+3
|
* [#729,!434] fixed rebaseRazvan Becheriu2019-09-062-4/+4
|
* [#729,!434] change order of functions in fileRazvan Becheriu2019-09-062-360/+381
|
* [#729,!434] fixed missing commit of runtime option defs on v4Razvan Becheriu2019-09-064-365/+416
|
* [master] regen flexFrancis Dupont2019-08-316-1395/+2141
|
* [v1_6_0] pre release changesKea-1.6.0Wlodek Wencel2019-08-2613-24/+24
|
* [#853, !26-p] Addressed review commentsThomas Markwalder2019-08-261-10/+6
| | | | | | | | src/bin/admin/kea-admin.in Fixed printfs mysql_can_create() - removed logic to skip test based on MySQL version.
* [#853, !26-p] Fixed a query selecting pd pool specific options.Marcin Siodelski2019-08-261-1/+1
| | | | The options must be ordered by pd option id.
* [#853, !26-p] Added user permissions check to kea-adminThomas Markwalder2019-08-261-0/+88
| | | | | | | | | src/bin/admin/kea-admin.in mysql_can_create() - new function to verify user's ability to create functions mysql_init() mysql_upgrade() - modified to call mysql_can_create