]>
git.ipfire.org Git - thirdparty/kea.git/log
Thomas Markwalder [Fri, 4 Nov 2022 19:19:28 +0000 (15:19 -0400)]
[#2583] Removed request timeout
src/lib/tcp/tcp_connection.*
src/lib/tcp/tcp_listener.*
src/lib/tcp/tests/tcp_listener_unittests.cc
Removed request timeout and test
Thomas Markwalder [Fri, 4 Nov 2022 18:24:34 +0000 (14:24 -0400)]
[#2583] Clean up
src/lib/tcp/tcp_connection.cc
MAX_LOGGED_MESSAGE_SIZE -> const
src/lib/tcp/tcp_connection.h
Whitespace cleanup
src/lib/tcp/tcp_connection_acceptor.h
Fixed protector name
Removed variants of HTTP and persist.
Thomas Markwalder [Fri, 4 Nov 2022 16:20:44 +0000 (12:20 -0400)]
[#2583] Create TcpMessage base class
src/lib/tcp/Makefile.am
Uncommented .dox file
Set version to 1.0.0
Updated list of includes to install
src/lib/tcp/libkea_tcp.dox
Added MT section
src/lib/tcp/tcp_connection.*
Created base class TcpMessage with WireData member/funcs
Accessing empty wire data data() now throws
src/lib/util/strutil.*
Added dumpAsHex()
Thomas Markwalder [Fri, 4 Nov 2022 13:43:56 +0000 (09:43 -0400)]
[#2583] Improved timeout handling and UT
src/lib/tcp/tcp_connection.cc
Removed recordParamters() func and invocations
Revamped timeout setups to be request side only
- idle time measure time between complete requests
- request time measures time between request reads
TcpConnection::requestTimeoutCallback()
- Removed transaction/spawning logic and response generation/send
src/lib/tcp/tcp_messages.cc
added TCP_CLIENT_REQUEST_TIMEOUT_OCCURRED
src/lib/tcp/tests/tcp_listener_unittests.cc
Created simple listen test and new split reads test
Reworked idle timeout test
Implemented (but disabled) request timeout test
src/lib/tcp/tests/tcp_test_client.h
Added separate func for connect
ability to send truncated message, wait for EOF
Thomas Markwalder [Tue, 25 Oct 2022 14:11:36 +0000 (10:11 -0400)]
[#2583] Simple stream request/response functions
src/lib/tcp/Makefile.am
added tcp_stream.h and tcp_stream.cc
src/lib/tcp/tcp_connection.*
made TcpRequest,TcpResponse, and TcpConnection abstract
src/lib/tcp/tcp_stream.h
src/lib/tcp/tcp_stream.cc
new files that implement TcpStreamRequest and TcpStreamResponse
src/lib/tcp/tests/tcp_listener_unittests.cc
Made initial listener test functional using TcpStream classes
Thomas Markwalder [Tue, 11 Oct 2022 14:59:53 +0000 (10:59 -0400)]
[#2583] Added dox file to libkea_tcp
Changes to be committed:
modified: doc/devel/Doxyfile
modified: doc/sphinx/mes-files.txt
modified: doc/sphinx/mes_files.mk
new file: src/lib/tcp/libkea_tcp.dox
Thomas Markwalder [Wed, 5 Oct 2022 18:11:26 +0000 (14:11 -0400)]
[#2583] Incremental changes to lib/tcp
Interrim commit, still does nothing.
Unit test fleshed out but disabled.
Thomas Markwalder [Wed, 5 Oct 2022 11:19:06 +0000 (07:19 -0400)]
[#2583] Incremental changes to lib/tcp
Interrim commit, still does nothing.
Added unit test files:
src/lib/tcp/tests/tcp_listener_unittests.cc
src/lib/tcp/tests/tcp_test_client.h
Thomas Markwalder [Tue, 4 Oct 2022 10:51:58 +0000 (06:51 -0400)]
[#2583] Initial addition of src/lib/tcp
Added first draft of TcpListener classes.
They compile but don't do anything useful.
configure.ac
src/lib/Makefile.am
added tcp
src/lib/tcp/README
src/lib/tcp/tcp_connection.cc
src/lib/tcp/tcp_connection.h
src/lib/tcp/tcp_connection_acceptor.h
src/lib/tcp/tcp_connection_pool.cc
src/lib/tcp/tcp_connection_pool.h
src/lib/tcp/tcp_listener.cc
src/lib/tcp/tcp_listener.h
src/lib/tcp/tcp_log.cc
src/lib/tcp/tcp_log.h
src/lib/tcp/tcp_messages.cc
src/lib/tcp/tcp_messages.h
src/lib/tcp/tcp_messages.mes
src/lib/tcp/tests/.gitignore
src/lib/tcp/tests/Makefile.am
src/lib/tcp/tests/run_unittests.cc
- new files
Francis Dupont [Thu, 3 Nov 2022 16:29:34 +0000 (17:29 +0100)]
[#2625] Changed sprintf to snprintf
Razvan Becheriu [Tue, 25 Oct 2022 10:25:01 +0000 (13:25 +0300)]
[#2548] reordered unittests
Wlodek Wencel [Wed, 26 Oct 2022 13:09:43 +0000 (15:09 +0200)]
[#2620] bump up version to 2.3.3
Wlodek Wencel [Tue, 25 Oct 2022 09:39:21 +0000 (02:39 -0700)]
[#2610] typo fix
Wlodek Wencel [Tue, 25 Oct 2022 09:27:05 +0000 (02:27 -0700)]
[#2610] release changes
Razvan Becheriu [Tue, 25 Oct 2022 06:51:12 +0000 (09:51 +0300)]
[#2548] added tests with infinite leases
Razvan Becheriu [Mon, 24 Oct 2022 19:41:36 +0000 (22:41 +0300)]
[#2548] addressed comments
Razvan Becheriu [Wed, 19 Oct 2022 09:40:07 +0000 (12:40 +0300)]
[#2548] addressed comments
Razvan Becheriu [Wed, 12 Oct 2022 16:23:23 +0000 (19:23 +0300)]
[#2548] reverted moving tests
Razvan Becheriu [Tue, 11 Oct 2022 16:32:41 +0000 (19:32 +0300)]
[#2548] addressed review comments
Razvan Becheriu [Tue, 11 Oct 2022 16:07:48 +0000 (19:07 +0300)]
[#2548] set valid_lft_ and preferred_lft_ to 0 instead of setting cltt_
Razvan Becheriu [Mon, 10 Oct 2022 15:42:46 +0000 (18:42 +0300)]
[#2548] updated documentation
Razvan Becheriu [Mon, 10 Oct 2022 15:19:18 +0000 (18:19 +0300)]
[#2548] expire lease on release if affinity is enabled
Razvan Becheriu [Mon, 24 Oct 2022 20:09:33 +0000 (23:09 +0300)]
[#2607] bump lib versions for 2.3.2
Andrei Pavel [Mon, 24 Oct 2022 16:46:26 +0000 (19:46 +0300)]
[#2311] fix warning regarding capture of ‘this’
Warning happens when NETCONF is disabled on some compilers.
warning: explicit by-copy capture of ‘this’ redundant with by-copy capture default [enabled by default]
OR
warning: explicit capture of 'this' with a capture default of '=' is a C++20 extension
Razvan Becheriu [Mon, 24 Oct 2022 14:47:31 +0000 (17:47 +0300)]
[#248] addressed comments
Razvan Becheriu [Mon, 24 Oct 2022 13:42:03 +0000 (16:42 +0300)]
[#248] addressed comments
Razvan Becheriu [Fri, 21 Oct 2022 19:44:02 +0000 (22:44 +0300)]
[#248] regenerated parsers
Razvan Becheriu [Tue, 18 Oct 2022 12:07:53 +0000 (15:07 +0300)]
[#248] template classes can add regular classes
Razvan Becheriu [Fri, 30 Sep 2022 17:14:22 +0000 (20:14 +0300)]
[#248] using same add/get class interface
Razvan Becheriu [Mon, 12 Sep 2022 06:08:47 +0000 (09:08 +0300)]
[#248] added template classes
Marcin Siodelski [Mon, 24 Oct 2022 16:00:00 +0000 (18:00 +0200)]
[#2604] Fixed whitespace in several files
Thomas Markwalder [Mon, 24 Oct 2022 15:31:37 +0000 (11:31 -0400)]
[#2604] Addresses review comments
src/lib/dhcpsrv/mysql_lease_mgr.*
src/lib/dhcpsrv/pgsql_lease_mgr.*
addressed doxygen issues
Thomas Markwalder [Fri, 21 Oct 2022 22:29:26 +0000 (18:29 -0400)]
[#2604] Corrected compiler warnings
src/lib/dhcpsrv/mysql_lease_mgr.cc
src/lib/dhcpsrv/pgsql_lease_mgr.cc
src/lib/dhcpsrv/tests/lease_mgr_unittest.cc
Commented out unused parameters
src/lib/dhcpsrv/mysql_lease_mgr.h
src/lib/dhcpsrv/pgsql_lease_mgr.h
added missing setExtendedInfoTablesEnabled() variant
Andrei Pavel [Wed, 19 Oct 2022 13:54:57 +0000 (16:54 +0300)]
[#2400] add ChangeLog entry
Andrei Pavel [Mon, 24 Oct 2022 06:48:30 +0000 (09:48 +0300)]
[#2400] update NETCONF documentation
Andrei Pavel [Wed, 19 Oct 2022 13:37:10 +0000 (16:37 +0300)]
[#2400] improve NETCONF performance
... by retrieving data nodes only once from the sysrepo datastore and
iterating through them to get the leaves and leaf-list nodes that are
required, as opposed to retrieving each and every leaf and leaf-list
node from the datastore.
This empirically reduced the time required to push a configuration of
60k leaves and leaf-list nodes from approximately 9m30s to 3s.
Andrei Pavel [Wed, 19 Oct 2022 17:34:03 +0000 (20:34 +0300)]
[#2311] order methods alphabetically in the YANG translator
Andrei Pavel [Tue, 11 Oct 2022 18:39:53 +0000 (21:39 +0300)]
[#2311] add ChangeLog entry
Andrei Pavel [Fri, 21 Oct 2022 07:06:45 +0000 (10:06 +0300)]
[#2311] update hashes of YANG modules
Andrei Pavel [Fri, 14 Oct 2022 16:37:25 +0000 (19:37 +0300)]
[#2311] ax_find_library: add -L if pkg-config doesn't
Solves a problem in RHEL where -L${libdir} is missing from
"pkg-config --libs".
Andrei Pavel [Thu, 13 Oct 2022 16:38:57 +0000 (19:38 +0300)]
[#2311] fix ERROR: unbound variable in xml_reporting_test_lib.sh
/tmp/workspace/kea-manual/ut-extended/src/lib/testutils/xml_reporting_test_lib.sh: line 142: ERROR: unbound variable
Andrei Pavel [Wed, 12 Oct 2022 17:50:20 +0000 (20:50 +0300)]
[#2311] autoconf: include <utility> when checking for boost headers
Solves this error:
In file included from /usr/include/boost/asio.hpp:23,
from conftest.cpp:75:
/usr/include/boost/asio/awaitable.hpp: In constructor 'boost::asio::awaitable<T, Executor>::awaitable(boost::asio::awaitable<T, Executor>&&)':
/usr/include/boost/asio/awaitable.hpp:68:19: error: 'exchange' is not a member of 'std'; did you mean 'std::__atomic_impl::exchange'?
68 | : frame_(std::exchange(other.frame_, nullptr))
| ^~~~~~~~
In file included from /usr/include/c++/12/bits/shared_ptr_atomic.h:33,
from /usr/include/c++/12/memory:78,
from /usr/include/boost/asio/associated_allocator.hpp:19,
from /usr/include/boost/asio.hpp:20:
/usr/include/c++/12/bits/atomic_base.h:976:7: note: 'std::__atomic_impl::exchange' declared here
976 | exchange(_Tp* __ptr, _Val<_Tp> __desired, memory_order __m) noexcept
| ^~~~~~~~
Andrei Pavel [Wed, 12 Oct 2022 16:57:14 +0000 (19:57 +0300)]
[#2311] rename AX_SYSREPO to AX_NETCONF
Andrei Pavel [Fri, 7 Oct 2022 12:27:08 +0000 (15:27 +0300)]
[#2311] hammer.py now installs libyang2 and sysrepo2
Andrei Pavel [Wed, 5 Oct 2022 18:14:58 +0000 (21:14 +0300)]
[#2311] update NETCONF documentation
Andrei Pavel [Wed, 5 Oct 2022 17:22:31 +0000 (20:22 +0300)]
[#2311] retouch the NETCONF developer guide
Andrei Pavel [Wed, 5 Oct 2022 14:24:06 +0000 (17:24 +0300)]
[#2311] migrate src/bin/netconf to libyang2 and sysrepo2
Andrei Pavel [Wed, 5 Oct 2022 14:23:58 +0000 (17:23 +0300)]
[#2311] migrate src/lib/yang to libyang2 and sysrepo2
Andrei Pavel [Fri, 7 Oct 2022 12:51:42 +0000 (15:51 +0300)]
[#2311] fix deprecated capture of 'this' in C++20
In file included from readwrite_mutex_unittest.cc:9:
../../../../src/lib/util/readwrite_mutex.h: In lambda function:
../../../../src/lib/util/readwrite_mutex.h:57:25: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]
57 | gate1_.wait(lk, [=]() { return (!writeEntered()); });
| ^
../../../../src/lib/util/readwrite_mutex.h:57:25: note: add explicit ‘this’ or ‘*this’ capture
../../../../src/lib/util/readwrite_mutex.h: In lambda function:
../../../../src/lib/util/readwrite_mutex.h:60:25: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]
60 | gate2_.wait(lk, [=]() { return (readers() == 0); });
| ^
../../../../src/lib/util/readwrite_mutex.h:60:25: note: add explicit ‘this’ or ‘*this’ capture
../../../../src/lib/util/readwrite_mutex.h: In lambda function:
../../../../src/lib/util/readwrite_mutex.h:77:25: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]
77 | gate1_.wait(lk, [=]() { return (state_ < MAX_READERS); });
| ^
../../../../src/lib/util/readwrite_mutex.h:77:25: note: add explicit ‘this’ or ‘*this’ capture
Andrei Pavel [Wed, 5 Oct 2022 14:06:34 +0000 (17:06 +0300)]
[#2311] fix variable shadowing
adaptor_config.cc:314:29: warning: declaration of ‘pools’ shadows a previous local [-Wshadow]
314 | ConstElementPtr pools = subnet->get("pd-pools");
| ^~~~~
adaptor_config.cc:303:25: note: shadowed declaration is here
303 | ConstElementPtr pools = subnet->get("pools");
| ^~~~~
translator_host.cc: In member function ‘isc::data::ElementPtr isc::yang::TranslatorHost::getHostKea(const std::string&)’:
translator_host.cc:89:25: warning: declaration of ‘hostname’ shadows a previous local [-Wshadow]
89 | ConstElementPtr hostname = getItem(xpath + "/server-hostname");
| ^~~~~~~~
translator_host.cc:57:21: note: shadowed declaration is here
57 | ConstElementPtr hostname = getItem(xpath + "/hostname");
| ^~~~~~~~
translator_host.cc: In member function ‘void isc::yang::TranslatorHost::setHostKea(const std::string&, isc::data::ConstElementPtr)’:
translator_host.cc:165:25: warning: declaration of ‘hostname’ shadows a previous local [-Wshadow]
165 | ConstElementPtr hostname = elem->get("server-hostname");
| ^~~~~~~~
translator_host.cc:124:21: note: shadowed declaration is here
124 | ConstElementPtr hostname = elem->get("hostname");
Andrei Pavel [Tue, 20 Sep 2022 18:00:25 +0000 (21:00 +0300)]
[#2311] fix errors caused by the C++20 'requires' keyword
Andrei Pavel [Wed, 5 Oct 2022 14:18:35 +0000 (17:18 +0300)]
[#2311] detect C++20 in autoconf
And enforce -std=c++20 when building
--with-libyang-cpp or --with-sysrepo-cpp.
Andrei Pavel [Wed, 5 Oct 2022 14:16:03 +0000 (17:16 +0300)]
[#2311] migrate autoconf to libyang2 and sysrepo2
Andrei Pavel [Thu, 6 Oct 2022 10:05:34 +0000 (13:05 +0300)]
[#2311] ax_find_library: search for .pc file in lib64 as well
Francis Dupont [Wed, 19 Oct 2022 21:45:54 +0000 (23:45 +0200)]
[#2595] Addressed comments
Francis Dupont [Tue, 18 Oct 2022 21:11:44 +0000 (23:11 +0200)]
[#2595] Post rebase updates
Francis Dupont [Sun, 16 Oct 2022 23:14:49 +0000 (01:14 +0200)]
[#2595] Updated all-keys.json files
Francis Dupont [Sun, 16 Oct 2022 21:53:05 +0000 (23:53 +0200)]
[#2595] Finished
Francis Dupont [Sun, 16 Oct 2022 20:00:04 +0000 (22:00 +0200)]
[#2595] Checkpoint: to do v6 pedantic and doc
Francis Dupont [Sun, 16 Oct 2022 18:01:38 +0000 (20:01 +0200)]
[#2595] Checkpoint: v6 tests and doc
Francis Dupont [Sat, 15 Oct 2022 23:00:33 +0000 (23:00 +0000)]
[2595] regen flex/bison
Francis Dupont [Sat, 15 Oct 2022 22:54:30 +0000 (00:54 +0200)]
[#2595] Checkpoint: updated parsers
Francis Dupont [Tue, 18 Oct 2022 20:16:03 +0000 (22:16 +0200)]
[#2585] Wrote createFromString tool
Francis Dupont [Tue, 18 Oct 2022 16:06:58 +0000 (18:06 +0200)]
[#2585] Addressed not v6 specific UT names
Francis Dupont [Tue, 18 Oct 2022 16:02:16 +0000 (18:02 +0200)]
[#2585] Addressed naming comment
Francis Dupont [Fri, 14 Oct 2022 20:39:14 +0000 (22:39 +0200)]
[#2585] Checkpoint: almost done
Francis Dupont [Fri, 14 Oct 2022 15:01:57 +0000 (17:01 +0200)]
[#2585] Checkpoint: finish unit tests
Francis Dupont [Fri, 14 Oct 2022 00:27:32 +0000 (02:27 +0200)]
[#2585] Checkpoint: tests to add
Francis Dupont [Thu, 29 Sep 2022 16:10:53 +0000 (18:10 +0200)]
[#2357] Updated doc
Francis Dupont [Thu, 29 Sep 2022 15:58:41 +0000 (17:58 +0200)]
[#2357] Filled dhcp-agent-options-space
Francis Dupont [Tue, 18 Oct 2022 08:44:48 +0000 (10:44 +0200)]
[#2566] Improved wording
Andrei Pavel [Tue, 18 Oct 2022 08:05:59 +0000 (11:05 +0300)]
[#2566] Reworded the note in doc about backend not supporting host collections
Francis Dupont [Fri, 7 Oct 2022 16:28:08 +0000 (18:28 +0200)]
[#2566] Added a note in doc about backend not supporting host collections
Francis Dupont [Fri, 7 Oct 2022 16:23:21 +0000 (18:23 +0200)]
[#2566] Added a ChangeLog entry
Dan Theisen [Mon, 17 Oct 2022 20:04:08 +0000 (13:04 -0700)]
[#2220] Fix syntax and add a note
Dan Theisen [Mon, 17 Oct 2022 13:19:46 +0000 (06:19 -0700)]
[#2220] Re-order changelog
Dan Theisen [Wed, 12 Oct 2022 20:26:44 +0000 (13:26 -0700)]
[#2220] Fix up sphinx errors
Dan Theisen [Wed, 12 Oct 2022 20:19:05 +0000 (13:19 -0700)]
[#2220] Add upgrade caveat section to install
Dan Theisen [Wed, 12 Oct 2022 19:33:59 +0000 (12:33 -0700)]
[#2220] Add more distro instructions to quickstart
Dan Theisen [Fri, 7 Oct 2022 12:51:34 +0000 (05:51 -0700)]
[#2220] Add ChangeLog entry and documentation
Francis Dupont [Wed, 12 Oct 2022 22:30:26 +0000 (00:30 +0200)]
[#2587] Updated DORA store extended info tests
Francis Dupont [Tue, 11 Oct 2022 22:47:30 +0000 (00:47 +0200)]
[#2587] Fixed RST
Francis Dupont [Tue, 11 Oct 2022 22:28:22 +0000 (00:28 +0200)]
[#2587] Added a ChangeLog entry
Francis Dupont [Tue, 11 Oct 2022 22:20:24 +0000 (00:20 +0200)]
[#2587] Addressed comments
Francis Dupont [Thu, 6 Oct 2022 19:47:39 +0000 (21:47 +0200)]
[#2587] Done (note the doc should be updated)
Andrei Pavel [Thu, 13 Oct 2022 11:04:25 +0000 (14:04 +0300)]
[#2539] hammer.py: ldconfig after make install
Francis Dupont [Tue, 11 Oct 2022 22:41:50 +0000 (00:41 +0200)]
[#2588] Removed spurious blank line
Francis Dupont [Tue, 11 Oct 2022 14:17:48 +0000 (16:17 +0200)]
[#2588] Added a ChangeLog entry
Francis Dupont [Tue, 11 Oct 2022 14:14:48 +0000 (16:14 +0200)]
[#2588] Updated code and unit tests
Francis Dupont [Tue, 4 Oct 2022 15:09:05 +0000 (17:09 +0200)]
[#2584] Split lease6 extended info class
Francis Dupont [Tue, 4 Oct 2022 14:53:25 +0000 (16:53 +0200)]
[#2584] Added constructors
Francis Dupont [Tue, 4 Oct 2022 14:42:35 +0000 (16:42 +0200)]
[#2584] Reverted shared v4/v6 code
Francis Dupont [Tue, 4 Oct 2022 14:39:44 +0000 (16:39 +0200)]
[#2584] Removed v4 code
Francis Dupont [Tue, 4 Oct 2022 11:12:08 +0000 (13:12 +0200)]
[#2584] Reverted hostname index to ordered
Francis Dupont [Tue, 4 Oct 2022 09:34:56 +0000 (11:34 +0200)]
[#2584] Added extended info containers
Dan Theisen [Tue, 11 Oct 2022 08:02:57 +0000 (01:02 -0700)]
[#2543] Change verbiage in ARM; add newline
Dan Theisen [Tue, 11 Oct 2022 02:49:47 +0000 (19:49 -0700)]
[#2543] Implement changes for code review
Dan Theisen [Thu, 29 Sep 2022 12:02:27 +0000 (05:02 -0700)]
[#2543] Add ChangeLog entry
Dan Theisen [Thu, 29 Sep 2022 11:54:18 +0000 (04:54 -0700)]
[#2543] Fix title underline in ARM
Dan Theisen [Thu, 29 Sep 2022 11:48:45 +0000 (04:48 -0700)]
[#2543] Add sphinx documentation