mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added DHCP filtering in L2 devices
This commit is contained in:
parent
c45cad108e
commit
bbb5b96d3e
8 changed files with 79 additions and 34 deletions
|
|
@ -55,10 +55,13 @@ end
|
|||
|
||||
local source_macs_only = false
|
||||
local host_macs_only = false
|
||||
local dhcp_macs_only = false
|
||||
|
||||
if devices_mode == "host_macs_only" then
|
||||
host_macs_only = true
|
||||
source_macs_only = true
|
||||
elseif devices_mode == "dhcp_macs_only" then
|
||||
dhcp_macs_only = true
|
||||
end
|
||||
|
||||
interface.select(ifname)
|
||||
|
|
@ -71,7 +74,8 @@ if(sortOrder == "desc") then sOrder = false else sOrder = true end
|
|||
local macs_stats = interface.getMacsInfo(sortColumn, perPage, to_skip, sOrder,
|
||||
tonumber(vlan),
|
||||
source_macs_only,
|
||||
host_macs_only, manufacturer, nil, device_type)
|
||||
host_macs_only, manufacturer,
|
||||
nil, device_type, "", dhcp_macs_only)
|
||||
|
||||
local total_rows = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue