]> git.ipfire.org Git - thirdparty/kea.git/commit
[#3555] Handle conflicts when offer-liftime > 0
authorThomas Markwalder <tmark@isc.org>
Fri, 21 Mar 2025 19:23:25 +0000 (15:23 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 26 Mar 2025 16:47:14 +0000 (16:47 +0000)
commite83c4f59c08b7cc8c599fb983e0d787b248499f5
treebfc0c00cf4fae88534515b346f13bedef18a7eae
parentd67caa30492ecc12d04833fdd1949bea816759ad
[#3555] Handle conflicts when offer-liftime > 0

/src/bin/dhcp4/tests/dora_unittest.cc
    DORATest::reservationsWithConflicts() - added parameter
    for offer-lifetime

    TEST_F(DORATest, reservationsWithConflictsOfferLft)
    TEST_F(DORATest, reservationsWithConflictsOfferLftMultiThreading)
    - new tests

/src/lib/dhcpsrv/alloc_engine.*
    deleteAssignedLease() - new convenience function

    AllocEngine::requestLease4() - added logic to handle conflicting
    lease when offer-lifetime > 0

    AllocEngine::getOfferLft() - added flag to disable DISCOVER
    only check

/src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
    TEST_F(AllocEngine4Test, existingLeasePlusTemporary) - new test
src/bin/dhcp4/tests/dora_unittest.cc
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc