Introduced risk accountability

This commit is contained in:
Luca
2022-07-12 10:36:40 +02:00
parent cba2d12051
commit 9c235796af
2 changed files with 56 additions and 48 deletions
+8
View File
@@ -169,10 +169,18 @@ typedef enum {
CLIENT_FULL_RISK_PERCENTAGE = 100 /* 0% server risk */
} risk_percentage;
typedef enum {
NDPI_NO_ACCOUNTABILITY = 0,
NDPI_CLIENT_ACCOUNTABLE, /* flow client triggered the risk */
NDPI_SERVER_ACCOUNTABLE, /* flow server triggered the risk */
NDPI_BOTH_ACCOUNTABLE /* Both actors are responsible */
} ndpi_risk_accountability;
typedef struct {
ndpi_risk_enum risk;
ndpi_risk_severity severity;
risk_percentage default_client_risk_pctg; /* 0-100 */
ndpi_risk_accountability accountability;
} ndpi_risk_info;
/* NDPI_VISIT */