Fixes maps upates with view interfaces

This commit is contained in:
Simone Mainardi 2021-08-10 10:57:40 +02:00
parent 1f43ed6a6b
commit 2e0bb620c7
2 changed files with 8 additions and 13 deletions

View file

@ -483,15 +483,6 @@ void ViewInterface::viewed_flows_walker(Flow *f, const struct timeval *tv) {
findFlowHosts(f->get_vlan_id(), f->get_observation_point_id(),
NULL /* no src mac yet */, (IpAddress*)cli_ip, &cli_host,
NULL /* no dst mac yet */, (IpAddress*)srv_ip, &srv_host);
#if defined(NTOPNG_PRO) && !defined(HAVE_NEDGE)
/*
For view interfaces, service and periodicity maps need to be updated there,
only the first time a flow is seen.
*/
updateFlowPeriodicity(f);
updateServiceMap(f);
#endif
} else {
/* The unsafe pointers can be used here as ViewInterface::viewed_flows_walker is
* called synchronously with the ViewInterface purgeIdle. This also saves some