Implements eBPF per-username flows view

This commit is contained in:
Simone Mainardi 2018-11-05 19:59:28 +01:00
parent d08534cb8f
commit 8ecf392682
3 changed files with 167 additions and 146 deletions

View file

@ -2,7 +2,7 @@
-- (C) 2013-18 - ntop.org
--
dirs = ntop.getDirs()
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
@ -30,6 +30,7 @@ local application = _GET["application"]
local category = _GET["category"]
local network_id = _GET["network"]
local vlan = _GET["vlan"]
local uid = _GET["uid"]
local deviceIP = _GET["deviceIP"]
local inIfIdx = _GET["inIfIdx"]
@ -158,6 +159,10 @@ if not isEmptyString(vlan) then
pageinfo["vlanIdFilter"] = tonumber(vlan)
end
if not isEmptyString(uid) then
pageinfo["uidFilter"] = tonumber(uid)
end
if not isEmptyString(deviceIP) then
pageinfo["deviceIpFilter"] = deviceIP