Fixes for MAC address listing

Enhanced numeric MAC -> symbolic MAC conversion
This commit is contained in:
Luca Deri 2015-08-03 16:49:39 +02:00
parent 39118bbf74
commit 2243804a94
5 changed files with 53 additions and 30 deletions

View file

@ -103,7 +103,11 @@ if((mode == nil) or (mode == "")) then mode = "all" end
interface.select(ifname)
if((aggregation == nil) and (aggregated == nil)) then
hosts_stats = interface.getHostsInfo(false)
if((mac ~= nil) or (antenna_mac ~= nil)) then
hosts_stats = interface.getLocalHostsInfo()
else
hosts_stats = interface.getHostsInfo(false)
end
else
hosts_stats = interface.getAggregatedHostsInfo(tonumber(protocol), client)
protocol = nil -- Not applicable