mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements flow TCP states filters
This commit is contained in:
parent
33a26d4ff5
commit
3dd9f11628
9 changed files with 125 additions and 14 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue