Reworked Mac address families display

This commit is contained in:
Luca Deri 2016-10-07 23:32:19 +02:00
parent f156b64786
commit cba2a4440b
8 changed files with 61 additions and 18 deletions

View file

@ -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