aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-10-19 22:16:26 +0200
committerGitHub <noreply@github.com>2024-10-19 22:16:26 +0200
commit12a217d067c8bc012ea9e5ec32dd77f495f6011e (patch)
tree9c149195b65fa26bdca30ebd6b4632045f9bb617 /src/lib
parent9021e089010f545f5abc9ed8e2dc6cd698ccfec4 (diff)
STUN: fix monitoring with RTCP flows (#2603)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/protocols/stun.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index db4e3466c..2df50986c 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -902,7 +902,10 @@ static int stun_search_again(struct ndpi_detection_module_struct *ndpi_struct,
flow->detected_protocol_stack[1] == NDPI_PROTOCOL_UNKNOWN) {
/* From RTP dissector; if we have RTP and RTCP multiplexed together (but not STUN, yet) we always
use RTP, as we do in RTP dissector */
- ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_RTP, NDPI_CONFIDENCE_DPI);
+ if(!flow->monitoring)
+ ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_RTP, NDPI_CONFIDENCE_DPI);
+ else
+ NDPI_LOG_DBG(ndpi_struct, "Skip RTP packet because in monitoring\n");
}
} else if(rtp_rtcp == IS_RTCP) {
NDPI_LOG_DBG(ndpi_struct, "RTCP\n");