diff options
author | Thomas Markwalder <tmark@isc.org> | 2022-11-08 21:37:12 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2022-11-10 20:43:23 +0100 |
commit | f25a1c05a51cf609888b5431beea5092c132d977 (patch) | |
tree | 46b070dded55481069a2c7e2f448e6c058723421 /src/lib/tcp/tcp_messages.cc | |
parent | [#2583] Fixed ca test dir in tests/Makefile.am (diff) | |
download | kea-f25a1c05a51cf609888b5431beea5092c132d977.tar.xz kea-f25a1c05a51cf609888b5431beea5092c132d977.zip |
[#2583] Added connection filter callback
src/lib/tcp/tcp_connection.*
TcpConnection added connection_filter callback invoked in acceptorCallback()
prior to initiating handshake.
src/lib/tcp/tcp_listener.*
Added connection filter callback to ctor, which is passed into createConnection()
and used duing connection acceptance to potentially reject connections
src/lib/tcp/tests/tcp_listener_unittests.cc
Added filter test
src/lib/tcp/tests/tcp_messages.*
Added new log message
Diffstat (limited to 'src/lib/tcp/tcp_messages.cc')
-rw-r--r-- | src/lib/tcp/tcp_messages.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/tcp/tcp_messages.cc b/src/lib/tcp/tcp_messages.cc index 34ad8560d5..85f4a210b7 100644 --- a/src/lib/tcp/tcp_messages.cc +++ b/src/lib/tcp/tcp_messages.cc @@ -11,6 +11,7 @@ extern const isc::log::MessageID TCP_CLIENT_REQUEST_RECEIVED = "TCP_CLIENT_REQUE extern const isc::log::MessageID TCP_CONNECTION_CLOSE_CALLBACK_FAILED = "TCP_CONNECTION_CLOSE_CALLBACK_FAILED"; extern const isc::log::MessageID TCP_CONNECTION_HANDSHAKE_FAILED = "TCP_CONNECTION_HANDSHAKE_FAILED"; extern const isc::log::MessageID TCP_CONNECTION_HANDSHAKE_START = "TCP_CONNECTION_HANDSHAKE_START"; +extern const isc::log::MessageID TCP_CONNECTION_REJECTED_BY_FILTER = "TCP_CONNECTION_REJECTED_BY_FILTER"; extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN = "TCP_CONNECTION_SHUTDOWN"; extern const isc::log::MessageID TCP_CONNECTION_SHUTDOWN_FAILED = "TCP_CONNECTION_SHUTDOWN_FAILED"; extern const isc::log::MessageID TCP_CONNECTION_STOP = "TCP_CONNECTION_STOP"; @@ -33,6 +34,7 @@ const char* values[] = { "TCP_CONNECTION_CLOSE_CALLBACK_FAILED", "Connection close callback threw an exception", "TCP_CONNECTION_HANDSHAKE_FAILED", "TLS handshake with %1 failed with %2", "TCP_CONNECTION_HANDSHAKE_START", "start TLS handshake with %1 with timeout %2", + "TCP_CONNECTION_REJECTED_BY_FILTER", "connection from %1 has been denied by the connection filter.", "TCP_CONNECTION_SHUTDOWN", "shutting down TCP connection from %1", "TCP_CONNECTION_SHUTDOWN_FAILED", "shutting down TCP connection failed", "TCP_CONNECTION_STOP", "stopping TCP connection from %1", |