Flow dissection code cleanup.

The Flow API is now composed of the following methods:
  - Flow::setDetectedProtocol to manually set a protocol on the flow
    and terminate the dissection
  - Flow::processPacket to run the nDPI dissection on the raw packets
  - Flow::endProtocolDissection to terminate or give up the dissection

Also fixes the flow sampling rate preference, which was never used.
This commit is contained in:
emanuele-f 2020-02-14 20:03:22 +01:00
parent 14202b7c9b
commit 15898e8dad
10 changed files with 181 additions and 154 deletions

View file

@ -25,7 +25,7 @@ local syslog_module = {
},
}
local external_stats_key = getRedisIfacePrefix(interface.getId())..'.external_stats'
local external_stats_key = "ntopng.prefs.ifid_"..tostring(interface.getId())..'.external_stats'
-- #################################################################