From 8350cc68d40aaebb2a393abff1b9853b29752e40 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 26 May 2025 15:08:53 +0200 Subject: BFCP: fix check on payload length and extract metadata (#2854) We should be able to identified this protocol on the first packet, without keeping any state Close #2745 --- example/reader_util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 8fc8db21e..3efeaa595 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1503,6 +1503,12 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl if(flow->ndpi_flow->protos.sip.to_imsi[0] != '\0') ndpi_snprintf(flow->sip.to_imsi, sizeof(flow->sip.to_imsi), "%s", flow->ndpi_flow->protos.sip.to_imsi); } + /* BFCP */ + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_BFCP)) { + flow->info_type = INFO_BFCP; + flow->bfcp.conference_id = flow->ndpi_flow->protos.bfcp.conference_id; + flow->bfcp.user_id = flow->ndpi_flow->protos.bfcp.user_id; + } /* TELNET */ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TELNET)) { if(flow->ndpi_flow->protos.telnet.username[0] != '\0') -- cgit v1.2.3