]> git.ipfire.org Git - people/ms/suricata.git/commit
af-packet: dump counters when timeout occurs
authorEric Leblond <eric@regit.org>
Thu, 19 Apr 2018 17:13:20 +0000 (19:13 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 3 May 2018 11:28:52 +0000 (13:28 +0200)
commitf53e687bb8f870b37979184fe04c8275717dc524
tree3bb1c232533d207eef38907b4244cea19b272642
parente048a74ecdfdfe468618d7ce1a3e9e570915ea3e
af-packet: dump counters when timeout occurs

When traffic is becoming null (mainly seen in tests) we reach the
situation where there is timeouts in the poll on the socket and
only that. Existing code is then just looping on the poll and
the result is that the packet iface counters are not updated.

This patch calls the dump counter function to be sure to get
the counter right faster (and not only right at exit).
src/source-af-packet.c