Commit Graph

469 Commits (123b36b9f597d479ddb0c78a5f49faa040028de4)

Author SHA1 Message Date
Matt Keeler 37e3de8425 Refactor Napatech 3GD to just Napatech as Suricata is only going to support 3GD.
Signed-off-by: Matt Keeler <mk@npulsetech.com>
12 years ago
Matt Keeler 5786a32d0f Remove Napatech 2GD support
Removed the Napatech 2GD support

runmode-napatech-3gd.c had an include from runmode-napatech.h which was erroneous and has been removed as well.

Signed-off-by: Matt Keeler <mk@npulsetech.com>
12 years ago
Eric Leblond a49bce63b0 configure: fix small typo. 12 years ago
Eric Leblond 37b05b2396 configure: improve march=native detection
clang is supposed to support march=native but if the CPU is too
recent for clang, this can cause an invalid detection of arch and
result in a incapability of clang to compile any binary.
This patch updates the test to try a compilation with march=native
when clang is the used compiler.
12 years ago
Eric Leblond 1f94239d20 configure: differentiate gcc and clang options
The version checking was made similarly for clang and gcc. This
patch modifies this to check on compiler name. This way we can
avoid to set march=native which is not supported by clang on
some system.
At the same time, this fix the annoying warning about no-fp-tree
being unsupported by clang.
12 years ago
Victor Julien 829238e49c OpenBSD 5.2 build fixes, Unit test fix. 12 years ago
Matt Keeler 844e4dba11 Napatech 3GD Support
For use with Network Cards from Napatech utilizing the 3GD driver/api.

    - Implemented new run modes in runmode-napatech-3gd.*
    - Implemented capture/decode threads in source-napatech-3gd.*
    - Integrated the new run modes and source into the build infrastructure.

    New configure switches
    --enabled-napatech-3gd : Turns on the NT 3GD support
    --with-napatech-3gd-includes : The directory containing the NT 3GD header files
    --with-napatech-3gd-libraries : The directory containing the NT 3GD libraries to link against.

    New CLI switch
    --napatech-3gd : Uses the Napatech 3GD run mode

    Runmodes Supported:
    - auto
    - autofp
    - workers

    Notes:
    - tested with 1 Gbps sustained traffic (no drops)

Signed-off-by: Matt Keeler <mk@npulsetech.com>
12 years ago
Eric Leblond 02874a16f5 gcc: construct use for warning was too recent. 13 years ago
Eric Leblond 2fbb28ece6 build: error on implicit function declaration
This patch modifies gcc options to error in case of implicit
declaration. Bug #612 has shown this kind of bugs can be very
costly.
13 years ago
Eric Leblond ac5bab8838 OpenBSD: no support for profiling
Local thread storage are not available so profiling is not supported.
13 years ago
Eric Leblond 7c85bee4aa OpenBSD: magic.mc path has changed in OpenBSD 5.1 13 years ago
Eric Leblond 58bf4ea4a4 nfq: fix detection of type nfq_get_payload function. 13 years ago
Eric Leblond ec2445702c autotools: fix default path for magic file. 13 years ago
Victor Julien c9cc137de5 Add --enable-luajit option to configure 13 years ago
Victor Julien 5b2fbfb123 luajit: tell build sys about it 13 years ago
Victor Julien 438dd61948 Update version number to reflect we're working towards 1.4 now. 13 years ago
Eric Leblond 2c57275921 nfq: implement "fail-open" support.
On linux >= 3.6, you can use the fail-open option on a NFQ queue
to have the kernel accept the packet if userspace is not able to keep
pace.

Please note that the kernel will not trigger an error if the feature is activated
in userspace libraries but not available in kernel.

This patch implements the option for suricata by adding a nfq.fail-open
configuration variable which is desactivated by default.
13 years ago
Eric Leblond adbf85c4a9 autotools: fix detection with clang
This patch improve detection of type of nfq_get_payload() by only
converting to error the warning we have when using the wrong type.
13 years ago
Eric Leblond e0ddcdd194 autotools: rename configure.in to configure.ac
configure.in is deprecated since long and will be replaced by
configure.ac. For more information, see:
  http://lists.gnu.org/archive/html/automake/2012-08/msg00023.html
13 years ago