Adds configurable tiny aggregated flows

Implements #1989
This commit is contained in:
Simone Mainardi 2018-09-10 16:53:54 +02:00
parent 0837bf1b20
commit a809933ebd
4 changed files with 18 additions and 6 deletions

View file

@ -878,7 +878,15 @@ void NetworkInterface::dumpAggregatedFlow(AggregatedFlow *f) {
f->print(buf, sizeof(buf)));
#endif
db->dumpAggregatedFlow(f);
if(!ntop->getPrefs()->is_tiny_flows_export_enabled() && f->isTiny()) {
#ifdef DUMP_AGGREGATED_FLOW_DEBUG
ntop->getTrace()->traceEvent(TRACE_NORMAL,
"Skipping tiny aggregated flow [flow: %s]",
f->print(buf, sizeof(buf)));
#endif
} else {
db->dumpAggregatedFlow(f);
}
}
}