Added notes whenever a new flow risk is added
This commit is contained in:
@@ -52,8 +52,9 @@ typedef enum {
|
||||
|
||||
/*
|
||||
NOTE
|
||||
When the typedef below is modified don't forget
|
||||
to update ndpi_risk2str (in ndpi_utils.c)
|
||||
When the typedef below is modified don't forget to update
|
||||
- ndpi_risk2str (in ndpi_utils.c)
|
||||
- https://github.com/ntop/ntopng/blob/dev/scripts/lua/modules/flow_risk_utils.lua
|
||||
*/
|
||||
typedef enum {
|
||||
NDPI_NO_RISK = 0,
|
||||
|
||||
@@ -1503,6 +1503,7 @@ const char* ndpi_risk2str(ndpi_risk_enum risk) {
|
||||
|
||||
case NDPI_MALFORMED_PACKET:
|
||||
return("Malformed packet");
|
||||
|
||||
default:
|
||||
snprintf(buf, sizeof(buf), "%d", (int)risk);
|
||||
return(buf);
|
||||
|
||||
Reference in New Issue
Block a user