2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

23242 Commits

Author SHA1 Message Date
Stephen Morris
1c8946db70 [3164] Correct a typo in the user guide 2016-05-12 19:30:51 +01:00
Marcin Siodelski
718643a83a [4281] Extended MySQL host data source with DHCPv4 and DHCPv6 options.
Missing things:
- proper commentary
- formatted values for options
- rollback host insertion when failing to add reservation or option
2016-05-12 18:31:07 +02:00
Stephen Morris
7258f494e7 [master] Added ChangeLog entry for #4485 2016-05-11 21:50:29 +01:00
Stephen Morris
4c6fb189b5 [master]Merge branch 'trac4485' 2016-05-11 21:10:55 +01:00
Stephen Morris
0b070124ab [3164] The database connection timeout is now a configurable parameter
In addition, the default has been changed to five seconds.
2016-05-11 20:40:25 +01:00
Thomas Markwalder
1d7afd1c02 [4481] Made query4 and query6 callout arguments uniformly available
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
2016-05-11 13:12:19 -04:00
Tomek Mrugalski
d31f35ea92 [4106_rebase] Compilation fix after rebase. 2016-05-11 16:58:00 +02:00
Francis Dupont
6f996a7c45 [4106] Fixed DHCP4o6 for compiling, Linux and OpenBSD 2016-05-11 15:57:26 +02:00
Francis Dupont
5f1a2a197a [4106] Changed to use the private options 2016-05-11 15:22:16 +02:00
Francis Dupont
2192caa2c2 [4106] Ported DHCPv4-over-DHCPv6 IPC code from fd4o6 private branch 2016-05-11 15:22:16 +02:00
Tomek Mrugalski
d67528d056 [master] Corrections in the config examples. 2016-05-11 14:19:04 +02:00
Tomek Mrugalski
b20d5e68d8 [master] ChangeLog updated after 4112 merge. 2016-05-10 16:48:01 +02:00
Tomek Mrugalski
3352685981 [master] Merge branch 'trac4112' (subnet4o6 selection based on v6 info) 2016-05-10 16:37:44 +02:00
Tomek Mrugalski
df2b27cd52 [4112_rebase] Compilation fix. 2016-05-10 16:04:17 +02:00
Stephen Morris
1d3dac9de3 [4485] Change type of variables to overcome compiler objections
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.
2016-05-10 15:03:02 +01:00
Tomek Mrugalski
b167235b9c [4112_rebase] Minor change after review
- check for address being :: updated
2016-05-10 14:39:57 +02:00
Thomas Markwalder
324d766474 [master] Added ChangeLog entry 1112 for #4492. 2016-05-09 09:26:22 -04:00
Thomas Markwalder
2a4792b355 [master] Fixed unit test compilation post merge
HooksManager::loadLibraries() call now requires
    LibraryCollection as parameter
2016-05-09 09:19:59 -04:00
Thomas Markwalder
69dc6dfa0b [master] Server destructors now explicitly unload hooks libraries
Merge branch 'trac4492'
2016-05-09 08:31:55 -04:00
Thomas Markwalder
552ce310fe [4492] Addressed review comments
src/bin/dhcp4/tests/hooks_unittest.cc
src/bin/dhcp6/tests/hooks_unittest.cc
    Fixed includes, copyright, and removed unnecessary calls to
    IfaceMgr::instance().deleteAllExternalSockets();
2016-05-09 07:32:51 -04:00
Thomas Markwalder
05561a60d5 [4492] Addressed review comments
src/bin/dhcp4/tests/hooks_unittest.cc
    TEST_F(LoadUnloadDhcpv4SrvTest, unloadLibaries)  - new test that
    verifies Hooks libraries are unloaded by the Dhcpv4Srv destructor

src/bin/dhcp6/tests/hooks_unittest.cc
    TEST_F(LoadUnloadDhcpv6SrvTest, unloadLibaries)  - new test that
    verifies Hooks libraries are unloaded by the Dhcpv4Srv destructor
