diff options
author | Luca Deri <deri@ntop.org> | 2020-06-06 11:29:03 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-06-06 11:29:03 +0200 |
commit | 801c9481cb9c1b55382dc6e14dd0f9f573d3fea7 (patch) | |
tree | 629d74482946020394f1a3dfd95f8ee71798f31e /example/intrusion_detection.c | |
parent | 605d548d4a5f2c298a6f98e5135d4ac63886d89a (diff) |
Removed some obsolete protocols (battlefield, oscar, pcanywhere, tvants)
Diffstat (limited to 'example/intrusion_detection.c')
-rw-r--r-- | example/intrusion_detection.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |