False positive fixes

This commit is contained in:
Luca Deri
2020-05-06 01:34:55 +02:00
parent 7d63149ced
commit 48282369e2
4 changed files with 27 additions and 14 deletions
+6 -1
View File
@@ -51,7 +51,12 @@ void ndpi_search_mssql_tds(struct ndpi_detection_module_struct *ndpi_struct, str
NDPI_LOG_DBG(ndpi_struct, "search mssql_tds\n");
if(packet->payload_packet_len < sizeof(struct tds_packet_header)) {
if((packet->payload_packet_len < sizeof(struct tds_packet_header))
/*
The TPKT protocol used by ISO 8072 (on port 102) is similar
to this potocol and it can cause false positives
*/
|| (packet->tcp->dest == ntohs(102))) {
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
return;
}