From 4609e2084beef514780d9b0cf00394f91c4d1035 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 16 Feb 2021 18:23:19 +0100 Subject: Added new risks (future use) - NDPI_RISKY_ASN - NDPI_RISKY_DOMAIN - NDPI_RISKY_COUNTRY --- src/lib/ndpi_utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib') 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); -- cgit v1.2.3