Commit Graph

3719 Commits (3ab1458abf29e2b84b82f6f0e6af0dd77c29389b)
 

Author SHA1 Message Date
Eric Leblond e744760613 yaml: document the threads setting in pcap section. 12 years ago
Victor Julien b645425331 Silence compiler warning if napatech3 support is disabled 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. 12 years ago
Anoop Saldanha b8164b8797 fix wrong record hdr len check in ssl parser 12 years ago
Victor Julien d1573a366d Fix GetUsed functions for Host, Flow and Defrag. 12 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.
12 years ago
Eric Leblond 4542cd0eec ipfw: suppress non loop receive function 12 years ago
Eric Leblond e3a38810b6 nfq: suppress non loop receive function 12 years ago
Victor Julien 966c731e73 flow: fix crash when flow engine under extreme stress, and unable to force free any existing flow 12 years ago
Victor Julien 76f0838a9f libhtp: harden code against malloc failures. Bug #587. 12 years ago
Victor Julien da7f1d22cc http: don't assume http tx to have header alloc'd. Can happen in OOM conditions. Bug #587. 12 years ago
Victor Julien 18ecd4b287 Don't use SCStrdup in SCLogMessage as we call it on OOM condition, leading to endless recursion. SCStrdup failure calling SCLogMessage... 12 years ago
Victor Julien 70bc9e2494 filestore: fix logic flag in continued stateful detection 12 years ago
Eric Leblond 8957113550 pf-ring: fix build 12 years ago
Victor Julien d386606b80 Remove pcre jit warning. Bug #579. 12 years ago
Eric Leblond d3195b0f70 pf_ring: don't set cluster for DNA interface. 12 years ago
Anoop Saldanha 7a7cd6999e feature #558.
Print FP info in rule analysis + other cleanup.
12 years ago
Eric Leblond ac5bab8838 OpenBSD: no support for profiling
Local thread storage are not available so profiling is not supported.
12 years ago
Eric Leblond 7c85bee4aa OpenBSD: magic.mc path has changed in OpenBSD 5.1 12 years ago
Victor Julien a3f963f630 filestore: fix a case where a matching non-filestore sig could trigger the store of a partially matching filestore sig. 12 years ago
Victor Julien 3156407746 http: fix client and server body sometimes being inspected in wrong order 12 years ago
Eric Leblond b12967534a stream.inline: add 'auto' mode
stream.inline YAML configuration variable now support the 'auto' value.
In this case, inline mode is activated for IPS running mode (NFQ and
IPFW) and is deactivated for IDS mode. This patch should fix bug #592.
12 years ago
Eric Leblond b26ec60398 af-packet: fix possible infinite loop.
If no packet arrives to a capture thread, it is possible that the
AFPReadLoop() function goes into an infinite loop. This could cause
suricata to hang at exit on non busy system.
This patch adds a counter to detect when Suricata start looping in
the ring to stop when it reaches this point.
12 years ago
Eric Leblond e8a4a4c47c af-packet: dump counter every seconds.
This patch updates to kernel counters handling to be almost sure to
update at least once per second.
12 years ago
Eric Leblond 3acdd4da1d pf-ring: add counter for kernel drop and packets
This patch adds a counter for kernel drop and packets by using the
same strategy as the one used in af-packet.
12 years ago
Victor Julien 80d62b59ec Fix drop (and other actions) not being applied to thresholded packets. Bug #613. 12 years ago
Anoop Saldanha bca1b7c52a change default mpm to ac. Also default sgh-mpm-context is full. 12 years ago
Victor Julien fd6df00684 Bug 585: use per detect thread libmagic ctx 12 years ago
Victor Julien ea6fcb355b magic: add test showing payload resulting in libmagic invalid read as reported by valgrind. 12 years ago
Anoop Saldanha fdab6f2ab1 fix flow deadlock issue in detection engine state introduced by tx api.
Issue discovered by coverity.
12 years ago
Eric Leblond 00b95c69c0 suricata: list-keywords does not depend on unittest 12 years ago
Victor Julien 83ffd1f743 luajit: suppress compiler warning 12 years ago
Anoop Saldanha 2ab62920aa fix segv in hcbd and hsbd buffering.
Increase bufffers_list_len, only we open up a space for a new tx.
12 years ago
Anoop Saldanha b359bc03a9 unittest to reveal a bug/segv in our hsbd buffering code. 12 years ago
Victor Julien 4fab8ea6d6 http: fix http header reassembly bug causing some headers to be left out of the inspected buffer 12 years ago
Victor Julien 5cd46433d3 http: now that htp_state has a cfg reference, use it for body limits 12 years ago
Victor Julien 2763a61213 http: allow configuration of request and response body inspection limits. Issue #560. 12 years ago
Anoop Saldanha b99f9fe890 New app inspection engine introduced. Moved existing inspecting engines to use it. 12 years ago
Anoop Saldanha 7b4eac3e8d Change all inspect callbacks to accept TV and a tx_id param. 12 years ago
Anoop Saldanha 10a6e6a3eb Engine cleanup. Remove all old engine inspection and mpm functions. 12 years ago
Anoop Saldanha b0e20a486c update client/server/http_header to use a different form of
buffering/buffer_retrieval.

Now it happens per tx, based on tx id.  Also notice a perf improvement with
this.
12 years ago
Victor Julien e1321f9ae6 stream: change how retransmissions are handled and detected. 12 years ago
Victor Julien b621ed8423 stream: fix retransmission on closewait being considered out of window 12 years ago
Victor Julien a25629b250 stream: detect retransmissions on timewait state 12 years ago
Victor Julien 6326390120 stream: accept ack with next_seq + 1 on last_ack state 12 years ago
Victor Julien 3f6ecff260 stream: disable retransmission packet before last ack sig as it is fairly common in regular traffic 12 years ago
Victor Julien bc37cb6b8e stream: detect retransmissions on closewait and finwait2 states 12 years ago
Victor Julien 305ed3f23b stream: don't flag zero window probe packets as out of window. Bug #604. 12 years ago
Victor Julien 13e60c0040 stream: detect keep-alive packets so we don't consider those invalid 12 years ago