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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user