Added Line protocol dissection

Add fix for discarding STUN over TCP flows
This commit is contained in:
Luca Deri
2019-07-15 00:19:45 +02:00
parent f8fb1f838c
commit 5a018e0bc0
6 changed files with 106 additions and 8 deletions
+3
View File
@@ -55,6 +55,9 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
struct stun_packet_header *h = (struct stun_packet_header*)payload;
u_int8_t can_this_be_whatsapp_voice = 1;
/* STUN over TCP does not look good */
if(flow->packet.tcp) return(NDPI_IS_NOT_STUN);
flow->protos.stun_ssl.stun.num_processed_pkts++;
if(payload_length < sizeof(struct stun_packet_header)) {