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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/protocols/rtsp.c b/src/lib/protocols/rtsp.c
index 1dc63f04b..9b43d5259 100644
--- a/src/lib/protocols/rtsp.c
+++ b/src/lib/protocols/rtsp.c
@@ -55,6 +55,11 @@ static void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct *ndpi_s
LINE_ENDS(packet->content_line, "application/x-rtsp-tunnelled") != 0))
{
ndpi_int_rtsp_add_connection(ndpi_struct, flow);
+
+ /* Extract some metadata HTTP-like */
+ if(packet->user_agent_line.ptr != NULL)
+ ndpi_user_agent_set(flow, packet->user_agent_line.ptr, packet->user_agent_line.len);
+
return;
}