mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Reworked Mac address families display
This commit is contained in:
parent
f156b64786
commit
cba2a4440b
8 changed files with 61 additions and 18 deletions
|
|
@ -1943,6 +1943,18 @@ function get_symbolic_mac(mac_address, only_symbolic)
|
|||
end
|
||||
end
|
||||
|
||||
function get_manufacturer_mac(mac_address)
|
||||
local m = string.sub(mac_address, 1, 8)
|
||||
local ret = mac_cache[m]
|
||||
|
||||
if(ret == nil) then
|
||||
ret = get_mac_classification(m)
|
||||
if(ret == m) then ret = "" end
|
||||
end
|
||||
|
||||
return(ret)
|
||||
end
|
||||
|
||||
-- rrd_exists
|
||||
function rrd_exists(host_ip, rrdname)
|
||||
if(host_ip == nil) then return false end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue