aboutsummaryrefslogtreecommitdiff
path: root/example/intrusion_detection.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-04-21 19:23:57 +0200
committerGitHub <noreply@github.com>2020-04-21 19:23:57 +0200
commit019b51bb178d83405d5c01ce604f240c0914f9df (patch)
tree0ec2ba19365c66b9dba49cf35397762e5cbc030d /example/intrusion_detection.c
parente2be7daed6b298e214df91f54061cdac91cd8781 (diff)
parentb1a6c6b8957b62ec8ada423abfdcfa5471c00147 (diff)
Merge pull request #879 from IvanNardi/warnings
Fix some compilation warnings
Diffstat (limited to 'example/intrusion_detection.c')
-rw-r--r--example/intrusion_detection.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/example/intrusion_detection.c b/example/intrusion_detection.c
index 5c83b5b8e..cce25a8b8 100644
--- a/example/intrusion_detection.c
+++ b/example/intrusion_detection.c
@@ -53,7 +53,6 @@ double get_flow_score(ndpi_norm_value* scores, int n_metrics){
/* ********************************** */
double Ddos_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* pktlen_c_to_s_avg */
@@ -105,7 +104,6 @@ double Ddos_score(struct ndpi_flow_info* flow){
}
double Dos_goldeneye_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* pktlen_s_to_c_max */
@@ -208,7 +206,6 @@ double Dos_hulk_score(struct ndpi_flow_info* flow){
}
double Dos_slow_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* pktlen_s_to_c_max */
@@ -260,7 +257,6 @@ double Dos_slow_score(struct ndpi_flow_info* flow){
}
double Ftp_patator_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* iat_flow_min */
@@ -364,7 +360,6 @@ double Hearthbleed_score(struct ndpi_flow_info* flow){
}
double Infiltration_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* pktlen_c_to_s_max */
@@ -416,7 +411,6 @@ double Infiltration_score(struct ndpi_flow_info* flow){
}
double Ssh_patator_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* fin */