]> git.ipfire.org Git - thirdparty/suricata.git/commit
pfring: fix live device counter usage 757/head
authorEric Leblond <eric@regit.org>
Tue, 31 Dec 2013 15:09:43 +0000 (16:09 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 13:47:44 +0000 (14:47 +0100)
commitc115e63dc2727e3220eb5c040bc9b07735a625a2
tree851071e1db4ade18e46b6142098e690dd5df45df
parent1869688fb8b3577d224ee3651827bde894000d3e
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.
src/source-pfring.c