]>
git.ipfire.org Git - thirdparty/kea.git/log
Andrei Pavel [Thu, 20 Feb 2025 13:33:23 +0000 (15:33 +0200)]
[#3730] Update meson.sh to pull latest
Francis Dupont [Thu, 20 Feb 2025 15:28:43 +0000 (16:28 +0100)]
[#3730] Moved .libs to @dotlibs@
Francis Dupont [Thu, 20 Feb 2025 00:02:16 +0000 (01:02 +0100)]
[#3730] Added generate parser
Francis Dupont [Wed, 19 Feb 2025 21:51:36 +0000 (22:51 +0100)]
[#3730] Added generate messages
Francis Dupont [Tue, 18 Feb 2025 14:54:20 +0000 (15:54 +0100)]
[#3730] Shell tests, src/bin, doc
Thomas Markwalder [Wed, 19 Feb 2025 18:16:49 +0000 (13:16 -0500)]
[#3463] Added note to ARM
modified: arm/hooks-lease-cmds.rst
Thomas Markwalder [Wed, 19 Feb 2025 15:12:34 +0000 (10:12 -0500)]
[#3463] Addressed review comments
/src/hooks/dhcp/lease_cmds/lease_cmds.cc
Add null lease checks
/src/lib/dhcpsrv/lease.cc
Lease4::decline() - wipe user context
/src/lib/dhcpsrv/tests/lease_unittest.cc
TEST_F(Lease4Test, decline) - verify user context
is wiped
Francis Dupont [Wed, 19 Feb 2025 10:27:18 +0000 (11:27 +0100)]
[#3463] Spelling
Francis Dupont [Wed, 19 Feb 2025 10:24:46 +0000 (11:24 +0100)]
[#3463] Spelling
Francis Dupont [Wed, 19 Feb 2025 10:20:01 +0000 (11:20 +0100)]
[#3463] Updated meson.build files
Thomas Markwalder [Tue, 18 Feb 2025 19:24:17 +0000 (14:24 -0500)]
[#3463] Fixed JSON error in ARM
Thomas Markwalder [Tue, 18 Feb 2025 18:52:50 +0000 (13:52 -0500)]
[#3463] Addressed most of review comments
Thomas Markwalder [Mon, 10 Feb 2025 13:26:06 +0000 (08:26 -0500)]
[#3463} Fix Changelog indent
Thomas Markwalder [Mon, 10 Feb 2025 13:03:18 +0000 (08:03 -0500)]
[#3464} Fix ARM again
Added missing blank line.
Thomas Markwalder [Mon, 10 Feb 2025 12:54:18 +0000 (07:54 -0500)]
[#3463] Fix JSON in ARM
modified: hooks-lease-cmds.rst
Thomas Markwalder [Fri, 7 Feb 2025 18:53:47 +0000 (13:53 -0500)]
[#3463] Updated ARM
new file:
changelog_unreleased/3463-optionally-store-response-dhcp-options-in-lease-user-context
modified:
doc/sphinx/arm/hooks-lease-cmds.rst
Thomas Markwalder [Thu, 6 Feb 2025 20:22:29 +0000 (15:22 -0500)]
[#3463] V6 UTs working
Finished V6 UTs. Also re-organized tests so those
that rely on loading the library are now in libloadtests:
tests/lease_cmds4_unittest.cc -> libloadtests/lease_cmds4_unittest.cc
tests/lease_cmds6_unittest.cc -> libloadtests/lease_cmds6_unittest.cc
tests/lease_cmds_unittest.cc -> libloadtests/lease_cmds_unittest.cc
tests/lease_cmds_unittest.h -> libloadtests/lease_cmds_unittest.h
Create new files to house new callout handler tests which rely on
the library being linked in so functions are visible:
new file: tests/lease_cmds_func4_unittest.cc
new file: tests/lease_cmds_func6_unittest.cc
new file: tests/lease_cmds_func_unittest.h
/src/hooks/dhcp/lease_cmds/lease_cmds.cc
LeaseCmdsImpl::leases6Committed() - track but don't
throw on leases that fail so all leases are attempted
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
Tweaked and reordered
/src/hooks/dhcp/lease_cmds/libloadtests/Makefile.am
Added lease_cmds_unittest* here since they rely on
loading the library
/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc
/src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc
removed new code relating to callout handler tests as they
use lib functions directly
/src/hooks/dhcp/lease_cmds/tests/Makefile.am
Removed lease_cmds*_unittest.* (now in libloadatests)
Added lease_cmds_func*_unittest.*
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
Moved BindingVariableHandlerTest code into
lease_cmds_func*_unittest.*
Thomas Markwalder [Wed, 5 Feb 2025 17:10:37 +0000 (12:10 -0500)]
[#3463] Added v6 implementation
/src/bin/dhcp6/dhcp6_srv.cc
Dhcpv6Srv::processLocalizedQuery6() - add response6 to leases6_committed
callout arguments
/src/bin/dhcp6/tests/hooks_unittest.cc
Update tests to expect with response6
/src/hooks/dhcp/lease_cmds/lease_cmds.*
Add leases6Committed() handler
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
Add leases6_committed()callout
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
LEASE_CMDS_LEASES6_COMMITTED_FAILED - new message
/src/hooks/dhcp/lease_cmds/tests/lease_cmds6_unittest.cc
TEST_F(Lease6CmdsTest, validLeases6Committed)
TEST_F(Lease6CmdsTest, validLeases6CommittedMultiThreading)
TEST_F(Lease6CmdsTest, nopLeases6Committed)
TEST_F(Lease6CmdsTest, nopLeases6CommittedMultiThreading)
- new tests
Thomas Markwalder [Mon, 3 Feb 2025 20:00:23 +0000 (15:00 -0500)]
[#3463] Add response4 to V4 callout arguments
/src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processLocalizedQuery4(AllocEngine::ClientContext4Ptr& ctx,
- Added response4 argument to lease4_offer and leases4_committed callout_handles.
/src/bin/dhcp4/tests/hooks_unittest.cc
Updated tests
/src/hooks/dhcp/lease_cmds/lease_cmds.*
lease4_offer() handling
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
added lease4_offer callout
/src/hooks/dhcp/lease_cmds/libloadtests/load_unload_unittests.cc
TEST_F(LeaseCmdsCbLibLoadTest, verifyCallouts4)
TEST_F(LeaseCmdsCbLibLoadTest, verifyCallouts6) - new tests
/src/hooks/dhcp/lease_cmds/tests/lease_cmds4_unittest.cc
TEST_F(Lease4CmdsTest, validLease4Offer)
TEST_F(Lease4CmdsTest, validLease4OfferMultiThreading)
TEST_F(Lease4CmdsTest, nopLeases4Committed)
TEST_F(Lease4CmdsTest, nopLeases4CommittedMultiThreading)
- new tests
Thomas Markwalder [Fri, 31 Jan 2025 16:29:20 +0000 (11:29 -0500)]
[#3463] Implementd leases4_committed callout
/src/hooks/dhcp/lease_cmds/binding_variables.cc
BindingVariableMgr::evaluateVariables()
- Add a throw if query,response, or lease are empty
/src/hooks/dhcp/lease_cmds/lease_cmds.*
LeaseCmdsImpl::leases4Committed()
LeaseCmds::leases4Committed()
- implemented callout handler
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
leases4_committed(CalloutHandle& handle) - new callout
/src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes
LEASE_CMDS_LEASES4_COMMITTED_NOTHING_TO_UPDATE
LEASE_CMDS_LEASES4_COMMITTED_FAILED processing - new messages
/src/hooks/dhcp/lease_cmds/tests/lease_cmds4_unittest.cc
void Lease4CmdsTest::testValidLeases4Committed()
TEST_F(Lease4CmdsTest, validLeases4Committed)
TEST_F(Lease4CmdsTest, validLeases4CommittedMultiThreading)
- new tests
Thomas Markwalder [Thu, 30 Jan 2025 18:47:04 +0000 (13:47 -0500)]
[#3463] Add evaluateVariables UTs
/src/hooks/dhcp/lease_cmds/binding_variables.cc
BindingVariableMgr::evaluateVariables() - store empty
evaluated variable values
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
TEST(BindingVariableMgrTest, evaluateVariables4) - new test
TEST(BindingVariableMgrTest, evaluateVariables6) - new test
src/lib/dhcpsrv/lease.cc
fixed spacing
Thomas Markwalder [Tue, 28 Jan 2025 20:52:54 +0000 (15:52 -0500)]
[#3463] Add BindingVariableMgr::evaluateVariables
/src/hooks/dhcp/lease_cmds/binding_variables.*
BindingVariableMgr::evaluateVariables() - initial implementation
/src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::updateLease4ExtendedInfo()
AllocEngine::updateLease6ExtendedInfo()
- use Lease::updateUserContextISC()
/src/lib/dhcpsrv/lease.*
bool Lease::updateUserContextISC() - new function that
adds/updates an element in the "ISC" map in the lease's
user-context.
Thomas Markwalder [Tue, 28 Jan 2025 15:13:46 +0000 (10:13 -0500)]
[#3463] Added BindingVariableMgr
Library can now be configured with binding variables.
/src/hooks/dhcp/lease_cmds/binding_variables.*
Adding BindingVariableMgr class
/src/hooks/dhcp/lease_cmds/lease_cmds_callouts.cc
Adding manager singleton, created and configured
in load()
/src/hooks/dhcp/lease_cmds/libloadtests/load_unload_unittests.cc
Added valid configuration to load tests
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
TEST(BindingVariableMgrTest, validConfigure)
TEST(BindingVariableMgrTest, clearOnConfigure)
TEST(BindingVariableMgrTest, invalidConfigure) - new tests
/src/lib/dhcpsrv/testutils/lib_load_test_fixture.h
Added check of load/unload lib functions to catch
config errors.
Thomas Markwalder [Mon, 27 Jan 2025 14:34:31 +0000 (09:34 -0500)]
[#3463] Added parsing to BindingVariable
/src/hooks/dhcp/lease_cmds/binding_variables.*
BindingVariable::parse() - added simple parsing
function
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
TEST(BindingVariableTest, validParsing)
TEST(BindingVariableTest, invalidParsing) - new tests
Thomas Markwalder [Fri, 24 Jan 2025 14:17:03 +0000 (09:17 -0500)]
[#3463] Added getter UTs and dup behavior
modified: src/hooks/dhcp/lease_cmds/binding_variables.cc
modified: src/hooks/dhcp/lease_cmds/binding_variables.h
modified: src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
Thomas Markwalder [Thu, 23 Jan 2025 20:11:37 +0000 (15:11 -0500)]
[#3463] Added BindingVariable classes to lease cmds
/src/hooks/dhcp/lease_cmds/Makefile.am
added new files
/src/hooks/dhcp/lease_cmds/binding_variables.cc
/src/hooks/dhcp/lease_cmds/binding_variables.h
new files
/src/hooks/dhcp/lease_cmds/tests/Makefile.am
added new file
/src/hooks/dhcp/lease_cmds/tests/binding_variables_unittest.cc
new file
Thomas Markwalder [Tue, 18 Feb 2025 15:03:12 +0000 (15:03 +0000)]
[#3712] Addressed review comments
Couple of typos fixed.
Thomas Markwalder [Tue, 11 Feb 2025 18:52:41 +0000 (18:52 +0000)]
[#3712] Avoid assert on empty packet
/src/lib/dhcp/pkt_filter_lpf.cc
PktFilterLPF::receive() - throw if packet has no data
/src/lib/util/buffer.h
InputBuffer::readVecotr() - avoid peek if read request length is 0
/src/lib/util/tests/buffer_unittest.cc
Updated test
Andrei Pavel [Mon, 17 Feb 2025 09:05:18 +0000 (11:05 +0200)]
[#3729] Add meson.sh to pull fixed meson version
Andrei Pavel [Mon, 17 Feb 2025 09:03:38 +0000 (11:03 +0200)]
[#3729] Add netconf
Andrei Pavel [Mon, 17 Feb 2025 09:02:58 +0000 (11:02 +0200)]
[#3729] Fix yang
Francis Dupont [Sat, 15 Feb 2025 09:51:24 +0000 (10:51 +0100)]
[#3729] Added share/yang stuff
Francis Dupont [Sat, 15 Feb 2025 09:05:31 +0000 (10:05 +0100)]
[#3729] Added HAVE_OPTRESET
Francis Dupont [Fri, 14 Feb 2025 23:46:00 +0000 (00:46 +0100)]
[#3729] Fixed Botan build
Francis Dupont [Fri, 14 Feb 2025 23:19:27 +0000 (00:19 +0100)]
[#3729] Began perfdhcp UTs
Francis Dupont [Fri, 14 Feb 2025 22:30:06 +0000 (23:30 +0100)]
[#3729] Finished agent tests
Francis Dupont [Fri, 14 Feb 2025 21:15:34 +0000 (22:15 +0100)]
[#3729] Chmod
Francis Dupont [Fri, 14 Feb 2025 17:59:45 +0000 (18:59 +0100)]
[#3729] Added dhcp6 tests
Andrei Pavel [Fri, 14 Feb 2025 13:10:23 +0000 (15:10 +0200)]
[#3729] Add the rest of the meson.build files
Francis Dupont [Tue, 11 Feb 2025 22:13:13 +0000 (23:13 +0100)]
[#3729] Added libyang UTs
Andrei Pavel [Tue, 11 Feb 2025 13:47:46 +0000 (15:47 +0200)]
[#3729] Add fuzz meson files, fix gss and user_chk
Andrei Pavel [Tue, 11 Feb 2025 11:24:50 +0000 (13:24 +0200)]
[#3729] Use version_compare on meson version
Gets rid of the warning.
Francis Dupont [Tue, 11 Feb 2025 11:10:30 +0000 (12:10 +0100)]
[#3729] Finished variable cleanup
Francis Dupont [Tue, 11 Feb 2025 08:58:06 +0000 (09:58 +0100)]
[#3729] Checkpoint: put local vars in lower
Francis Dupont [Mon, 10 Feb 2025 22:04:49 +0000 (23:04 +0100)]
[#3729] Moved boost and threads to project deps
Francis Dupont [Mon, 10 Feb 2025 20:14:20 +0000 (21:14 +0100)]
[#3729] Checked --no-undefined only when supported
Andrei Pavel [Mon, 10 Feb 2025 14:03:42 +0000 (16:03 +0200)]
[#3729] Add gssapi requirement to krb5 dependency
Andrei Pavel [Mon, 10 Feb 2025 11:14:54 +0000 (13:14 +0200)]
[#3729] Add gtest dependency to all testutils
Andrei Pavel [Mon, 10 Feb 2025 10:51:53 +0000 (12:51 +0200)]
[#3729] Add SYSCONFDIR
Andrei Pavel [Mon, 10 Feb 2025 10:11:15 +0000 (12:11 +0200)]
[#3729] Fix yang dependency detection
Andrei Pavel [Mon, 10 Feb 2025 09:58:27 +0000 (11:58 +0200)]
[#3729] Be more lenient with the meson version
Andrei Pavel [Mon, 10 Feb 2025 07:56:40 +0000 (09:56 +0200)]
[#3729] Add LOG4CPLUS_INITIALIZER_H check
Andrei Pavel [Mon, 10 Feb 2025 07:53:14 +0000 (09:53 +0200)]
[#3729] Always check ENVIRON_SHLIB_FLAGS
Francis Dupont [Sun, 9 Feb 2025 00:43:13 +0000 (01:43 +0100)]
[#3729] Improved config report
Francis Dupont [Sat, 8 Feb 2025 09:13:47 +0000 (10:13 +0100)]
[#3729] Checking schema upgrade list lengths
Francis Dupont [Sat, 8 Feb 2025 04:03:43 +0000 (05:03 +0100)]
[#3729] Finished dhcp4 UTs
Francis Dupont [Sat, 8 Feb 2025 03:04:58 +0000 (04:04 +0100)]
[#3729] Checkpoint: almost finished dhcp4 UTs
Francis Dupont [Fri, 7 Feb 2025 10:20:45 +0000 (11:20 +0100)]
[#3729] Checkpoint: doing dhcp4 tests
Francis Dupont [Fri, 7 Feb 2025 09:27:11 +0000 (10:27 +0100)]
[#3729] Removed static_library with_links
Francis Dupont [Fri, 7 Feb 2025 02:04:24 +0000 (03:04 +0100)]
[#3729] Checkpoint: lfc UTs
Francis Dupont [Fri, 7 Feb 2025 01:41:02 +0000 (02:41 +0100)]
[#3729] Began bin
Francis Dupont [Thu, 6 Feb 2025 17:06:03 +0000 (18:06 +0100)]
[#3729] Enabled iface mgr UTs
Francis Dupont [Thu, 6 Feb 2025 16:48:56 +0000 (17:48 +0100)]
[#3729] Checkpoint: improvements
Andrei Pavel [Thu, 6 Feb 2025 10:58:18 +0000 (12:58 +0200)]
[#3729] Fix regression in src/lib/log/tests/Makefile.am
Francis Dupont [Thu, 6 Feb 2025 12:30:30 +0000 (13:30 +0100)]
[#3729] Checkpoint: hook tests
Francis Dupont [Thu, 6 Feb 2025 03:18:29 +0000 (04:18 +0100)]
[#3729] Fixed FreeBSD support
Francis Dupont [Thu, 6 Feb 2025 03:03:47 +0000 (04:03 +0100)]
[#3729] Added bootp tests (tentative)
Francis Dupont [Thu, 6 Feb 2025 01:38:06 +0000 (02:38 +0100)]
[#3729] Added share install
Francis Dupont [Thu, 6 Feb 2025 00:31:30 +0000 (01:31 +0100)]
[#3729] Finished lib tests
Francis Dupont [Wed, 5 Feb 2025 23:31:28 +0000 (00:31 +0100)]
[#3729] Updated crypto related tests
Francis Dupont [Wed, 5 Feb 2025 23:08:02 +0000 (00:08 +0100)]
[#3729] Finished log tests
Francis Dupont [Wed, 5 Feb 2025 15:16:17 +0000 (16:16 +0100)]
[#3729] Added check for environ vs shlib
Francis Dupont [Wed, 5 Feb 2025 12:08:58 +0000 (13:08 +0100)]
[#3729] Added crypto dependency to dhcpsrc/tests
Francis Dupont [Wed, 5 Feb 2025 11:32:14 +0000 (12:32 +0100)]
[#3729] Added remaining lib tests
Andrei Pavel [Wed, 5 Feb 2025 06:51:26 +0000 (08:51 +0200)]
[#3729] Add missing dependencies
Francis Dupont [Wed, 5 Feb 2025 00:53:04 +0000 (01:53 +0100)]
[#3729] Added unit tests (1)
Francis Dupont [Wed, 5 Feb 2025 00:10:44 +0000 (01:10 +0100)]
[#3729] Updated meson.build files
Andrei Pavel [Tue, 4 Feb 2025 14:58:43 +0000 (16:58 +0200)]
[#3729] The remaining Meson C++ targets
Andrei Pavel [Tue, 14 Jan 2025 15:15:46 +0000 (17:15 +0200)]
[#3666] add ChangeLog entry
Andrei Pavel [Tue, 14 Jan 2025 11:33:39 +0000 (13:33 +0200)]
[#3666] kea-admin lease-upload: write SQL statements to file
Avoids "Argument list too long".
Also considerably speeds up the lease upload. The slowdown was
noticeable for large number of leases, where for each lease, the whole
set of statements added up to that point had to be printed in order to
append another SQL statement. This is no longer the case since the SQL
statement is appended to a file.
Razvan Becheriu [Mon, 10 Feb 2025 18:59:17 +0000 (20:59 +0200)]
[#3694] addressed review comments
Razvan Becheriu [Fri, 7 Feb 2025 12:35:47 +0000 (14:35 +0200)]
[#3694] throw error when switching from/to TLS
Razvan Becheriu [Mon, 3 Feb 2025 21:22:05 +0000 (23:22 +0200)]
[#3694] addressed review comments
Razvan Becheriu [Wed, 8 Jan 2025 18:53:31 +0000 (20:53 +0200)]
[#3694] apply tls settings on reload
Razvan Becheriu [Fri, 7 Feb 2025 11:32:29 +0000 (11:32 +0000)]
[#3744] use builddir instead of top_builddir
Razvan Becheriu [Thu, 6 Feb 2025 20:24:53 +0000 (22:24 +0200)]
[#3744] test blocking write socket
Francis Dupont [Tue, 4 Feb 2025 14:02:15 +0000 (15:02 +0100)]
[#3742] Applied fix
Andrei Pavel [Wed, 5 Feb 2025 14:17:15 +0000 (16:17 +0200)]
[#3711] hammer.py: Switch to libpq in RHEL too
Andrei Pavel [Tue, 4 Feb 2025 10:07:49 +0000 (12:07 +0200)]
[#3443] Extra additions to the additions to the Meson Proof of Concept
Francis Dupont [Fri, 31 Jan 2025 18:13:55 +0000 (19:13 +0100)]
[#3443] Meson fixes
* Removed unsupported botan-3
* Fixed CHRONO_SAME_DURATION
* Updated crypto selection
* Updated botan config
* Removed pgsql server dependency
* Added header install to src/lib/util
* Added ALLOW_KEATEST
* Added TEST_CA_DIR
* Fixed again a typo
* Fixed gtest dependency
* Added log interprocess tests
* Added asiolink tests
* Added mysql tests
* Added mysql tests
* Changed hook suffix to so
* Reverted gtest dependency
* Removed testutils install
Andrei Pavel [Wed, 29 Jan 2025 11:23:29 +0000 (13:23 +0200)]
[#3443] Additions to the initial meson Proof of Concept
Andrei Pavel [Tue, 28 Jan 2025 09:15:35 +0000 (11:15 +0200)]
[#3443] Exclude compiler-checks from CI
Andrei Pavel [Thu, 19 Dec 2024 11:27:16 +0000 (13:27 +0200)]
[#3443] Proof of Concept: meson
Andrei Pavel [Fri, 31 Jan 2025 07:39:59 +0000 (09:39 +0200)]
[#3711] Add ChangeLog entry
Andrei Pavel [Fri, 31 Jan 2025 10:49:09 +0000 (12:49 +0200)]
[#3711] Update supported systems in hammer.py
Andrei Pavel [Fri, 31 Jan 2025 09:17:29 +0000 (11:17 +0200)]
[#3711] Remove postgresql server dev packages from hammer.py
Andrei Pavel [Fri, 31 Jan 2025 07:35:15 +0000 (09:35 +0200)]
[#3711] Remove the autotools check for PostgreSQL's utils/errcodes.h
Andrei Pavel [Fri, 31 Jan 2025 07:34:28 +0000 (09:34 +0200)]
[#3731] Remove include "utils/errcodes.h"
Effectively removes the dependency on the server-side PostgreSQL library.
Francis Dupont [Sat, 25 Jan 2025 14:39:21 +0000 (15:39 +0100)]
[#3726] Protected PROTOCOL_VERSION in Botan wrapper
Francis Dupont [Wed, 29 Jan 2025 08:20:01 +0000 (09:20 +0100)]
[#3082] Fixed fuzz