Fixed false positive with FTP_DATA protocol

Added coherency in application protol guess by exploiting the host server name
Various protocol optimizations
This commit is contained in:
Luca 2019-04-05 12:47:58 +02:00
parent 5656a41f69
commit 4e7fa82aff
10 changed files with 71 additions and 73 deletions

View file

@ -62,9 +62,11 @@ static int ndpi_match_ftp_data_directory(struct ndpi_detection_module_struct *nd
;
} else
return 0;
return 1;
}
return 1;
return 0;
}
static int ndpi_match_file_header(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {