Implements visibility of ICMP port-unreachable flows IPv4

This commit is contained in:
Simone Mainardi 2019-02-15 18:59:01 +01:00
parent 69b1dd998e
commit ae23ebcd1c
13 changed files with 307 additions and 11 deletions

View file

@ -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);
}
/* *************************************** */