aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/raknet.c
diff options
context:
space:
mode:
authorMaatuq <mahmoudmatook.mm@gmail.com>2024-05-29 00:01:08 +0400
committerGitHub <noreply@github.com>2024-05-28 22:01:08 +0200
commit6127e04900d14682f524cca5b5720b2fb9f0e283 (patch)
tree649485a95b93e12b16ef1d902a805ebeeb431792 /src/lib/protocols/raknet.c
parent80171dbcf3865e8b02f136b0dc4b088033fd9054 (diff)
support rtp/rtcp over tcp (#2422) (#2457)
Support rtp/rtcp over tcp as per rfc4571. Signed-off-by: mmaatuq <mahmoudmatook.mm@gmail.com>
Diffstat (limited to 'src/lib/protocols/raknet.c')
-rw-r--r--src/lib/protocols/raknet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/raknet.c b/src/lib/protocols/raknet.c
index b11107ec3..3e3200e1a 100644
--- a/src/lib/protocols/raknet.c
+++ b/src/lib/protocols/raknet.c
@@ -295,7 +295,7 @@ static void ndpi_search_raknet(struct ndpi_detection_module_struct *ndpi_struct,
if (frame_offset == packet->payload_packet_len)
{
/* This packet might also be a RTP/RTCP one: give precedence to RTP/RTCP dissector */
- if(flow->l4.udp.rtp_stage == 0 && flow->l4.udp.rtcp_stage == 0)
+ if(flow->rtp_stage == 0 && flow->rtcp_stage == 0)
ndpi_int_raknet_add_connection(ndpi_struct, flow);
} else {
exclude_proto(ndpi_struct, flow);
@@ -366,7 +366,7 @@ static void ndpi_search_raknet(struct ndpi_detection_module_struct *ndpi_struct,
if (record_index == record_count && record_offset == packet->payload_packet_len)
{
/* This packet might also be a RTP/RTCP one: give precedence to RTP/RTCP dissector */
- if(flow->l4.udp.rtp_stage == 0 && flow->l4.udp.rtcp_stage == 0)
+ if(flow->rtp_stage == 0 && flow->rtcp_stage == 0)
ndpi_int_raknet_add_connection(ndpi_struct, flow);
} else {
exclude_proto(ndpi_struct, flow);