2016-05-06 09:07:31 -04:00
Tomek Mrugalski
de9d01b7e1 [4112] 2 new unit-tests added. 2016-05-05 15:41:47 +02:00
Tomek Mrugalski
ff432b1898 [master] Minor correction in doxygen comments.
Thanks to wpk for reporting this issue.
2016-05-05 14:55:57 +02:00
Tomek Mrugalski
38a25c7c22 [4112] selectSubnet4o6 implemented + one unit-test 2016-05-05 14:23:04 +02:00
Marcin Siodelski
3e7e09179f [master] Added ChangeLog entry for #4493. 2016-05-04 20:06:05 +02:00
Marcin Siodelski
9757a93110 [master] Merge branch 'trac4493' 2016-05-04 19:26:01 +02:00
Marcin Siodelski
669ff08326 [4493] Optimize lookup of timed out packets. 2016-05-04 18:15:48 +02:00
Marcin Siodelski
0f36ed7fc6 [4493] Updated statistics calculation.
Presented rate is now the number of ACK/Reply messages,
rather than DO/SA.
2016-05-02 19:29:12 +02:00
Tomek Mrugalski
b10602a3aa [master] ChangeLog updated after #4297 merge. 2016-05-02 17:13:50 +02:00
Tomek Mrugalski
f45d0b5d29 [master] Merge branch 'trac4297' (hook libs can now take parameters) 2016-05-02 16:42:14 +02:00
Marcin Siodelski
854aebd5c6 [4493] Extended perfdhcp test for collected packets.
The extended test verifies that the stats manager is
still usable after some packets have been collected.
2016-05-02 15:26:46 +02:00
Marcin Siodelski
54b114ef03 [4493] Improve packet collecting mechanisms in perfdhcp.
When the perfdhcp performs unordered packet lookup within
a bucket of sent packets, it will remove all timed out
transactions.
2016-05-02 14:25:23 +02:00
Marcin Siodelski
db358c1a35 [master] Corrected invalid parameter passed to the test function.
This is to eliminate some of the recently found covertity isssues.
Reviewed on jabber.
2016-05-02 11:03:35 +02:00
Thomas Markwalder
98141971d3 [4492] Explicitly unload hook libraries prior during shutdown
A call to HooksManager::getHooksManager().unloadLibraries() was added to
the destructors Dhcpv4Srv::~Dhcpv4Srv() and Dhcpv6Srv::~Dhcpv6Srv(). This
ensures hook libraries are unloaded prior to static objects.
2016-04-29 10:24:36 -04:00
Francis Dupont
12b174bbce [4297] spelling 2016-04-28 16:15:41 +02:00
Marcin Siodelski
aae4a9db6b [4281] Alterations to MySQL host database schema.
- Option code in dhcp6_options table is now SMALLINT.
- Subnet ids are now unsigned.
2016-04-28 11:33:43 +02:00
Marcin Siodelski
05033744b8 [4303] Added Changelog entry for #4303. 2016-04-27 19:25:17 +02:00
Tomek Mrugalski
7e760b7d97 [4297] Corrected headers installation dir. 2016-04-27 17:56:33 +02:00
Tomek Mrugalski
0640b86395 [4297] Addressed review comments:
- 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
2016-04-27 17:48:08 +02:00
Marcin Siodelski
942808400e [master] Merge branch 'trac4303' 2016-04-27 17:40:55 +02:00
Marcin Siodelski
97f5350c04 [4303] Removed unnecessary variable initialization. 2016-04-27 17:29:49 +02:00
Marcin Siodelski
aec8c63604 [4303] Address second round of review comments.
- No additional check for HR mode in findReservations
- Additional commentary in the loop collecting host ids.
2016-04-27 15:34:33 +02:00
Thomas Markwalder
a0477d9f40 [master] Added ChangeLog entry 1108 for #4239 2016-04-27 09:14:33 -04:00
Thomas Markwalder
131fcf52f2 [master] Unit tests now use production database scripts
Merges in trac4239.
2016-04-27 08:48:50 -04:00
Francis Dupont
6ad5c07e9e [master] Updated ChangeLog 2016-04-27 14:25:50 +02:00
Francis Dupont
5d1397efc0 [master] regen 2016-04-27 11:44:02 +00:00
Thomas Markwalder
e7bf36660d [4303] Added commentary in dhcp4_srv.h 2016-04-27 07:41:47 -04:00
Francis Dupont
e95f32ebf7 [master] Finish merge of trac4268a (DHCPv4 fields) 2016-04-27 13:32:59 +02:00
Marcin Siodelski
88da7d9cee [4303] Addressed remaining review comments. 2016-04-27 11:29:14 +02:00
Marcin Siodelski
9a34bbb53c [4303] Renamed CfgHostReservations to CfgHostOperations.
This change was suggested during a ticket review.
2016-04-26 17:18:45 +02:00