Partial fix (community code is now clean) for #2533

Reworked inteface disaggregation
Moved to attic some unused classes
Added ability to disaggregate also for Probe IP + Ingress Interface
This commit is contained in:
Luca Deri 2020-08-07 17:18:13 +02:00
parent 0113b367c9
commit 75efc0ec0c
16 changed files with 95 additions and 177 deletions

View file

@ -296,14 +296,10 @@ u_int8_t ZMQParserInterface::parseEvent(const char * const payload, int payload_
/* Process Flow */
setRemoteStats(&zrs);
if(flowHashing) {
FlowHashing *current, *tmp;
ZMQParserInterface *current_iface;
HASH_ITER(hh, flowHashing, current, tmp) {
if((current_iface = dynamic_cast<ZMQParserInterface*>(current->iface)))
current_iface->setRemoteStats(&zrs);
}
for(std::map<u_int64_t, NetworkInterface*>::iterator it = flowHashing.begin(); it != flowHashing.end(); ++it) {
ZMQParserInterface *z = (ZMQParserInterface*)it->second;
z->setRemoteStats(&zrs);
}
/* Dispose memory */