mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implement ARP distribution stats
This commit is contained in:
parent
ee2bee7a73
commit
0ee87cfd4e
8 changed files with 85 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue