mirror of https://github.com/OISF/suricata
pfring: 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 pfring. This patch fixes this by using counter provided by kernel instead. Pfring kernel counter is per socket and is not cleared after read. So to get the number of packet on the interface we can add the new value for this thread and add it to the interface counter.pull/757/head
parent
1869688fb8
commit
c115e63dc2
Loading…
Reference in New Issue