mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Migrate code to index based device type
This commit is contained in:
parent
29a5a7e013
commit
08ec407fbb
11 changed files with 88 additions and 63 deletions
|
|
@ -31,10 +31,6 @@ function mac2record(mac)
|
|||
|
||||
record["column_mac"] = mac2link(mac)
|
||||
|
||||
if mac["device_type"] ~= "unknown" then
|
||||
record["column_mac"] = record["column_mac"] .. " " .. discover.devtype2icon(mac["device_type"])
|
||||
end
|
||||
|
||||
local manufacturer = get_manufacturer_mac(mac["mac"])
|
||||
if(manufacturer == nil) then manufacturer = "" end
|
||||
record["column_manufacturer"] = manufacturer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue