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/include | |
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/include')
-rw-r--r-- | src/include/ndpi_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 4ecb7c1b8..341d01900 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -648,7 +648,8 @@ const uint8_t *get_crypto_data(struct ndpi_detection_module_struct *ndpi_struct, /* RTP */ int is_valid_rtp_payload_type(uint8_t type); -int is_rtp_or_rtcp(struct ndpi_detection_module_struct *ndpi_struct, u_int16_t *seq); +int is_rtp_or_rtcp(struct ndpi_detection_module_struct *ndpi_struct, + const u_int8_t *payload, u_int16_t payload_len, u_int16_t *seq); u_int8_t rtp_get_stream_type(u_int8_t payloadType, ndpi_multimedia_flow_type *s_type); /* Bittorrent */ |