src/lib/dhcpsrv/csv_lease_file4.*
src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
- minor cleanup
src/lib/dhcpsrv/csv_lease_file6.*
CSVLeaseFile6::append() - now throws if DUID is empty and
state is not STATE_DECLINED
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
Updated tests to verify duid/state logic
Declined leases are expected to have neither hardware address nor client
id. All others have must have at least one of them.
src/lib/dhcpsrv/csv_lease_file4.cc
CSVLeaseFile4::append() - throws if a lease has no hardware address,
no client id and is not in STATE_DECLINED
CSVLeaseFile4::next(Lease4Ptr& lease) - discards rows if they have
neither hardware addr nor client id and are not in STATE_DECLINED
src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
src/bin/lfc/tests/lfc_controller_unittests.cc
Updated tests.
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
Added max-row-errors
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
TEST_F(LeaseFileLoaderTest, maxRowErrors6) - new unit test
to verify max-row-errors operation
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
Added max-row-errors
src/lib/database/database_connection.*
src/lib/database/dbaccess_parser.*
Added max-row-errors
src/lib/database/tests/dbaccess_parser_unittest.cc
New tests for max-row-errors
src/lib/dhcpsrv/lease_file_loader.h
Changed logic value of 0 means unlimited
src/lib/dhcpsrv/memfile_lease_mgr.cc
Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
connection parmater value for max-row-errors or 0
if not specified
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
to verify max-row-errors operation
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
max-row-errors
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
Added max-row-errors
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
TEST_F(LeaseFileLoaderTest, maxRowErrors6) - new unit test
to verify max-row-errors operation
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
Added max-row-errors
src/lib/database/database_connection.*
src/lib/database/dbaccess_parser.*
Added max-row-errors
src/lib/database/tests/dbaccess_parser_unittest.cc
New tests for max-row-errors
src/lib/dhcpsrv/lease_file_loader.h
Changed logic value of 0 means unlimited
src/lib/dhcpsrv/memfile_lease_mgr.cc
Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
connection parmater value for max-row-errors or 0
if not specified
src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
to verify max-row-errors operation
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
max-row-errors
ChangeLog - added an entry
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) - added
commentary
src/lib/exceptions/isc_assert.h
commentary changes
src/lib/exceptions/tests/exceptions_unittest.cc
TEST(IscThrowAssert, checkMessage) - replace use of explicit line number
src/lib/exceptions/isc_assert.h
New file that defines isc_assert_throw()
src/lib/exceptions/Makefile.am
added isc_asssert.h
src/lib/exceptions/tests/exceptions_unittest.cc
TEST(IscThrowAssert, checkMessage) - new test
src/lib/dns/labelsequence.cc
src/lib/dns/name.cc
Replaced assert() calls with isc_throw_assert() calls
src/lib/dns/tests/name_unittest.cc
TEST_F(NameTest, unexpectedParseError) - new unit test
for hostname option content based on fuzz test failure
src/lib/dhcp_ddns/ncr_msg.cc
Removed unnecessary include of dns/name.h
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processHostnameOption() - added try catch
around OptionDataTypeUtil::getLabelCount() call
src/bin/dhcp4/dhcp4_messages.*
added new log message DHCP4_CLIENT_HOSTNAME_MALFORMED
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) -
renamed test and augmented it to include the packet of death
produced by fuzz testing.
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