RTP: rework code (#2021)

Try avoiding false positives: look for 3 RTP packets before classifing
the flow as such.

Add a generic function `is_rtp_or_rtcp()` to identify RTP/RTCP packets also
in other dissectors (see 3608ab01b commit message for an example)
This commit is contained in:
Ivan Nardi
2023-06-23 08:12:40 +02:00
committed by GitHub
parent 15f0e1480c
commit 7e64d9f66d
45 changed files with 438 additions and 300 deletions
+3 -3
View File
@@ -807,9 +807,6 @@ struct ndpi_flow_tcp_struct {
/* NDPI_PROTOCOL_WORLDOFWARCRAFT */
u_int32_t wow_stage:2;
/* NDPI_PROTOCOL_RTP */
u_int32_t rtp_special_packets_seen:1;
/* NDPI_PROTOCOL_MAIL_POP */
u_int32_t mail_pop_stage:2;
@@ -848,6 +845,9 @@ struct ndpi_flow_udp_struct {
/* NDPI_PROTOCOL_XBOX */
u_int32_t xbox_stage:1;
/* NDPI_PROTOCOL_RTP */
u_int32_t rtp_stage:2;
/* NDPI_PROTOCOL_QUIC */
u_int32_t quic_0rtt_found:1;
u_int32_t quic_vn_pair:1;