From 801c9481cb9c1b55382dc6e14dd0f9f573d3fea7 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sat, 6 Jun 2020 11:29:03 +0200 Subject: Removed some obsolete protocols (battlefield, oscar, pcanywhere, tvants) --- example/intrusion_detection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/intrusion_detection.c') diff --git a/example/intrusion_detection.c b/example/intrusion_detection.c index cce25a8b8..7296c2d29 100644 --- a/example/intrusion_detection.c +++ b/example/intrusion_detection.c @@ -154,7 +154,7 @@ double Dos_goldeneye_score(struct ndpi_flow_info* flow){ } double Dos_hulk_score(struct ndpi_flow_info* flow){ - double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0; + double f = (double)flow->first_seen_ms/1000.0, l = (double)flow->last_seen_ms/1000.0; int n_metrics = 6; ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value)); /* duration */ @@ -308,7 +308,7 @@ double Ftp_patator_score(struct ndpi_flow_info* flow){ } double Hearthbleed_score(struct ndpi_flow_info* flow){ - double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0; + double f = (double)flow->first_seen_ms/1000.0, l = (double)flow->last_seen_ms/1000.0; int n_metrics = 6; ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value)); /* iat_flow_max */ -- cgit v1.2.3