mirror of https://github.com/OISF/suricata
af-packet: fix live device counter usage
Live device counter was in fact the number of packets seen by suricata and not the total number of packet reported by kernel. This patch fixes this by using counter provided by kernel instead. The counter is Clear On Read, so by adding the value fetch at each call and earch sockets we get the number of packets and drops for the interface.pull/757/head
parent
afbb2eb32b
commit
1869688fb8
Loading…
Reference in New Issue