STUN: avoid FacebookVoip false positives (#2029)

Attribute 0xC057 is defined in the Google public implementation of
webrtc (which is used by Google products but also by other applications)
This commit is contained in:
Ivan Nardi
2023-07-03 17:21:46 +02:00
committed by GitHub
parent dff1f25193
commit 7ffd31ebc3
3 changed files with 30 additions and 9 deletions
-9
View File
@@ -498,15 +498,6 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
}
break;
case 0xC057: /* Messeger */
if(msg_type == 0x0001) {
if((msg_len == 100) || (msg_len == 104)) {
*app_proto = NDPI_PROTOCOL_FACEBOOK_VOIP;
return(NDPI_IS_STUN);
}
}
break;
case 0x8054: /* Candidate Identifier */
if((len == 4)
&& ((offset+7) < payload_length)