diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-05-29 18:31:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 18:31:10 +0200 |
commit | 81e42b748e46666158596cc22224b0ec11d85be0 (patch) | |
tree | 8deb2ebecddd9556607dbee28c5de51d0c4c74c7 /src/lib/protocols/line.c | |
parent | 6127e04900d14682f524cca5b5720b2fb9f0e283 (diff) |
RTP: fix detection over TCP (#2462)
RFC4571 is not the only way to wrap RTP messages in TCP streams.
For example, when RTP is encapsulated over TURN flows (i.e. via DATA
attribute) there is no additional framing.
See also 6127e0490
Diffstat (limited to 'src/lib/protocols/line.c')
-rw-r--r-- | src/lib/protocols/line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/line.c b/src/lib/protocols/line.c index da28e613b..933693ed9 100644 --- a/src/lib/protocols/line.c +++ b/src/lib/protocols/line.c @@ -83,7 +83,7 @@ static void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct, /* It might be a RTP/RTCP packet. Ignore it and keep looking for the LINE packet numbers */ /* Basic RTP detection */ - rc = is_rtp_or_rtcp(ndpi_struct, NULL); + rc = is_rtp_or_rtcp(ndpi_struct, packet->payload, packet->payload_packet_len, NULL); if(rc == IS_RTCP || rc == IS_RTP) { if(flow->packet_counter < 10) { NDPI_LOG_DBG(ndpi_struct, "Probably RTP; keep looking for LINE\n"); |