aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/rtsp.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2021-09-18 09:29:45 +0200
committerGitHub <noreply@github.com>2021-09-18 09:29:45 +0200
commit227e586e63cb92c6982e1602dbec79891f3910aa (patch)
treead8054c75bb787805f4c70819a198cbd821b6207 /src/lib/protocols/rtsp.c
parent4539e96ce2a2366fb5a734161727c4e1c44afd3f (diff)
A (tiny) effort to reduce memory usage per flow (#1304)
Follow-up of 22241a1d Only trivial changes: * remove completely unused fields * remove fields only written (but never read) * CSGO protocol only handles UDP traffic
Diffstat (limited to 'src/lib/protocols/rtsp.c')
-rw-r--r--src/lib/protocols/rtsp.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/protocols/rtsp.c b/src/lib/protocols/rtsp.c
index 5a14f1d83..9d258f864 100644
--- a/src/lib/protocols/rtsp.c
+++ b/src/lib/protocols/rtsp.c
@@ -42,9 +42,6 @@ void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct
{
struct ndpi_packet_struct *packet = &flow->packet;
- struct ndpi_id_struct *src = flow->src;
- struct ndpi_id_struct *dst = flow->dst;
-
NDPI_LOG_DBG(ndpi_struct, "search RTSP\n");
if (packet->parsed_lines == 0)
@@ -84,20 +81,7 @@ void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct
if((memcmp(packet->payload, "RTSP/1.0 ", 9) == 0)
|| (strstr(buf, "rtsp://") != NULL)) {
NDPI_LOG_DBG2(ndpi_struct, "found RTSP/1.0 \n");
- if (dst != NULL) {
- NDPI_LOG_DBG2(ndpi_struct, "found dst\n");
- ndpi_packet_src_ip_get(packet, &dst->rtsp_ip_address);
- dst->rtsp_timer = packet->current_time_ms;
- dst->rtsp_ts_set = 1;
- }
- if (src != NULL) {
- NDPI_LOG_DBG2(ndpi_struct, "found src\n");
- ndpi_packet_dst_ip_get(packet, &src->rtsp_ip_address);
- src->rtsp_timer = packet->current_time_ms;
- src->rtsp_ts_set = 1;
- }
NDPI_LOG_INFO(ndpi_struct, "found RTSP\n");
- flow->rtsp_control_flow = 1;
ndpi_int_rtsp_add_connection(ndpi_struct, flow);
return;
}