From 266af0275241b96346372bbae936cd3dd1a35159 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 6 May 2024 10:19:46 +0200 Subject: 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 --- src/lib/protocols/line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/line.c') diff --git a/src/lib/protocols/line.c b/src/lib/protocols/line.c index 0de5e856e..6b69d690c 100644 --- a/src/lib/protocols/line.c +++ b/src/lib/protocols/line.c @@ -86,7 +86,7 @@ static void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct, (packet->payload[1] == 201 || /* RTCP, Receiver Report */ packet->payload[1] == 200 || /* RTCP, Sender Report */ is_valid_rtp_payload_type(packet->payload[1] & 0x7F)) /* RTP */) { - NDPI_LOG_DBG(ndpi_struct, "Probably RTP; keep looking for LINE"); + NDPI_LOG_DBG(ndpi_struct, "Probably RTP; keep looking for LINE\n"); return; } else { if((u_int8_t)(flow->l4.udp.line_base_cnt[packet->packet_direction] + -- cgit v1.2.3