diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-05-26 15:08:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-26 15:08:53 +0200 |
commit | 8350cc68d40aaebb2a393abff1b9853b29752e40 (patch) | |
tree | bca3a4a8327cfbf05fd0a576ec0c46f050ffcfd3 /example/reader_util.c | |
parent | 0ccafc94f7d3a75289a9ff80447070b08df645c3 (diff) |
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
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
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') |