- replaced all occurences to old_cltt and old_valid_lft in unittests
- renamed syncInternalTimestamp to syncExistingLifetime and changed order
of parameters
- renamed updateInternalTimestamp to updateExistingLifetime
- updated doxygen
- added extra check for all occurences of deleteLease (either call
EXPECT or ASSERT), and only use cast to void if explicitly specified
- updated ChangeLog
- updated old_cltt and old_valid_lft on fromElementCommon and added
unittests
- throw exception with different message on memfile with persitence
disabled for easier debugging
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
doc/guide/dhcp6-srv.xml
Updated to reflect the use to preferred life time vs valid life time
src/bin/dhcp6/dhcp6_srv.*
Updated to use preferred lease time for tee time calculation
Dhcpv6Srv::setTeeTimes() - updated to allow values to less than or
equal, rathe than the just less than
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/bin/dhcp6/tests/hooks_unittest.cc
src/bin/dhcp6/tests/tee_times_unittest.cc
updated unit tests accordingly
Server calcultates T1 & T2 when enabled. Does not
include parser support for calculate-tee-times,
t1-percent, or t2-percent
src/bin/dhcp6/dhcp6_srv.*
Dhcpv6Srv::setTeeTimes() - new method to
calcualte T1 and T2
Dhcpv6Srv::assignIA_NA()
Dhcpv6Srv::extendIA_NA()
Dhcpv6Srv::assignIA_PD()
Dhcpv6Srv::extendIA_NA() - modified to call setTeeTimes()
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
TEST_F(Dhcpv6SrvTest, calculateTeeTimers) - new test
src/bin/dhcp6/tests/hooks_unittest.cc
Removed overriding of Lease::t1_ and t2_ from tests
Added commentary, updated sub-options unpacking,
and added support for skip logic to kea-dhcp6.
src/lib/dhcp/option.h
Added detail to SkipRemainingOptionsError commentary
src/lib/dhcp/libdhcp++.cc
LibDHCP::unpackVendorOptions4()
LibDHCP::unpackVendorOptions6()
src/lib/dhcp/tests/pkt4_unittest.cc
TEST_F(Pkt4Test, unpackVendorMalformed) - updated for
new exception type
TEST_F(Pkt4Test, truncatedVendorLength) - removed
extraneous byte streams
src/lib/dhcp/tests/pkt6_unittest.cc
TEST_F(Pkt6Test, unpackVendorMalformed) - updated for
new exception type
TEST_F(Pkt6Test, truncatedVendorLength) - new test for
truncated vendor options
src/lib/dhcp/tests/pkt_captures.h
src/lib/dhcp/tests/pkt_captures.cc
isc::dhcp::Pkt6Ptr captureSolicitWithVIVSO()
isc::dhcp::Pkt6Ptr captureSolicitWithTruncatedVIVSO() -
new captured packets
src/bin/dhcp6/dhcp6_messages.mes
DHCP6_PACKET_OPTIONS_SKIPPED - new log message
src/bin/dhcp6/dhcp6_srv.cc
Dhcpv6Srv::processPacket() - added explicit catch of
SkipRemainingOptionsError to allow processing the packet
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
TEST_F(Dhcpv6SrvTest, truncatedVIVSO) - new test to verify
server's ability to handle SkipRemainingOptionsError
- address_family_, default ctor removed from two parsers
- copyright year updated
- Element::getNonConst is now documented
- user's guide is now clear about csv-format default value is now true
- SimpleParser concept implemented
- Converted 4 parsers (option data, option data list, option defintion,
option definition list)
- updated unit-tests
- converted other parsers (HostReservationParser{4,6}, ClientClassDefParser)
to use those new parsers
- converted kea-dhcp{4,6} to use those new parsers
Conflicts:
src/bin/dhcp6/json_config_parser.cc
src/lib/dhcpsrv/parsers/dhcp_parsers.cc