From 7aef27f85e86302130bf8dffaf9809d488856427 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 3 Feb 2022 13:20:54 +0100 Subject: Added NDPI_ERROR_CODE_DETECTED risk --- src/include/ndpi_typedefs.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/include/ndpi_typedefs.h') 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; -- cgit v1.2.3