aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-05-06 10:19:46 +0200
committerGitHub <noreply@github.com>2024-05-06 10:19:46 +0200
commit266af0275241b96346372bbae936cd3dd1a35159 (patch)
treecbadf21cb1852ff65b1c87404c0fb0ba6d8f86e6 /src/include
parenta1845da3594c080bc59318ea9b465e15f0c5012c (diff)
Merge RTP and RTCP logic (#2416)
Avoid code duplication between these two protocols. We remove support for RTCP over TCP; it is quite rare to find this kind of traffic and, more important, we have never had support for RTP over TCP: we should try to add both detecion as follow-up. Fix a message log in the LINE code
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_private.h3
-rw-r--r--src/include/ndpi_typedefs.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h
index 935f58377..c5192f2be 100644
--- a/src/include/ndpi_private.h
+++ b/src/include/ndpi_private.h
@@ -668,6 +668,9 @@ int search_into_bittorrent_cache(struct ndpi_detection_module_struct *ndpi_struc
/* Stun */
int stun_search_into_zoom_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow);
+int is_stun(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow,
+ u_int16_t *app_proto);
/* TPKT */
int tpkt_verify_hdr(const struct ndpi_packet_struct * const packet);
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 9b5e294da..0f01a4a87 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -914,6 +914,9 @@ struct ndpi_flow_udp_struct {
/* NDPI_PROTOCOL_RTP */
u_int32_t rtp_stage:2;
+ /* NDPI_PROTOCOL_RTCP */
+ u_int32_t rtcp_stage:2;
+
/* NDPI_PROTOCOL_QUIC */
u_int32_t quic_0rtt_found:1;
u_int32_t quic_vn_pair:1;