mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Unify host and mac device types
Now the device type is a layer-2 concept and as such is stored into the Mac objects
This commit is contained in:
parent
c4a6ddd3a4
commit
6cdcc0ffac
15 changed files with 112 additions and 129 deletions
|
|
@ -31,6 +31,10 @@ 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