]> git.ipfire.org Git - thirdparty/suricata.git/commit
af-packet: implement rollover option
authorEric Leblond <eric@regit.org>
Fri, 19 Jun 2015 10:13:31 +0000 (12:13 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 21 Jul 2015 21:37:34 +0000 (23:37 +0200)
commit8fde842f97161fe69013944800ebd68cb805384a
tree61f0daa49c700cf6b32726140ed1ad1a7610fedb
parentdc306f3bad0446d8fecca1f950b32a018a8e4903
af-packet: implement rollover option

This patch implements the rollover option in af_packet capture.
This should heavily minimize the packet drops as well as the
maximum bandwidth treated for a single flow.

The option has been deactivated by default but it is activated in
the af_packet default section. This ensure there is no change for
old users using an existing YAML. And new users will benefit from
the change.

This option is available since Linux 3.10. An analysis of af_packet
kernel code shows that setting the flag in all cases should not
cause any trouble for older kernel.
src/runmode-af-packet.c
suricata.yaml.in