src/bin/dhcp6/dhcp6_srv.cc
Dhcpv6Srv::sanityCheckDUID() - modified to attempt to construct
a DUID instance as final sanity check
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
TEST_F(Dhcpv6SrvTest, sanityCheckClientId)
TEST_F(Dhcpv6SrvTest, sanityCheckServerId) - revamped tests
to check against max and max + 1
src/bin/dhcp6/tests/dhcp6_test_utils.h
A little refactoring to ease option creation
src/lib/dhcp/duid.cc
DUID::DUID(const std::vector<uint8_t>& duid)
DUID::DUID(const uint8_t* data, size_t len) - updated
error log to show actual sizes
Fixed typos and added decline lease checks for DHCPv6
src/lib/dhcp/duid.h
src/lib/dhcp/duid.cc
src/lib/dhcp/tests/duid_unittest.cc
- Replaced DUID::generateEmpty() with DUID::EMPTY() which returns
a constant reference to a static DUID instance. This facilitates
comparisions.
- Updated TEST(DuidTest,empty) accordingly
src/lib/dhcpsrv/csv_lease_file6.cc
CSVLeaseFile6::next() - added test to permit the Empty DUID
only if state is STATE_DECLINED.
src/lib/dhcpsrv/lease.cc
Lease6::decline() - modified to use DUID::EMPTY().
src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
Fixed Typos
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
TEST_F(CSVLeaseFile6Test, declinedLeaseTest) - new test to
verify proper handling of declined leases
- Lease6::decline() implemented
- DUID::generateEmpty() implemented
- Unit-tests for Decline (not include address, not include IA_NA)
implemented
- several comments updated
- logging corrected and reworded