Remove host macs and show source macs instead

This commit is contained in:
emanuele-f 2018-03-23 14:42:21 +01:00
parent 3a79a06665
commit 02cec8a2be
14 changed files with 76 additions and 114 deletions

View file

@ -743,7 +743,7 @@ local function discoverARP()
status = discoverStatus("ERROR", i18n("discover.err_unable_to_arp_discovery"))
else
-- Add the known macs to the list
local known_macs = interface.getMacsInfo(nil, 999, 0, false, true, true, nil) or {}
local known_macs = interface.getMacsInfo(nil, 999, 0, false, true, nil) or {}
for _,hmac in pairs(known_macs.macs) do
if((hmac["bytes.sent"] > 0) and (hmac["location"] == "lan")) then -- Skip silent/wan hosts