Added ndpi_risk2severity() API call

This commit is contained in:
Luca
2021-05-02 19:35:01 +02:00
parent 153d11c920
commit ce54a6ab57
3 changed files with 57 additions and 2 deletions
+2 -1
View File
@@ -1501,7 +1501,8 @@ extern "C" {
void ndpi_serialize_risk(ndpi_serializer *serializer, struct ndpi_flow_struct *flow);
const char* ndpi_risk2str(ndpi_risk_enum risk);
const ndpi_risk_severity ndpi_risk2severity(ndpi_risk_enum risk);
/* ******************************* */
/* HyperLogLog cardinality estimator */
+8 -1
View File
@@ -63,7 +63,7 @@ typedef enum {
NOTE
When the typedef below is modified don't forget to update
- nDPI/wireshark/ndpi.lua
- ndpi_risk2str (in ndpi_utils.c)
- ndpi_risk2str and ndpi_risk2severity (in ndpi_utils.c)
- https://github.com/ntop/ntopng/blob/dev/scripts/lua/modules/flow_risk_utils.lua
- ndpi_risk_enum (in python/ndpi.py)
*/
@@ -107,6 +107,13 @@ typedef enum {
typedef u_int64_t ndpi_risk; /* (**) */
typedef enum {
NDPI_RISK_LOW,
NDPI_RISK_MEDIUM,
NDPI_RISK_HIGH,
NDPI_RISK_SEVERE
} ndpi_risk_severity;
/* NDPI_VISIT */
typedef enum {
ndpi_preorder,