mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Rework special macs into source macs and use them into the footer
This commit is contained in:
parent
ffc97ef922
commit
4f0debccd5
10 changed files with 101 additions and 97 deletions
|
|
@ -16,7 +16,7 @@ local sortColumn = _GET["sortColumn"]
|
|||
local sortOrder = _GET["sortOrder"]
|
||||
|
||||
local vlan = _GET["vlan"]
|
||||
local host_macs_only = _GET["host_macs_only"]
|
||||
local devices_mode = _GET["devices_mode"]
|
||||
local manufacturer = _GET["manufacturer"]
|
||||
|
||||
local sortPrefs = "macs"
|
||||
|
|
@ -52,11 +52,12 @@ else
|
|||
tablePreferences("rows_number", perPage)
|
||||
end
|
||||
|
||||
local source_macs_only = false
|
||||
local host_macs_only = false
|
||||
|
||||
if isEmptyString(host_macs_only) == false then
|
||||
if(host_macs_only == "true") then host_macs_only = true else host_macs_only = false end
|
||||
else
|
||||
host_macs_only = false
|
||||
if devices_mode == "host_macs_only" then
|
||||
host_macs_only = true
|
||||
source_macs_only = true
|
||||
end
|
||||
|
||||
interface.select(ifname)
|
||||
|
|
@ -66,11 +67,9 @@ to_skip = (currentPage-1) * perPage
|
|||
if(isEmptyString(vlan)) then vlan = 0 end
|
||||
if(sortOrder == "desc") then sOrder = false else sOrder = true end
|
||||
|
||||
--host_macs_only = false
|
||||
|
||||
local macs_stats = interface.getMacsInfo(sortColumn, perPage, to_skip, sOrder,
|
||||
tonumber(vlan),
|
||||
host_macs_only --[[ skip special macs ]],
|
||||
source_macs_only,
|
||||
host_macs_only, manufacturer)
|
||||
|
||||
local total_rows = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue