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