Added risk/score dump (ndpiReader -h)
Added ndpi_dump_risks_score() API score
This commit is contained in:
@@ -680,6 +680,13 @@ extern "C" {
|
||||
*/
|
||||
void ndpi_dump_protocols(struct ndpi_detection_module_struct *mod);
|
||||
|
||||
/**
|
||||
* Write the list of the scores and their associated risks
|
||||
*
|
||||
* @par ndpi_mod = the detection module
|
||||
*/
|
||||
void ndpi_dump_risks_score();
|
||||
|
||||
/**
|
||||
* Read a file and load the protocols
|
||||
*
|
||||
@@ -1512,6 +1519,7 @@ extern "C" {
|
||||
void ndpi_serialize_risk(ndpi_serializer *serializer, struct ndpi_flow_struct *flow);
|
||||
|
||||
const char* ndpi_risk2str(ndpi_risk_enum risk);
|
||||
const char* ndpi_severity2str(ndpi_risk_severity s);
|
||||
ndpi_risk_severity ndpi_risk2severity(ndpi_risk_enum risk);
|
||||
u_int16_t ndpi_risk2score(ndpi_risk risk);
|
||||
|
||||
|
||||
@@ -114,10 +114,12 @@ typedef enum {
|
||||
NDPI_RISK_SEVERE
|
||||
} ndpi_risk_severity;
|
||||
|
||||
#define NDPI_SCORE_RISK_LOW 10
|
||||
#define NDPI_SCORE_RISK_MEDIUM 50
|
||||
#define NDPI_SCORE_RISK_HIGH 100
|
||||
#define NDPI_SCORE_RISK_SEVERE 250
|
||||
typedef enum {
|
||||
NDPI_SCORE_RISK_LOW = 10,
|
||||
NDPI_SCORE_RISK_MEDIUM = 50,
|
||||
NDPI_SCORE_RISK_HIGH = 100,
|
||||
NDPI_SCORE_RISK_SEVERE = 250,
|
||||
} ndpi_risk_score;
|
||||
|
||||
/* NDPI_VISIT */
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user