]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: use counter for drop and accept
authorEric Leblond <eric@regit.org>
Wed, 13 Jun 2012 18:42:04 +0000 (20:42 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 29 Jun 2012 11:10:02 +0000 (13:10 +0200)
commit6efd37a388d73eadcdf48c65c6e553c61abc8ec5
tree281e62e72b4a767936f90ed340880525089d133a
parentf2a6fb8a5a2c426be6e82dd2229a5c65eebdd4b7
af-packet: use counter for drop and accept

This patch adds counters for kernel drops and accepts to af-packet
capture module. This information are periodically displayed in
stats.log:
capture.kernel_packets    | RxAFP1                    | 1792
capture.kernel_drops      | RxAFP1                    | 0
The statistic is fetch via a setsockopt call every 255 packets.
src/source-af-packet.c