Implements allowed networks for database flows

Implements #1886
This commit is contained in:
Simone Mainardi 2018-08-07 19:38:05 +02:00
parent ad0dfc0a11
commit b5f96cf86a
6 changed files with 181 additions and 23 deletions

View file

@ -35,11 +35,10 @@ function useAggregatedFlows()
-- even if the aggregation is enabled, we may still need to use raw
-- flows (e.g., when searching by src/dst port, info, and l4 protocol,
-- or when searching in a time range that has not yet been included in an aggregation)
if tonumber(_GET["l4proto"]) ~= nil
or tonumber(_GET["port"]) ~= nil
or tonumber(_GET["vlan"]) ~= nil
or isEmptyString(_GET["profile"]) == false
or isEmptyString(_GET["info"]) == false then
if not isEmptyString(_GET["l4proto"])
or not isEmptyString(_GET["port"])
or not isEmptyString(_GET["profile"])
or not isEmptyString(_GET["info"]) then
-- tprint("coercing aggr to false")
aggr = false
end