]> git.ipfire.org Git - thirdparty/kea.git/commit
[#1781] HA now load balances only specific message types
authorThomas Markwalder <tmark@isc.org>
Tue, 12 Jul 2022 20:40:39 +0000 (16:40 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 20 Jul 2022 13:04:58 +0000 (09:04 -0400)
commit3a40eb1695b2afde057c9a91b36eefa10f06da96
tree2918489930ad9f409c83e5078eccf84205dfafff
parent4ca144242fbd2be718effdfd064d4c83533c537f
[#1781] HA now load balances only specific message types

Added a ChangeLog

src/hooks/dhcp/high_availability/query_filter.*
    QueryFilter::isHaType(const dhcp::Pkt4Ptr& query4)
    QueryFilter::isHaType(const dhcp::Pkt6Ptr& query6)
    - new functions

    QueryFilter::inScope() - uses new functions to balance
    and scope messages of specific types

src/hooks/dhcp/high_availability/tests/query_filter_unittest.cc
    TEST_F(QueryFilterTest, loadBalancingHaTypes4)
    TEST_F(QueryFilterTest, loadBalancingHaTypes4MultiThreading)
    TEST_F(QueryFilterTest, loadBalancingHaTypes6)
    TEST_F(QueryFilterTest, loadBalancingHaTypes6MultiThreading)
    - new tests

src/lib/dhcp/dhcp6.h
    Uncommented v6 message types.
ChangeLog
src/hooks/dhcp/high_availability/query_filter.cc
src/hooks/dhcp/high_availability/query_filter.h
src/hooks/dhcp/high_availability/tests/query_filter_unittest.cc
src/lib/dhcp/dhcp6.h