Update flow->flow_multimedia_types to a bitmask (#2625)

In the same flow, we can have multiple multimedia types
This commit is contained in:
Ivan Nardi 2024-11-25 10:12:48 +01:00 committed by GitHub
parent 5c4061d0cd
commit cff8bd1bb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 97 additions and 71 deletions

View file

@ -1198,6 +1198,8 @@ static void process_ndpi_monitoring_info(struct ndpi_flow_info *flow) {
add_to_address_port_list(&flow->stun.peer_address, &flow->ndpi_flow->monit->protos.dtls_stun_rtp.peer_address);
add_to_address_port_list(&flow->stun.relayed_address, &flow->ndpi_flow->monit->protos.dtls_stun_rtp.relayed_address);
add_to_address_port_list(&flow->stun.response_origin, &flow->ndpi_flow->monit->protos.dtls_stun_rtp.response_origin);
flow->multimedia_flow_types |= flow->ndpi_flow->flow_multimedia_types;
}
}
@ -1607,7 +1609,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
add_to_address_port_list(&flow->stun.other_address, &flow->ndpi_flow->stun.other_address);
}
flow->multimedia_flow_type = flow->ndpi_flow->flow_multimedia_type;
flow->multimedia_flow_types |= flow->ndpi_flow->flow_multimedia_types;
if(flow->ndpi_flow->tcp.fingerprint) {
char buf[128];