mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implement ARP distribution stats
This commit is contained in:
parent
ee2bee7a73
commit
0ee87cfd4e
8 changed files with 85 additions and 1 deletions
|
|
@ -116,7 +116,16 @@ if((mac_info["bytes.sent"]+mac_info["bytes.rcvd"]) > 0) then
|
|||
end
|
||||
|
||||
print("<tr><th>Traffic Sent / Received</th><td><span id=pkts_sent>" .. formatPackets(mac_info["packets.sent"]) .. "</span> / <span id=bytes_sent>".. bytesToSize(mac_info["bytes.sent"]) .. "</span> <span id=sent_trend></span></td><td><span id=pkts_rcvd>" .. formatPackets(mac_info["packets.rcvd"]) .. "</span> / <span id=bytes_rcvd>".. bytesToSize(mac_info["bytes.rcvd"]) .. "</span> <span id=rcvd_trend></span></td></tr>\n")
|
||||
|
||||
print([[
|
||||
<tr>
|
||||
<th rowspan=2>ARP</th>
|
||||
<th>Replies</th>
|
||||
<th>Requests</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>]]..mac_info["arp_replies.sent"]..[[ replies sent / ]]..mac_info["arp_requests.rcvd"]..[[ requests received</td>
|
||||
<td>]]..mac_info["arp_requests.sent"]..[[ requests sent / ]]..mac_info["arp_replies.rcvd"]..[[ replies received</td>
|
||||
</tr>]])
|
||||
|
||||
print("</table>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue