mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-29 10:50:20 +00:00
Implements visibility of ICMP port-unreachable flows IPv4
This commit is contained in:
parent
69b1dd998e
commit
ae23ebcd1c
13 changed files with 307 additions and 11 deletions
|
|
@ -334,6 +334,22 @@ Flow* ViewInterface::findFlowByKey(u_int32_t key, AddressTree *allowed_hosts) {
|
|||
return(f);
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
||||
Flow* ViewInterface::findFlowByTuple(u_int16_t vlan_id,
|
||||
IpAddress *src_ip, IpAddress *dst_ip,
|
||||
u_int16_t src_port, u_int16_t dst_port,
|
||||
u_int8_t l4_proto) const {
|
||||
Flow *f = NULL;
|
||||
|
||||
for(u_int8_t s = 0; s < numSubInterfaces; s++) {
|
||||
if((f = (Flow*)subInterfaces[s]->findFlowByTuple(vlan_id, src_ip, dst_ip, src_port, dst_port, l4_proto)))
|
||||
break;
|
||||
}
|
||||
|
||||
return(f);
|
||||
}
|
||||
|
||||
|
||||
/* *************************************** */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue