aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-02-16 18:23:19 +0100
committerLuca Deri <deri@ntop.org>2021-02-16 18:23:19 +0100
commit4609e2084beef514780d9b0cf00394f91c4d1035 (patch)
tree36393e11077dd78a82e9643e4512be496dcbbadc /src/lib/ndpi_utils.c
parent177f1785daf7dad529ffabbec68219f5f78077f2 (diff)
Added new risks (future use)
- NDPI_RISKY_ASN - NDPI_RISKY_DOMAIN - NDPI_RISKY_COUNTRY
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 5dd71b76a..f69087d2d 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1753,6 +1753,15 @@ const char* ndpi_risk2str(ndpi_risk_enum risk) {
case NDPI_HTTP_SUSPICIOUS_CONTENT:
return("HTTP suspicious content");
+ case NDPI_RISKY_ASN:
+ return("Risky ASN");
+
+ case NDPI_RISKY_DOMAIN:
+ return("Risky domain name");
+
+ case NDPI_RISKY_COUNTRY:
+ return("Risky country name");
+
default:
snprintf(buf, sizeof(buf), "%d", (int)risk);
return(buf);