]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: fix kernel offset issue
authorEric Leblond <eric@regit.org>
Tue, 4 Sep 2012 22:15:16 +0000 (00:15 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Sep 2012 08:24:05 +0000 (10:24 +0200)
commit4d8f70c61348a45cea86c5d737204929130bc886
treea86e686322cd5ff298821bc2a9e0887c3fa52bd4
parentee6ba09948ddc9128604c0834dc3b400fe6b92e2
af-packet: fix kernel offset issue

It seems that, in some case, there is a read waiting but the
offset in the ring buffer is not correct and Suricata need to
walk the ring to find the correct place and make the read.
src/source-af-packet.c