mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 00:40:17 +00:00
Update flow->flow_multimedia_types to a bitmask (#2625)
In the same flow, we can have multiple multimedia types
This commit is contained in:
parent
5c4061d0cd
commit
cff8bd1bb2
20 changed files with 97 additions and 71 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue