Implements flow TCP states filters

This commit is contained in:
Simone Mainardi 2019-02-08 15:57:03 +01:00
parent 33a26d4ff5
commit 3dd9f11628
9 changed files with 125 additions and 14 deletions

View file

@ -44,6 +44,7 @@ local flowhosts_type = _GET["flowhosts_type"]
local ipversion = _GET["version"]
local traffic_type = _GET["traffic_type"]
local flow_status = _GET["flow_status"]
local tcp_state = _GET["tcp_flow_state"]
-- System host parameters
local hosts = _GET["hosts"]
@ -184,6 +185,10 @@ if not isEmptyString(asn) then
pageinfo["asnFilter"] = tonumber(asn)
end
if not isEmptyString(tcp_state) then
pageinfo["tcpFlowStateFilter"] = tcp_state
end
local flows_stats = interface.getFlowsInfo(host, pageinfo)
local total = flows_stats["numFlows"]
local flows_stats = flows_stats["flows"]