diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-10-16 23:02:52 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-10-17 06:36:30 +0200 |
commit | 49352698a031d5816d04b802ad8e0386a8a73e30 (patch) | |
tree | 2e6bdaa874d7ffb084cc8b44530b72967e8bd08b /config.h | |
parent | 6292102f93086d2d61de874640f0b87c89c02b44 (diff) |
nDPId: Added error event threshold to prevent event spamming which may be abused.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -22,6 +22,8 @@ #define nDPId_MAX_FLOWS_PER_THREAD 4096u #define nDPId_MAX_IDLE_FLOWS_PER_THREAD (nDPId_MAX_FLOWS_PER_THREAD / 32u) #define nDPId_MAX_READER_THREADS 32u +#define nDPId_ERROR_EVENT_THRESHOLD_N 16u +#define nDPId_ERROR_EVENT_THRESHOLD_TIME TIME_S_TO_US(10u) /* 10 sec */ #define nDPId_DAEMON_STATUS_INTERVAL TIME_S_TO_US(600u) /* 600 sec */ #define nDPId_MEMORY_PROFILING_LOG_INTERVAL TIME_S_TO_US(5u) /* 5 sec */ #define nDPId_COMPRESSION_SCAN_INTERVAL TIME_S_TO_US(20u) /* 20 sec */ |