aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/rtsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/rtsp.c')
-rw-r--r--src/lib/protocols/rtsp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/protocols/rtsp.c b/src/lib/protocols/rtsp.c
index 2fcfffc61..435d09db5 100644
--- a/src/lib/protocols/rtsp.c
+++ b/src/lib/protocols/rtsp.c
@@ -47,6 +47,15 @@ void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct
NDPI_LOG_DBG(ndpi_struct, "search RTSP\n");
+ if (flow->detected_protocol_stack[0] == NDPI_PROTOCOL_HTTP &&
+ packet->parsed_lines > 0 &&
+ LINE_STARTS(packet->line[0], "SETUP rtsp://") != 0 &&
+ LINE_ENDS(packet->line[0], "RTSP/1.0") != 0)
+ {
+ ndpi_int_rtsp_add_connection(ndpi_struct, flow);
+ return;
+ }
+
if (flow->rtsprdt_stage == 0
&& !(packet->detected_protocol_stack[0] == NDPI_PROTOCOL_RTCP)
) {