mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-08 06:24:34 +00:00
Added support for SIP CallID in flow key
This commit is contained in:
parent
4429334066
commit
3d117a9e16
12 changed files with 170 additions and 116 deletions
|
|
@ -39,10 +39,9 @@ Flow *FlowHash::find(Mac *src_mac, Mac *dst_mac, IpAddress *src_ip,
|
|||
u_int32_t private_flow_id, u_int8_t protocol,
|
||||
const ICMPinfo *const icmp_info, bool *src2dst_direction,
|
||||
bool is_inline_call, Flow **unswapped_flow) {
|
||||
u_int32_t hash =
|
||||
((src_ip->key() + dst_ip->key() + (icmp_info ? icmp_info->key() : 0) +
|
||||
private_flow_id + src_port + dst_port + vlanId + protocol) %
|
||||
num_hashes);
|
||||
u_int32_t hash = ((src_ip->key() + dst_ip->key() + (icmp_info ? icmp_info->key() : 0) +
|
||||
private_flow_id + src_port + dst_port + vlanId + protocol) %
|
||||
num_hashes);
|
||||
Flow *head = (Flow *)table[hash];
|
||||
u_int16_t num_loops = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue