- 08 Jun, 2016 2 commits
-
-
Tomek Mrugalski authored
- .arg() calls now in separate lines - clarified comment about clients meeting client class criteria
-
Shawn Routhier authored
-
- 19 May, 2016 2 commits
-
-
Tomek Mrugalski authored
-
Tomek Mrugalski authored
-
- 11 May, 2016 1 commit
-
-
Thomas Markwalder authored
The client packet is now uniformly available to all client packet driven callouts for both v4 and v6: Added "query4" to lease4_select and lease4_renew src/bin/dhcp4/dhcp4_hooks.dox Added query4 argument to lease4_select and lease4_renew documentation src/bin/dhcp4/tests/hooks_unittest.cc Revamped to track both query4 and response4 arguments TEST_F(HooksDhcpv4SrvTest, lease4RenewSimple) - modified to verify query4 set by lease4_renew callout src/lib/dhcpsrv/alloc_engine.cc - AllocEngine::createLease4() - AllocEngine::reuseExpiredLease4() - modified to add query4 to lease4_select callout arguments - AllocEngine::renewLease4() - modified to add query4 to lease4_renew callout arguments src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc HookAllocEngine4Test() - modified to track query4 argument TEST_F(HookAllocEngine4Test, lease4_select) - modified to verify query4 callout argument Added "query6" to pkt6_send and lease6_select src/bin/dhcp6/dhcp6_hooks.dox Added query6 argument to pkt6_send and lease6_select documentation src/bin/dhcp6/dhcp6_srv.cc Dhcpv6Srv::processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp) - modified to add query6 to the pkt_send callout arguments src/bin/dhcp6/tests/hooks_unittest.cc Revamped to track both query4 and response4 arguments TEST_F(HooksDhcpv6SrvTest, simplePkt6Send) - modified to verify query6 set by pkt6_send callout src/lib/dhcpsrv/alloc_engine.cc - AllocEngine::createLease4() - AllocEngine::reuseExpiredLease6() - modified to add query6 to lease6_select callout arguments callout arguments src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc HookAllocEngine6Test() - modified to track query6 argument TEST_F(HookAllocEngine6Test, lease4_select) - modified to verify query6 argument
-
- 10 May, 2016 3 commits
-
-
Tomek Mrugalski authored
-
Stephen Morris authored
One compiler was objecting to placing the address of a size_t variable into a variable declared as "unsigned long*". Changing the declaration from "size_t" to "unsigned long" fixes the problem.
-
Tomek Mrugalski authored
- check for address being :: updated
-
- 05 May, 2016 3 commits
-
-
Tomek Mrugalski authored
-
Tomek Mrugalski authored
Thanks to wpk for reporting this issue.
-
Tomek Mrugalski authored
-
- 02 May, 2016 1 commit
-
-
Marcin Siodelski authored
This is to eliminate some of the recently found covertity isssues. Reviewed on jabber.
-
- 28 Apr, 2016 1 commit
-
-
Francis Dupont authored
-
- 27 Apr, 2016 6 commits
-
-
Tomek Mrugalski authored
-
Tomek Mrugalski authored
- returnining different values in callout_params_library.cc - returned values are now described for getParameter - corrected index syntax comment in getParameter - added missing include - hooks_user.dox updated - hooks unit test moved, so it is now next to other hooks tests
-
Marcin Siodelski authored
-
Marcin Siodelski authored
- No additional check for HR mode in findReservations - Additional commentary in the loop collecting host ids.
-
Francis Dupont authored
-
Marcin Siodelski authored
-
- 26 Apr, 2016 1 commit
-
-
Marcin Siodelski authored
This change was suggested during a ticket review.
-
- 25 Apr, 2016 4 commits
-
-
Francis Dupont authored
-
Francis Dupont authored
-
Francis Dupont authored
-
Thomas Markwalder authored
src/lib/dhcpsrv/pgsql_lease_mgr.cc Amended commentary for getColumnValue() variants Added decription of Uiaid union Changed std::system to ::system src/lib/dhcpsrv/testutils/mysql_schema.cc Changed std::system to ::system src/lib/dhcpsrv/testutils/mysql_schema.h Fixed typo src/lib/dhcpsrv/testutils/pgsql_schema.cc Removed extraneous include Changed std::system to ::system
-
- 14 Apr, 2016 3 commits
-
-
Shawn Routhier authored
-
Marcin Siodelski authored
Both DHCPv4 and DHCPv6.
-
Marcin Siodelski authored
-
- 13 Apr, 2016 2 commits
-
-
Marcin Siodelski authored
The identifiers are held on an ordered list and the server will use them to search for host reservations for each client using this order.
-
Marcin Siodelski authored
-
- 12 Apr, 2016 1 commit
-
-
Thomas Markwalder authored
Moved schema scripts into a new common location: src/share/database/scripts to make them accessible to both kea-admin and dhcpsrv testing
-
- 11 Apr, 2016 2 commits
-
-
Thomas Markwalder authored
Rather than use hard-coded lists or query logic for dropping the database all MySQL and Posgresql tests use new drop scripts added to src/bind/admin/scripts. src/bin/admin/scripts/mysql/dhcpdb_drop.mysql - New SQL script to drop a MySQL database src/bin/admin/scripts/pgsql/dhcpdb_drop.pgsql - New SQL script to drop a Postgresql database src/bin/admin/tests/mysql_tests.sh.in - mysql_wipe() - modified to use new drop script src/bin/admin/tests/pgsql_tests.sh.in - pgsql_wipe() modified to use new drop script src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc - TEST(MySqlOpenTest, OpenDatabase) - added show_err=true to destroyMySQLSchema() calls src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc - TEST(PgSqlOpenTest, OpenDatabase) - added show_err=true to destroyMySQLSchema() calls src/lib/dhcpsrv/testutils/mysql_schema.cc - destroyMySQLSchema(bool show_err) - modified to use the new drop script and accept show_err parameter src/lib/dhcpsrv/testutils/pgsql_schema.cc - destroyPgSQLSchema(bool show_err) - modified to use the new drop script and accept show_err parameter
-
Thomas Markwalder authored
src/lib/dhcpsrv/testutils/schema.h src/lib/dhcpsrv/testutils/schema.cc New files that contain constants and functions common to RDBMS testing src/lib/dhcpsrv/testutils/pgsql_schema.h src/lib/dhcpsrv/testutils/pgsql_schema.cc New files that contain constants and functions needed for Posgresql testing src/lib/dhcpsrv/testutils/mysql_schema.cc src/lib/dhcpsrv/testutils/mysql_schema.h Removed common constants and functions Added MYSQL_VALID_TYPE runMySQLScript() - new function to submit a script to MySQL src/lib/dhcpsrv/pgsql_lease_mgr.cc PgSqlLease6Exchange - replaced uint32_t iaid member with Uiaid union instance. This permits the value to be safely stored in the database as an INT (signed 4-byte value) getColumnValue()- added int32_t variant of this method src/lib/dhcpsrv/tests/Makefile.am Removed schema_pgsql_copy.h src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc Altered tests to use MYSQL_VALID_TYPE src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc Moved constants and functions testutils/pgsl_schema.h & cc
-
- 08 Apr, 2016 3 commits
-
-
Thomas Markwalder authored
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc - GenericLeaseMgrTest::testLease6HWTypeAndSource() - now uses valid values for hardware address source
-
Thomas Markwalder authored
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc TEST(MySqlOpenTest, OpenDatabase) - pass in show_err=true for call to createMySQLSchema() src/lib/dhcpsrv/testutils/Makefile.am - Added definition of TEST_ADMIN_SCRIPTS_DIR - removed schema_mysql_copy.h src/lib/dhcpsrv/testutils/mysql_schema.cc - Removed include of schema_mysql_copy.h - destroyMySQLSchema() - now contains destroy_statment[] formerly defined in schema_mysql_copy.h - createMySQLSchema() - Creates the database through command line invocation of MySQL cli, mysql, passing it the production database creation script
-
Shawn Routhier authored
-
- 06 Apr, 2016 5 commits
-
-
Shawn Routhier authored
-
Marcin Siodelski authored
-
Thomas Markwalder authored
Moved string/enum conversion functions inside D2ClientConfig Changed underscores to hypens in replace-client-name values and changed all literal values to lower case. Fixed minor wording issues in admin guide and new log messages. Added commentary and extra error logging to unit tests Added test case for invalid value of replace-client-name
-
Marcin Siodelski authored
-
Marcin Siodelski authored
The supported hex strings may have different formats: - colon separated values, - with '0x'prefix - no prefix, no colons
-