From 732bcecd17f6ba83402562d8eead09c47f2439ce Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 18 May 2021 21:05:47 +0200 Subject: Added flow risk score --- example/ndpiReader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 5d4e7bfa9..ae205472a 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1444,8 +1444,10 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa fprintf(out, "** %s **", ndpi_risk2str(i)); fprintf(out, "]"); - } + fprintf(out, "[Risk Score: %u]", ndpi_risk2score(flow->risk)); + } + if(flow->ssh_tls.ssl_version != 0) fprintf(out, "[%s]", ndpi_ssl_version2str(flow->ndpi_flow, flow->ssh_tls.ssl_version, &known_tls)); if(flow->ssh_tls.client_requested_server_name[0] != '\0') fprintf(out, "[Client: %s]", flow->ssh_tls.client_requested_server_name); if(flow->ssh_tls.client_hassh[0] != '\0') fprintf(out, "[HASSH-C: %s]", flow->ssh_tls.client_hassh); -- cgit v1.2.3