mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
c227c7ba6f
commit
e36ea214a1
1 changed files with 4 additions and 0 deletions
|
@ -393,6 +393,10 @@ func (w *WDiscovery) updateStats(packet gopacket.Packet) {
|
|||
|
||||
dot11, _ := dot11Layer.(*layers.Dot11)
|
||||
|
||||
// FIXME: This doesn't consider the actual direction of the
|
||||
// packet (which address is the source, which the destination,
|
||||
// etc). It should be fixed and counter splitted into two
|
||||
// separete "Recvd" and "Sent" uint64 counters.
|
||||
bytes := uint64(len(packet.Data()))
|
||||
w.stats.Collect(dot11.Address1, bytes)
|
||||
w.stats.Collect(dot11.Address2, bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue