Added notes whenever a new flow risk is added

This commit is contained in:
Luca Deri
2020-06-26 23:39:48 +02:00
parent 8566288e43
commit b5f3facf7c
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -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,
+1
View File
@@ -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);