Added STUN check to avoid false positives

Added fingerprint comments in SSH/TLS
Added netflow test pcap
This commit is contained in:
Luca Deri
2019-09-11 17:13:49 +02:00
parent 16fe2574b1
commit 6966e0d19b
5 changed files with 26 additions and 3 deletions
+3 -1
View File
@@ -140,7 +140,9 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
*is_whatsapp = 0, *is_messenger = 0, *is_duo = 0;
if(payload_length < sizeof(struct stun_packet_header)) {
if(payload_length >= 512) {
return(NDPI_IS_NOT_STUN);
} else if(payload_length < sizeof(struct stun_packet_header)) {
/* This looks like an invalid packet */
if(flow->protos.stun_ssl.stun.num_udp_pkts > 0) {