]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: loop on ring if there is data to read.
authorEric Leblond <eric@regit.org>
Fri, 27 Jul 2012 09:29:37 +0000 (11:29 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 6 Aug 2012 14:11:19 +0000 (16:11 +0200)
commita369f8c359f19fcf7a5df85288f2f7b92c1816ad
treeb3ad8885b812f2069246cc8f6a628655123cc7c9
parent4df509f87a4b077e3a5d53080e2412dc066ed8d6
af-packet: loop on ring if there is data to read.

This patch should bring some improvements by looping on the
ring when there is some data available instead of getting back
to the poll. It also fix recovery in case of drops on the ring
because the poll command will not return correctly in this case.
src/source-af-packet.c