]> git.ipfire.org Git - people/ms/suricata.git/commit - src/source-af-packet.h
af-packet: finalize code
authorEric Leblond <eric@regit.org>
Tue, 9 Aug 2011 12:36:40 +0000 (14:36 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 8 Sep 2011 09:14:21 +0000 (11:14 +0200)
commite80b30c082c1acfd8a572cd5591c5bcb1d81064e
tree161c73df3825f4911e8f334a9a7bfb2c6afcb791
parent871b21892a4764057aace5d343c1e06be3c919ab
af-packet: finalize code

This patch handles the end of AF_PACKET socket support work. It
provides conditional compilation, autofp and single runmode.

It also adds a 'defrag' option which is used to activate defrag
support in kernel to avoid rx_hash computation in flow mode to fail
due to fragmentation.

This patch contains some fixes by Anoop Saldanha, and incorporate
change following review by Anoop Saldanha and Victor Julien.

AF_PACKET support is only build if the --enable-af-packet flag is
given to the configure command line. Detection of code availability
is also done: a check of the existence of AF_PACKET in standard
header is done. It seems this variable is Linux specific and it
should be enough to avoid compilation of AF_PACKET support on other
OSes.
Compilation does not depend on up-to-date headers on the system. If
none are present, wemake our own declaration of FANOUT variables. This
will permit compilation of the feature for system where only the kernel
has been updated to a version superior to 3.1.
configure.in
src/runmode-af-packet.c
src/runmode-af-packet.h
src/source-af-packet.c
src/source-af-packet.h
src/suricata.c
src/util-device.c
src/util-device.h
src/util-error.c
src/util-error.h
suricata.yaml