mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements efficient unexpected_new_device alert
This commit is contained in:
parent
03bf2bca5e
commit
bb3f8ed168
15 changed files with 116 additions and 100 deletions
|
|
@ -1678,7 +1678,6 @@ function getDeviceName(device_mac, skip_manufacturer)
|
|||
name = host.name
|
||||
elseif host.ip ~= "0.0.0.0" then
|
||||
name = ip2label(host.ip)
|
||||
|
||||
if name == host.ip then
|
||||
name = nil
|
||||
end
|
||||
|
|
@ -2789,7 +2788,11 @@ function get_symbolic_mac(mac_address, no_href, add_extra_info)
|
|||
local s = get_mac_classification(m)
|
||||
|
||||
if(m == s) then
|
||||
return '<a href="' .. ntop.getHttpPrefix() .. '/lua/mac_details.lua?host='..mac_address..'">' .. get_mac_classification(m) .. ":" .. t .. '</a>'
|
||||
if no_href then
|
||||
return get_mac_classification(m) .. ":" .. t
|
||||
else
|
||||
return '<a href="' .. ntop.getHttpPrefix() .. '/lua/mac_details.lua?host='..mac_address..'">' .. get_mac_classification(m) .. ":" .. t .. '</a>'
|
||||
end
|
||||
else
|
||||
if(add_extra_info == true) then
|
||||
return(get_mac_classification(m).."_"..t.." ("..macInfo(mac_address)..")")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue