src/bin/dhcp4/ctrl_dhcp4_srv.*
src/bin/dhcp6/ctrl_dhcp6_srv.*
Changed dbReconnect() to accept ReconnectCtlPtr
Added commentary for dbReconnect and dbLostCallback
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
[5477] dhcpsrv/postgres and kea-dhcp4 now support db reconnect
kea-dhcp4
added support for max-reconnect-tries and reconnect-wait-time
to lease and host db parsers
Added a callback for when DB backends detect loss of connectivity
Added a self-rescheduling method to attempt to reconnect to the
backends if retries are enabled
dhcpsrv
Added a callback that DatabaseConnection derivations should invoke
when they lose connectivity.
Added an optional callback parameter from CfgDbAccess::createManagers()
all the way down to DatabaseConnection ctor.
pgsql_connection.cc
PgSqlConnection::~PgSqlConnection() - Added logic to close the
connection only when the connect state is still OK.
Otherwise it likes to core dump.
PgSqlConnection::checkStatementError() - Modified to invoke the
connectivity lost callback on "fatal" errors
pgsql_lease_mgr_unittest.cc
pgsql_host_data_source_unittest.cc
Added tests to verify that the lost callback is NOT invoked on an
open failure
[5551] kea-dhcp4 now attempts to process packets with truncated VIVSO
src/lib/dhcp/option.h
SkipRemainingOptionsError - new error to signal
that unpacking skipped options
src/lib/dhcp/option_vendor.cc
OptionVendor::unpack() - modified to throw
SkipRemainingOptions on truncated length
src/lib/dhcp/option_definition.cc
OptionDefinition::optionFactory()
Added catch-rethrow of SkipRemainginOptionsError
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processPacket() - added explicit catch
of SkipRemainingOptionsError which logs the error
but allows the processing to continue.
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
TEST_F(Dhcpv4SrvTest, truncatedVIVSOOption) -
new test to verify skip-options logic for truncated
vendor option
src/lib/dhcp/tests/pkt4_unittest.cc
TEST_F(Pkt4Test, truncatedVendorLength) - new
test that verifies Pkt4 unpacking of truncated VIVSO
src/lib/dhcp/tests/pkt_captures4.cc
Pkt4Ptr PktCaptures::discoverWithValidVIVSO()
Pkt4Ptr PktCaptures::discoverWithTruncatedVIVSO() -
new captured discovers
[5553] Added specific log for possible BOOTP packets
src/bin/dhcp4/dhcp4_messages.mes
Added DHCP4_PACKET_DROP_0009 for possible bootp packets
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::acceptMessageType()
rearranged a bit to test explicitly for DHCP_NOTYPE
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
TEST_F(Dhcpv4SrvTest, acceptMessageType)
Added tests for packets with no option 53 and for
type > DHCPLEASEQUERYDONE
[5522] Fixed subnet_id column types in MySQL and Postgres schemas
new file:
src/share/database/scripts/mysql/upgrade_5.1_to_5.2.sh.in
renamed:
src/share/database/scripts/mysql/upgrade_5.1_to_6.0.sh.in
-> src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
new file:
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in
renamed:
src/share/database/scripts/pgsql/upgrade_3.2_to_4.0.sh.in
-> src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
src/lib/dhcpsrv/pgsql_host_data_source.cc
changed OID_INT4 to OID_INT8 for subnet_id inputs in
TaggedStatements
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
Added new tests to verify maxium value for subnet_id works
src/share/database/scripts/mysql/dhcpdb_create.mysql
Added 5.1 to 5.2 changes
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Added 3.2 to 3.3 changes