]> git.ipfire.org Git - thirdparty/kea.git/commit
[5007] Suppress DDNS updates on DHCPv6 lease renewals unless the FQDN changes
authorThomas Markwalder <tmark@isc.org>
Thu, 15 Sep 2016 20:10:53 +0000 (16:10 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 15 Sep 2016 20:10:53 +0000 (16:10 -0400)
commit46f4c9fdd841b3cb26afb925b9386fbe3534e89d
tree833d7a6626116124a1d8817285d8dfcb1f82d010
parent7264cf4d48111b3dde9407ad2d209da8df668ccc
[5007] Suppress DDNS updates on DHCPv6 lease renewals unless the FQDN changes

src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/alloc_engine.cc
    - AllocEngine::extendLease6()
    - AllocEngine::updateLeaseData() - logic was added to clear the context
    DNS update flags when the renewal does not alter the lease's FQDN.

src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/dhcp6_srv.cc
    - Dhcpv6Srv::createNameChangeRequests() - added context as second parameter,
    and modified function to return without creating NCR(s) if both update flags
    in the context are false.

src/bin/dhcp6/tests/fqdn_unittest.cc
    - TEST_F(FqdnDhcpv6SrvTest, createNameChangeRequests) - modified to verify
    combinations of context update flags

    - TEST_F(FqdnDhcpv6SrvTest, DISABLED_processTwoRequests) - renamed
    to TEST_F(FqdnDhcpv6SrvTest, processTwoRequestsDiffFqdn) and enabled.
    It had been disabled pending 3677 which has been completed.

    - TEST_F(FqdnDhcpv6SrvTest, processTwoRequestsSameFqdn)  - new test
    which verifies that client "renewing" a lease by sending a second
    request with the different FQDN generates the correct NCRs

    - TEST_F(FqdnDhcpv6SrvTest, DISABLED_processRequestRenew) - renamed
    to TEST_F(FqdnDhcpv6SrvTest, processRequestRenewDiffFqdn) and enabled.
    It had been disabled pending 3677 which has been completed.

    - TEST_F(FqdnDhcpv6SrvTest, processRequestRenewSameFqdn) - new test
    which verifies that client renewing a lease by sending a renew
    with the same FQDN does NOT generate any NCRs
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/tests/fqdn_unittest.cc
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h