diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-07-06 14:40:21 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-07-06 15:06:17 +0200 |
commit | b107cfa2e534cb4397b06bb9f0def4e5844bb5dd (patch) | |
tree | e6e5976fa5c867d539513ba141d36d2007d37573 /src/lib/protocols/rtsp.c | |
parent | 1ee7355b919c841c85af802d0a1bb2a06eb5e1eb (diff) |
Improved RTSP via HTTP detection.improved/rtsp_detection
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/rtsp.c')
-rw-r--r-- | src/lib/protocols/rtsp.c | 9 |
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) ) { |