Implement ARP distribution stats

This commit is contained in:
emanuele-f 2017-03-31 13:16:05 +02:00
parent ee2bee7a73
commit 0ee87cfd4e
8 changed files with 85 additions and 1 deletions

View file

@ -22,6 +22,9 @@ function mac2record(mac)
if(manufacturer == nil) then manufacturer = "" end
record["column_manufacturer"] = manufacturer
record["column_arp_sent"] = tostring(mac["arp_requests.sent"] + mac["arp_replies.sent"])
record["column_arp_rcvd"] = tostring(mac["arp_requests.rcvd"] + mac["arp_replies.rcvd"])
record["column_hosts"] = mac["num_hosts"]..""
record["column_since"] = secondsToTime(now - mac["seen.first"]+1)