]> git.ipfire.org Git - people/ms/suricata.git/commit
pfring pkt acq: keep running on 'pfring_set_cluster' failure when cluster is not...
authorcardigliano <cardigliano@ntop.org>
Thu, 22 Oct 2015 09:55:57 +0000 (11:55 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Nov 2015 12:58:07 +0000 (13:58 +0100)
commitc06dfe6e26e16b0c8e3d4965b5a0ddafc2553174
tree0563d637067eb545601f8412f395610efdff004d
parent7f8795c7563827f090d8679cb35847af0085fc56
pfring pkt acq: keep running on 'pfring_set_cluster' failure when cluster is not required

Suricata creates a pfring cluster with a default ID = 1 when not explicitly configured,
unless the device has prefix 'dna' or 'zc'. Since pf_ring also supports other cards
implementing kernel-bypass (cluster not supported), this is preventing those cards from
running on top of this module. This patch stops suricata on 'pfring_set_cluster' failure
only when error code != PF_RING_ERROR_NOT_SUPPORTED or cluster ID has not been explicitly
configured.
src/runmode-pfring.c
src/source-pfring.c
src/source-pfring.h