summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h')
-rw-r--r--src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h
index 427dec9d34..2d43c65093 100644
--- a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h
+++ b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h
@@ -134,6 +134,7 @@ class ProtocolHandlerImpl
* \param message_frequency_time used as time for flood filtering
* \param message_frequency_count used as maximum value of messages
* per message_frequency_time period
+ * \param malformed_message_filtering used for malformed filtering enabling
* \param malformed_message_frequency_time used as time for malformed flood filtering
* \param malformed_message_frequency_count used as maximum value of malformed
* messages per message_frequency_time period
@@ -142,6 +143,7 @@ class ProtocolHandlerImpl
explicit ProtocolHandlerImpl(
transport_manager::TransportManager *transport_manager_param,
size_t message_frequency_time, size_t message_frequency_count,
+ bool malformed_message_filtering,
size_t malformed_message_frequency_time,
size_t malformed_message_frequency_count);
@@ -530,9 +532,12 @@ class ProtocolHandlerImpl
// Use uint32_t as application identifier
utils::MessageMeter<uint32_t> message_meter_;
size_t message_max_frequency_;
+ size_t message_frequency_time_;
+ bool malformed_message_filtering_;
// Use uint32_t as connection identifier
utils::MessageMeter<uint32_t> malformed_message_meter_;
size_t malformed_message_max_frequency_;
+ size_t malformed_message_frequency_time_;
#ifdef ENABLE_SECURITY
security_manager::SecurityManager *security_manager_;