Improved passive MDNS discovery

Fixed MDNS decode loop
This commit is contained in:
Luca 2018-04-02 11:31:28 +02:00
parent d4bbeb10a2
commit d1dcff81c4
12 changed files with 212 additions and 81 deletions

View file

@ -42,6 +42,11 @@ function mac2record(mac)
record["column_mac"] = record["column_mac"]..getOperatingSystemIcon(mac.operatingSystem)
local manufacturer = get_manufacturer_mac(mac["mac"])
if(manufacturer == nil) then manufacturer = "" end
if(mac["model"] ~= nil) then
manufacturer = manufacturer .. " [ ".. mac["model"] .." ]"
end
record["column_manufacturer"] = manufacturer
record["column_arp_total"] = formatValue(mac["arp_requests.sent"]