]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: reorder socket operation.
authorEric Leblond <eric@regit.org>
Mon, 30 Jul 2012 10:12:34 +0000 (12:12 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Sep 2012 13:27:38 +0000 (15:27 +0200)
commitec76742caa03344ae755a34caf49f87004590b7a
treef98615f7709764309418e54223196f6fbb4f4b20
parent1ea809520a7d5e93ccdfde2ac8c39391d0cbe5ef
af-packet: reorder socket operation.

This patch moves raw socket binding at the end of init code to
avoid to have a flow of packets reaching the socket before we
start to read them.

The socket creation is now made in the loop function to avoid
any timing issue between init function and the call of the loop.
src/source-af-packet.c