]> git.ipfire.org Git - thirdparty/kea.git/commit
[5705] AllocEngine4 now matches clients to global HRs
authorThomas Markwalder <tmark@isc.org>
Fri, 10 Aug 2018 12:56:21 +0000 (08:56 -0400)
committerThomas Markwalder <tmark@isc.org>
Tue, 14 Aug 2018 13:43:04 +0000 (09:43 -0400)
commite46618e63aaf9adaeaa506254534c48e6e2fe77c
treeb1b61125a9a8a843689b4bcdbc17dbf979abb090
parentee559726c4d14bfa340078a304d8098c2e70bc99
[5705] AllocEngine4 now matches clients to global HRs

src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp4/tests/host_unittest.cc - new file with global HR tests

src/lib/dhcpsrv/alloc_engine.*
    findGlobalReservation() - new function that searches for global HR

    findReservation() - calls findGlobalReservation() if mode is global

    hasAddressReservation()
    ClientContext4::currentHost()
        - modified to recognize global HRs

src/lib/dhcpsrv/network.h
    Added new mode, Netork::HR_GLOBAL

src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
    TEST_F(AllocEngine4Test, globalReservationReservedAddressDiscover)
    TEST_F(AllocEngine4Test, globalReservationReservedAddressRequest)
    TEST_F(AllocEngine4Test, globalReservationDynamicDiscover)
    TEST_F(AllocEngine4Test, globalReservationDynamicRequest) - new tests
src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp4/tests/host_unittest.cc [new file with mode: 0644]
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/network.h
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc