aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-02-03 13:20:54 +0100
committerLuca Deri <deri@ntop.org>2022-02-03 13:20:54 +0100
commit7aef27f85e86302130bf8dffaf9809d488856427 (patch)
treeaf1164f3be4a4bdc3cea1a9bacfa83c4db8c3961 /src/include
parent0dd5ac89f842ac37f4c36ff67620a49b9e7eb76f (diff)
Added NDPI_ERROR_CODE_DETECTED risk
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_typedefs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index f8b366bd1..5d2f99882 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -68,8 +68,6 @@ typedef enum {
1. Add a new flow alert key to the enum FlowAlertTypeEnum in include/ntop_typedefs.h
2. Add the very same flow alert key to the table flow_alert_keys in scripts/lua/modules/alert_keys/flow_alert_keys.lua
3. Add the risk to the array risk_enum_to_alert_type in src/FlowRiskAlerts.cpp
- - To initialize .alert_type use the flow alert key added in 1. and an AlertCategory
- - To initialize .alert_lua_name use a unique string
Example: https://github.com/ntop/ntopng/commit/aecc1e3e6505a0522439dbb2b295a3703d3d0f9a
*/
@@ -117,7 +115,8 @@ typedef enum {
NDPI_POSSIBLE_EXPLOIT, /* Log4J and other exploits */
NDPI_TLS_CERTIFICATE_ABOUT_TO_EXPIRE,
NDPI_PUNYCODE_IDN, /* https://en.wikipedia.org/wiki/Punycode */
-
+ NDPI_ERROR_CODE_DETECTED,
+
/* Leave this as last member */
NDPI_MAX_RISK /* must be <= 63 due to (**) */
} ndpi_risk_enum;