mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Add support for filtering on MAC address
This commit is contained in:
parent
845abb081b
commit
f6be6f685e
7 changed files with 45 additions and 5 deletions
|
|
@ -215,10 +215,13 @@ local hosts = {}
|
|||
local res = interface.findHost(query)
|
||||
|
||||
for k, v in pairs(res) do
|
||||
tprint(k .. " - " ..v)
|
||||
local links = {}
|
||||
local historical_flows_url
|
||||
if k == v then -- IP
|
||||
historical_flows_url = build_historical_flows_url('ip', k)
|
||||
if isMacAddress(v) then -- MAC
|
||||
historical_flows_url = build_historical_flows_url('mac', v)
|
||||
elseif k == v or isIPv6(v) then -- IP
|
||||
historical_flows_url = build_historical_flows_url('ip', v)
|
||||
else -- Name
|
||||
historical_flows_url = build_historical_flows_url('name', v)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue