aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-05-18 21:05:47 +0200
committerLuca Deri <deri@ntop.org>2021-05-18 21:05:47 +0200
commit732bcecd17f6ba83402562d8eead09c47f2439ce (patch)
tree597ee2118c10330253ff6256cc6809e5495454f0 /example/ndpiReader.c
parent86f3c29d030a2155dadc426bc67b4369ea407711 (diff)
Added flow risk score
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 3 insertions, 1 deletions
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);