Function ndpi_add_ip_risk_mask

Function Documentation

int ndpi_add_ip_risk_mask(struct ndpi_detection_module_struct *ndpi_mod, char *ip, ndpi_risk mask)

Add an IP-address based risk mask

ndpi_mod = the detection module

ip = the IP address for which you wanna set the mask

mask = the IP risk mask

Returns:

0 if the rule is loaded correctly; -1 else