summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/network.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [#3307] release changesKea-2.5.7Marcin Godzina2024-03-221-1/+1
|
* [#3280] Fixed doxygen commentary errorsThomas Markwalder2024-03-121-1/+1
| | | | | | Removed failing references to private class members, Added missing paramters miscellaneous other errors
* [#2276] Initial impl ddns-resolution-conflict-modeThomas Markwalder2023-07-061-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Files: src/bin/d2/check_exists_add.cc src/bin/d2/check_exists_add.h src/bin/d2/check_exists_remove.cc src/bin/d2/check_exists_remove.h src/bin/d2/simple_add_without_dhcid.cc src/bin/d2/simple_add_without_dhcid.h src/bin/d2/simple_remove_without_dhcid.cc src/bin/d2/simple_remove_without_dhcid.h src/bin/d2/tests/check_exists_add_unittests.cc src/bin/d2/tests/check_exists_remove_unittests.cc src/bin/d2/tests/simple_add_without_dhcid_unittests.cc src/bin/d2/tests/simple_remove_without_dhcid_unittests.cc Modified: doc/examples/kea4/all-keys.json doc/examples/kea4/with-ddns.json doc/examples/kea6/all-keys.json doc/examples/kea6/with-ddns.json src/bin/d2/Makefile.am src/bin/d2/check_exists_add.cc src/bin/d2/check_exists_add.h src/bin/d2/check_exists_remove.cc src/bin/d2/check_exists_remove.h src/bin/d2/d2_update_mgr.cc src/bin/d2/simple_add_without_dhcid.cc src/bin/d2/simple_add_without_dhcid.h src/bin/d2/simple_remove_without_dhcid.cc src/bin/d2/simple_remove_without_dhcid.h src/bin/d2/tests/Makefile.am src/bin/d2/tests/check_exists_add_unittests.cc src/bin/d2/tests/check_exists_remove_unittests.cc src/bin/d2/tests/d2_process_unittests.cc src/bin/d2/tests/d2_queue_mgr_unittests.cc src/bin/d2/tests/d2_update_mgr_unittests.cc src/bin/d2/tests/nc_add_unittests.cc src/bin/d2/tests/nc_remove_unittests.cc src/bin/d2/tests/simple_add_unittests.cc src/bin/d2/tests/simple_add_without_dhcid_unittests.cc src/bin/d2/tests/simple_remove_unittests.cc src/bin/d2/tests/simple_remove_without_dhcid_unittests.cc src/bin/dhcp4/dhcp4_lexer.cc src/bin/dhcp4/dhcp4_lexer.ll src/bin/dhcp4/dhcp4_parser.cc src/bin/dhcp4/dhcp4_parser.h src/bin/dhcp4/dhcp4_parser.yy src/bin/dhcp4/json_config_parser.cc src/bin/dhcp4/location.hh src/bin/dhcp4/parser_context.h src/bin/dhcp4/tests/config_parser_unittest.cc src/bin/dhcp4/tests/d2_unittest.cc src/bin/dhcp4/tests/fqdn_unittest.cc src/bin/dhcp4/tests/get_config_unittest.cc src/bin/dhcp6/dhcp6_lexer.cc src/bin/dhcp6/dhcp6_lexer.ll src/bin/dhcp6/dhcp6_parser.cc src/bin/dhcp6/dhcp6_parser.h src/bin/dhcp6/dhcp6_parser.yy src/bin/dhcp6/dhcp6_srv.cc src/bin/dhcp6/json_config_parser.cc src/bin/dhcp6/location.hh src/bin/dhcp6/parser_context.h src/bin/dhcp6/tests/config_parser_unittest.cc src/bin/dhcp6/tests/d2_unittest.cc src/bin/dhcp6/tests/fqdn_unittest.cc src/bin/dhcp6/tests/get_config_unittest.cc src/lib/d2srv/testutils/nc_test_utils.cc src/lib/d2srv/testutils/nc_test_utils.h src/lib/dhcp_ddns/ncr_msg.cc src/lib/dhcp_ddns/ncr_msg.h src/lib/dhcp_ddns/tests/ncr_udp_unittests.cc src/lib/dhcp_ddns/tests/ncr_unittests.cc src/lib/dhcpsrv/cfg_globals.cc src/lib/dhcpsrv/cfg_globals.h src/lib/dhcpsrv/ncr_generator.cc src/lib/dhcpsrv/network.cc src/lib/dhcpsrv/network.h src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/parsers/base_network_parser.h src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc src/lib/dhcpsrv/srv_config.cc src/lib/dhcpsrv/srv_config.h src/lib/dhcpsrv/tests/d2_udp_unittest.cc src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc src/lib/dhcpsrv/tests/ncr_generator_unittest.cc src/lib/dhcpsrv/tests/network_unittest.cc src/lib/dhcpsrv/tests/srv_config_unittest.cc
* [#2823] Addressed review commentsMarcin Siodelski2023-04-191-0/+3
|
* [#2823] Config backend sets allocatorsMarcin Siodelski2023-04-191-4/+52
|
* [#225] Added ddsn-ttl-percent parameterThomas Markwalder2023-03-241-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kea-dhcp4/6 both now support ddns-ttl-percent at the global, shared-network, and subnet scopes. If specified it is the percentage of the lease lifetime to send to D2. Not yet supported by CB. modified: doc/examples/kea4/all-keys.json doc/examples/kea6/all-keys.json src/bin/dhcp4/dhcp4_lexer.cc src/bin/dhcp4/dhcp4_lexer.ll src/bin/dhcp4/dhcp4_parser.cc src/bin/dhcp4/dhcp4_parser.h src/bin/dhcp4/dhcp4_parser.yy src/bin/dhcp4/json_config_parser.cc src/bin/dhcp4/location.hh src/bin/dhcp6/dhcp6_lexer.cc src/bin/dhcp6/dhcp6_lexer.ll src/bin/dhcp6/dhcp6_parser.cc src/bin/dhcp6/dhcp6_parser.h src/bin/dhcp6/dhcp6_parser.yy src/bin/dhcp6/dhcp6_srv.cc src/bin/dhcp6/json_config_parser.cc src/bin/dhcp6/location.hh src/bin/dhcp6/tests/fqdn_unittest.cc src/lib/dhcpsrv/cfg_globals.cc src/lib/dhcpsrv/cfg_globals.h src/lib/dhcpsrv/dhcpsrv_messages.cc src/lib/dhcpsrv/dhcpsrv_messages.h src/lib/dhcpsrv/dhcpsrv_messages.mes src/lib/dhcpsrv/ncr_generator.cc src/lib/dhcpsrv/ncr_generator.h src/lib/dhcpsrv/network.cc src/lib/dhcpsrv/network.h src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/parsers/base_network_parser.h src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc src/lib/dhcpsrv/srv_config.cc src/lib/dhcpsrv/srv_config.h src/lib/dhcpsrv/tests/ncr_generator_unittest.cc src/lib/dhcpsrv/tests/network_unittest.cc src/lib/dhcpsrv/tests/srv_config_unittest.cc
* Applying suggested changesAndrei Pavel2023-03-231-1/+1
|
* [#2719] Renamed parameter and added it to classesThomas Markwalder2023-03-231-1/+1
| | | | | Renamed offer-lft to offer-lifetime to match other lifetime parameters.
* [#2719] Adds offer_lft to globali and network scopesThomas Markwalder2023-03-231-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | offer-lft added to global, shared-network4, and subnet4 Can be set/fetched/parsed but does nothing yet. src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/cfg_globals.* Add offer-lft to global, shared-network4, and subnet4 values src/lib/dhcpsrv/network.* Add offer_lft_ to Network4 src/lib/dhcpsrv/parsers/base_network_parser.* BaseNetworkParser::parseOfferLft() - new function src/lib/dhcpsrv/parsers/dhcp_parsers.cc Subnet4ConfigParser::initSubnet() src/lib/dhcpsrv/parsers/shared_network_parser.cc SharedNetwork4Parser::parse() - add call to parseOfferLft() src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc TEST_F(AllocEngine4Test, discoverOfferLft) - new test, currently fails because impl is missing. src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc src/lib/dhcpsrv/tests/cfg_subnets4_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 Updated tests to account for offer-lft src/bin/dhcp4/dhcp4_lexer.ll src/bin/dhcp4/dhcp4_parser.yy src/bin/dhcp4/json_config_parser.cc Added offer-lft src/bin/dhcp4/tests/get_config_unittest.cc Regenerated tests.
* [#2677] Ignore invalid renew-timer valuesThomas Markwalder2023-02-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/dhcpsrv_messages.* DHCPSRV_CFGMGR_RENEW_GTR_REBIND - new message src/lib/dhcpsrv/network.h Added Network::getLabel() src/lib/dhcpsrv/parsers/base_network_parser.cc BaseNetworkParser::parseCommon() - log renew > rebind rather than throw src/lib/dhcpsrv/parsers/dhcp_parsers.cc Subnet4ConfigParser::initSubnet() - removed duplicate timer check Subnet6ConfigParser::initSubnet() - removed duplicate timer check src/lib/dhcpsrv/shared_network.h Added SharedNetwork4::getLabel() Added SharedNetwork6::getLabel() src/lib/dhcpsrv/subnet.h Added Subnet::getLabel() src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc TEST_F(Subnet4ParserTest, parseWithInvalidRenewRebind) - new test src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc TEST_F(Subnet4ParserTest, parseWithInvalidRenewRebind) - new test src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc Updated tests
* [#2732] release changesKea-2.3.4Wlodek Wencel2023-01-231-1/+1
|
* [#969] Improve allocator parsing codeMarcin Siodelski2023-01-071-0/+5
|
* [#969] DHCPv6 allocators configurableMarcin Siodelski2023-01-071-0/+25
|
* [#969] Configure allocator for DHCPv4Marcin Siodelski2023-01-071-0/+25
|
* [#2401] Addressed commentsFrancis Dupont2022-08-101-5/+5
|
* [#2401] Moved to a multi-index list/unorderd set for relay address listFrancis Dupont2022-08-101-3/+32
|
* [#2290] release changesAndrei Pavel2022-01-251-1/+1
|
* [#2254] Ported simple subnet containerFrancis Dupont2022-01-171-2/+7
|
* [#1082] fix typos and spacesRazvan Becheriu2022-01-061-3/+3
|
* [#1082] Moved get property templates to indexesFrancis Dupont2022-01-061-78/+89
|
* [#1082] Checkpoint: updated failing UTsFrancis Dupont2022-01-061-1/+3
|
* [#1082] Checkpoint: use new code, built but some tests must be updatedFrancis Dupont2022-01-061-5/+6
|
* [#1848] Moves Triplet to isc::utilThomas Markwalder2021-11-171-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | renamed: src/lib/dhcpsrv/triplet.h -> src/lib/util/triplet.h modified: src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.h src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_impl_unittest.cc src/lib/cc/simple_parser.cc src/lib/cc/simple_parser.h src/lib/dhcpsrv/Makefile.am src/lib/dhcpsrv/client_class_def.cc src/lib/dhcpsrv/client_class_def.h src/lib/dhcpsrv/network.h src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/parsers/client_class_def_parser.cc src/lib/dhcpsrv/subnet.h src/lib/dhcpsrv/tests/Makefile.am src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc src/lib/dhcpsrv/tests/alloc_engine_utils.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/client_class_def_parser_unittest.cc src/lib/dhcpsrv/tests/shared_network_unittest.cc src/lib/dhcpsrv/tests/srv_config_unittest.cc src/lib/dhcpsrv/tests/subnet_unittest.cc src/lib/dhcpsrv/tests/triplet_unittest.cc src/lib/util/Makefile.am
* [#1656] 1.9.4 release: update copyrightsAndrei Pavel2021-01-251-1/+1
|
* [#1656] 1.9.4 release: spelling checkAndrei Pavel2021-01-251-4/+4
|
* [#1456] Ignored unusedFrancis Dupont2020-12-091-0/+7
|
* [#1456] Made the triplet global fetch easier to optimizeFrancis Dupont2020-12-091-20/+34
|
* [#1456] Addressed commentsFrancis Dupont2020-12-091-10/+10
|
* [#1456] Checkpoint: code done, UTs to doFrancis Dupont2020-12-091-7/+65
|
* [#1405] merged first passRazvan Becheriu2020-11-181-138/+59
|
* [#1405] separate flags from configuration modesRazvan Becheriu2020-11-181-6/+16
|
* [#1405] in-subnet is equivalent to allRazvan Becheriu2020-11-181-26/+27
|
* [#1405] fixed compilationRazvan Becheriu2020-11-181-5/+5
|
* [#1405] implemented separate boolean flags for reservation modesRazvan Becheriu2020-11-181-60/+32
|
* [#1405] fixed inheritance bugRazvan Becheriu2020-11-181-3/+6
|
* [#1405] updated unittestsRazvan Becheriu2020-11-181-3/+9
|
* [#1405] inherit reservation modes from global levelRazvan Becheriu2020-11-181-4/+30
|
* [#1405] added parser classRazvan Becheriu2020-11-181-7/+35
|
* [#1405] added parser for the reservation-modes mapRazvan Becheriu2020-11-181-5/+9
|
* [#1386] Addressed review comments for !976Thomas Markwalder2020-10-211-1/+1
| | | | | | | | | | 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/lib/dhcpsrv/network.h src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc fixed typos
* [1386] Added support for ddns-use-conflict-resolution to dhcpsrvThomas Markwalder2020-10-211-1/+22
| | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/network.* Added Network::ddns_use_conflict_resolution_ src/lib/dhcpsrv/parsers/base_network_parser.cc src/lib/dhcpsrv/parsers/simple_parser4.cc src/lib/dhcpsrv/parsers/simple_parser6.cc Added "ddns-use-conflict-resolution" src/lib/dhcpsrv/srv_config.* Added DdnsParams::use_conflict_resolution_ src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc src/lib/dhcpsrv/tests/network_unittest.cc src/lib/dhcpsrv/tests/srv_config_unittest.cc Updated tests
* [#1385] kea-dhcp4 supporst ddns-update-on-renewThomas Markwalder2020-10-091-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Parsers need to be regenerated) src/bin/dhcp4/dhcp4_lexer.ll src/bin/dhcp4/dhcp4_parser.yy src/bin/dhcp4/json_config_parser.cc added ddns-update-on-renew parameter src/bin/dhcp4/dhcp4_srv.* Dhcpv4Srv::createNameChangeRequests() - added DdnsParams argument and modified to use ddns-update-on-renew in logic src/bin/dhcp4/tests/fqdn_unittest.cc TEST_F(NameDhcpv4SrvTest, createNameChangeRequestsUpdateOnRenew) - new test src/bin/dhcp4/tests/get_config_unittest.cc Updated 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 src/lib/dhcpsrv/srv_config.* Added ddns-update-on-renew 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/srv_config_unittest.cc src/lib/dhcpsrv/tests/subnet_unittest.cc updated tests
* [#1418] Checkpoint: renamed cache-maxFrancis Dupont2020-10-021-8/+8
|
* [#1418] Checkpoint: updated library, a syntax regen is requiredFrancis Dupont2020-10-021-1/+41
|
* [#1333] Checkpoint: code done - unit tests to updateFrancis Dupont2020-09-151-1/+1
|
* [#1210] Fixed some doxygen issuesFrancis Dupont2020-05-141-1/+1
|
* [#1010] Modified AllocateEngine and parsers to store extended v6 lease infoThomas Markwalder2020-04-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/alloc_engine.* AllocEngine::reuseExpiredLease() AllocEngine::createLease6() AllocEngine::extendLease6() - added call to AllocEngine::updateLase6ExtendedInfo() AllocEngine::updateLease4ExtendedInfo() - create Elements directly AllocEngine::updateLease6ExtendedInfo() - new method src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc TEST_F(AllocEngine6ExtendedInfoTest, updateExtendedInfo6) TEST_F(AllocEngine6ExtendedInfoTest, storeExtendedInfoEnabled6) TEST_F(AllocEngine6ExtendedInfoTest, storeExtendedInfoDisabled6) TEST_F(AllocEngine6ExtendedInfoTest, reuseExpiredLease6) - new tests src/lib/dhcpsrv/parsers/dhcp_parsers.cc src/lib/dhcpsrv/parsers/shared_network_parser.cc src/lib/dhcpsrv/parsers/base_network_parser.* Renamed BaseNetworkParser::parseCommonTimer() to parseCommon() and added handling of store-extended-info. src/lib/dhcpsrv/parsers/simple_parser6.cc Added store-extended-info src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc src/lib/dhcpsrv/tests/cfg_subnets6_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 updated tests
* [#1010] Added v4 support of store-extended-info to lib dhcpsrvThomas Markwalder2020-04-021-1/+22
| | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/alloc_engine.cc AllocEngine::updateLease4ExtendedInfo() - added check of store-extended-info src/lib/dhcpsrv/network.* src/lib/dhcpsrv/parsers/simple_parser4.cc added parameter for store-extended-info src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc src/lib/dhcpsrv/tests/network_unittest.cc src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc Updated tests to include store-extended-info
* [#1098] updated more copyright datesMichal Nowikowski2020-01-271-1/+1
|
* [#981] Reworked DdnsParams to allow on-demand value fetchingThomas Markwalder2020-01-271-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/lib/dhcpsrv/d2_client_cfg.* Moved DdnsParams to srv_config.* src/lib/dhcpsrv/network.h respaced src/lib/dhcpsrv/srv_config.* DdnsParams relocated here from d2_client_cfg.*. Added SubnetPtr member. Added constructors from Subnet4Ptr and Subnet6Ptr Replaced individual members with getters. src/lib/dhcpsrv/tests/d2_client_unittest.cc src/lib/dhcpsrv/tests/srv_config_unittest.cc Retrofitted tests accordingly. src/lib/dhcpsrv/alloc_engine.* src/lib/dhcpsrv/d2_client_mgr.* Updated DdnsParams references src/bin/dhcp4/dhcp4_srv.cc src/bin/dhcp4/tests/fqdn_unittest.cc Updated DdnsParams references src/bin/dhcp6/dhcp6_srv.cc src/bin/dhcp6/tests/fqdn_unittest.cc Updated DdnsParams references