]> git.ipfire.org Git - people/ms/suricata.git/log
people/ms/suricata.git
13 years agoaf-packet: Add option to disable promiscuous mode
Eric Leblond [Fri, 2 Sep 2011 09:02:32 +0000 (11:02 +0200)] 
af-packet: Add option to disable promiscuous mode

This patch adds an option to suricata.yaml to be able to disable
the switch of the interface into promiscuous mode.

13 years agoaf-packet: multi interface support
Eric Leblond [Thu, 1 Sep 2011 21:43:22 +0000 (23:43 +0200)] 
af-packet: multi interface support

This patch adds multi interface support to AF_PACKET. A structure
is used at thread creation to give all needed information to the
input module. Parsing of the options is done in runmode preparation
through a dedicated function which return the configuration in a
structure usable by thread creation.

13 years agoaf-packet: change configuration format for multi interface
Eric Leblond [Tue, 30 Aug 2011 14:02:06 +0000 (16:02 +0200)] 
af-packet: change configuration format for multi interface

13 years agoconf: Introduce new function to input configuration.
Eric Leblond [Thu, 1 Sep 2011 21:13:00 +0000 (23:13 +0200)] 
conf: Introduce new function to input configuration.

The input modules are needing a per interface configuration. This
implies some new operations to be able to parse easily te configuration.

The syntax of the configuration file is for example:
af-packet:
  - interface: eth0
    threads: 2
  - interface: eth1
    threads: 3
We need a way to express get a configuration variable for interface[eth0].
This is by using ConfNodeLookupKeyValue() to get the matching node. And
after that value can be fetch by using ConfGetChildValue*() functions.

13 years agoaf-packet: finalize code
Eric Leblond [Tue, 9 Aug 2011 12:36:40 +0000 (14:36 +0200)] 
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.

13 years agofactorize pcap live device function
Eric Leblond [Tue, 9 Aug 2011 12:27:28 +0000 (14:27 +0200)] 
factorize pcap live device function

They are not specific to pcap and could thus be used in other module.

13 years agoaf-packet: basic support for AF_PACKET socket
Eric Leblond [Fri, 15 Jul 2011 16:35:30 +0000 (18:35 +0200)] 
af-packet: basic support for AF_PACKET socket

This patch provides basic support for AF_PACKET socket. It is
completed by a subsequent patches prodiding extended features
and bugfixes.

13 years agoprofiling / qa: make plot-csv-large-all.sh much more flexible.
Victor Julien [Thu, 8 Sep 2011 07:07:14 +0000 (09:07 +0200)] 
profiling / qa: make plot-csv-large-all.sh much more flexible.

13 years agoRemove vim .swp file from repo.
Victor Julien [Wed, 7 Sep 2011 11:50:28 +0000 (13:50 +0200)] 
Remove vim .swp file from repo.

13 years agofastlog print updates for ipv6. combine the io write
Anoop Saldanha [Tue, 6 Sep 2011 11:32:02 +0000 (17:02 +0530)] 
fastlog print updates for ipv6. combine the io write

13 years agofastlog print updates. combine the io write
Anoop Saldanha [Tue, 6 Sep 2011 07:24:04 +0000 (12:54 +0530)] 
fastlog print updates. combine the io write

13 years agoAdd a few more example gnuplot scripts.
Victor Julien [Wed, 7 Sep 2011 11:39:58 +0000 (13:39 +0200)] 
Add a few more example gnuplot scripts.

13 years agoAdd per app layer parser profiling
Victor Julien [Wed, 7 Sep 2011 10:02:36 +0000 (12:02 +0200)] 
Add per app layer parser profiling

Per packet per app layer parser profiling. Example summary output:

Per App layer parser stats:

App Layer              IP ver   Proto   cnt        min      max          avg
--------------------   ------   -----   ------     ------   ----------   -------
ALPROTO_HTTP            IPv4       6    163394        126     38560320     42814
ALPROTO_FTP             IPv4       6       644        117        26100      2566
ALPROTO_TLS             IPv4       6       670        117         7137       799
ALPROTO_SMB             IPv4       6    114794        126       225270       957
ALPROTO_DCERPC          IPv4       6      5207        126        25596      1266

Also added to the csv out.

In the csv out there is a new column "stream (no app)" that removes the
app layer parsers from the stream tracking. So raw stream engine performance
becomes visible.

13 years agoMove TlsConfig structure out of app-layer-protos.h and rename it to SslConfig.
Victor Julien [Wed, 7 Sep 2011 07:35:41 +0000 (09:35 +0200)] 
Move TlsConfig structure out of app-layer-protos.h and rename it to SslConfig.

13 years agoAdd per packet profiling.
Victor Julien [Tue, 6 Sep 2011 14:45:45 +0000 (16:45 +0200)] 
Add per packet profiling.

Per packet profiling uses tick based accounting. It has 2 outputs, a summary
and a csv file that contains per packet stats.

Stats per packet include:
 1) total ticks spent
 2) ticks spent per individual thread module
 3) "threading overhead" which is simply calculated by subtracting (2) of (1).

A number of changes were made to integrate the new code in a clean way:
a number of generic enums are now placed in tm-threads-common.h so we can
include them from any part of the engine.

Code depends on --enable-profiling just like the rule profiling code.

New yaml parameters:

profiling:
  # packet profiling
  packets:

    # Profiling can be disabled here, but it will still have a
    # performance impact if compiled in.
    enabled: yes
    filename: packet_stats.log
    append: yes

    # per packet csv output
    csv:

      # Output can be disabled here, but it will still have a
      # performance impact if compiled in.
      enabled: no
      filename: packet_stats.csv

Example output of summary stats:

IP ver   Proto   cnt        min      max          avg
------   -----   ------     ------   ----------   -------
 IPv4       6     19436      11448      5404365     32993
 IPv4     256         4      11511        49968     30575

Per Thread module stats:

Thread Module              IP ver   Proto   cnt        min      max          avg
------------------------   ------   -----   ------     ------   ----------   -------
TMM_DECODEPCAPFILE          IPv4       6     19434       1242        47889      1770
TMM_DETECT                  IPv4       6     19436       1107       137241      1504
TMM_ALERTFASTLOG            IPv4       6     19436         90         1323       155
TMM_ALERTUNIFIED2ALERT      IPv4       6     19436        108         1359       138
TMM_ALERTDEBUGLOG           IPv4       6     19436         90         1134       154
TMM_LOGHTTPLOG              IPv4       6     19436        414      5392089      7944
TMM_STREAMTCP               IPv4       6     19434        828      1299159     19438

The proto 256 is a counter for handling of pseudo/tunnel packets.

Example output of csv:

pcap_cnt,ipver,ipproto,total,TMM_DECODENFQ,TMM_VERDICTNFQ,TMM_RECEIVENFQ,TMM_RECEIVEPCAP,TMM_RECEIVEPCAPFILE,TMM_DECODEPCAP,TMM_DECODEPCAPFILE,TMM_RECEIVEPFRING,TMM_DECODEPFRING,TMM_DETECT,TMM_ALERTFASTLOG,TMM_ALERTFASTLOG4,TMM_ALERTFASTLOG6,TMM_ALERTUNIFIEDLOG,TMM_ALERTUNIFIEDALERT,TMM_ALERTUNIFIED2ALERT,TMM_ALERTPRELUDE,TMM_ALERTDEBUGLOG,TMM_ALERTSYSLOG,TMM_LOGDROPLOG,TMM_ALERTSYSLOG4,TMM_ALERTSYSLOG6,TMM_RESPONDREJECT,TMM_LOGHTTPLOG,TMM_LOGHTTPLOG4,TMM_LOGHTTPLOG6,TMM_PCAPLOG,TMM_STREAMTCP,TMM_DECODEIPFW,TMM_VERDICTIPFW,TMM_RECEIVEIPFW,TMM_RECEIVEERFFILE,TMM_DECODEERFFILE,TMM_RECEIVEERFDAG,TMM_DECODEERFDAG,threading
1,4,6,172008,0,0,0,0,0,0,47889,0,0,48582,1323,0,0,0,0,1359,0,1134,0,0,0,0,0,8028,0,0,0,49356,0,0,0,0,0,0,0,14337

First line of the file contains labels.

2 example gnuplot scripts added to plot the data.

13 years agoRename profile macro's and variables to reflect that they are for rule profiling.
Victor Julien [Sun, 4 Sep 2011 11:07:28 +0000 (13:07 +0200)] 
Rename profile macro's and variables to reflect that they are for rule profiling.

13 years agopcap-file: Allocated packet must be free if there's error
Eric Leblond [Thu, 11 Aug 2011 09:23:56 +0000 (11:23 +0200)] 
pcap-file: Allocated packet must be free if there's error

13 years agodetect: fix regular expression used for check.
Eric Leblond [Thu, 11 Aug 2011 09:23:54 +0000 (11:23 +0200)] 
detect: fix regular expression used for check.

13 years agonfq: Fix deinit phase
Eric Leblond [Thu, 11 Aug 2011 09:23:53 +0000 (11:23 +0200)] 
nfq: Fix deinit phase

If receive thread is failling, we need to restart it but the code was
not restarting the queue (this was done in verdict thread).

13 years agonfq: make thread abort if NFQ verdict fail
Eric Leblond [Thu, 11 Aug 2011 09:23:52 +0000 (11:23 +0200)] 
nfq: make thread abort if NFQ verdict fail

13 years agonfq: Add iterator on nfq_set_verdict
Eric Leblond [Thu, 11 Aug 2011 09:23:51 +0000 (11:23 +0200)] 
nfq: Add iterator on nfq_set_verdict

This patch adds retry to nfq_set_verdict in case of error.

13 years agotm-thread: fix documentation string
Eric Leblond [Thu, 11 Aug 2011 09:23:48 +0000 (11:23 +0200)] 
tm-thread: fix documentation string

13 years agoFix macro about default packet size
Eric Leblond [Tue, 30 Aug 2011 16:11:47 +0000 (18:11 +0200)] 
Fix macro about default packet size

Being pessimistic about packet default size has side effect in
some module. Falling back to the sane correct value.

13 years agoRename rule_type_t to ThresholdRuleType.
Eric Leblond [Mon, 29 Aug 2011 16:14:41 +0000 (18:14 +0200)] 
Rename rule_type_t to ThresholdRuleType.

13 years agosuppress: use DetectAddress instead of DetectAddressHead
Eric Leblond [Mon, 29 Aug 2011 15:04:32 +0000 (17:04 +0200)] 
suppress: use DetectAddress instead of DetectAddressHead

13 years agoExport some DetectAddress related function.
Eric Leblond [Mon, 29 Aug 2011 15:04:14 +0000 (17:04 +0200)] 
Export some DetectAddress related function.

13 years agothreshold: refactoring of parsing code
Eric Leblond [Mon, 15 Aug 2011 21:34:37 +0000 (23:34 +0200)] 
threshold: refactoring of parsing code

This patch factorize the regular expression to be ease the parsing
process. It also adds a missing free and factorize exit code.

13 years agothreshold: add suppress keyword
Eric Leblond [Mon, 15 Aug 2011 08:55:55 +0000 (10:55 +0200)] 
threshold: add suppress keyword

This patch adds the suppress keyword to the threshold.config file.
The alerts are suppressed but the other elements like flowbits are
maintained.

13 years agoAdd sanity check to DetectAdressParse.
Eric Leblond [Mon, 15 Aug 2011 20:33:25 +0000 (22:33 +0200)] 
Add sanity check to DetectAdressParse.

The function is only used at parsing time, this is not costly to add
a simple sanity check.

13 years agothreshold: fix trivial typo in parsing.
Eric Leblond [Fri, 12 Aug 2011 15:48:16 +0000 (17:48 +0200)] 
threshold: fix trivial typo in parsing.

13 years agodoc: introduce doxygen group "threshold"
Eric Leblond [Fri, 12 Aug 2011 08:14:35 +0000 (10:14 +0200)] 
doc: introduce doxygen group "threshold"

This patch introduces a doxygen group to put together the documentation
relative to threshold. Group appear in a separate page and they can have
their own documentation. This is useful when a feature is splitted into
different files.

13 years agoFix flowint keyword pcre_get_substring issue.
Victor Julien [Tue, 30 Aug 2011 13:20:08 +0000 (15:20 +0200)] 
Fix flowint keyword pcre_get_substring issue.

13 years agoFix urilen keyword pcre_get_substring issue.
Victor Julien [Tue, 30 Aug 2011 12:31:58 +0000 (14:31 +0200)] 
Fix urilen keyword pcre_get_substring issue.

13 years agoFix ssl keyword pcre_get_substring issue.
Victor Julien [Tue, 30 Aug 2011 11:12:41 +0000 (13:12 +0200)] 
Fix ssl keyword pcre_get_substring issue.

13 years agoTransform inet_ntop call into PrintInet one.
Eric Leblond [Mon, 29 Aug 2011 13:52:03 +0000 (15:52 +0200)] 
Transform inet_ntop call into PrintInet one.

13 years agoIntroduce PrintInet function
Eric Leblond [Mon, 29 Aug 2011 13:52:02 +0000 (15:52 +0200)] 
Introduce PrintInet function

This function has the same signature than inet_ntop() and it
will be used as substitution in the code. For IPv4 this is a simple
wrapper. For IPv6, it display addresses with fixed length.

13 years agoSmall optimizations to pkt acq loop code.
Victor Julien [Mon, 25 Jul 2011 08:53:32 +0000 (10:53 +0200)] 
Small optimizations to pkt acq loop code.

13 years agoImplement a pkt acq loop infra with support for pcap-file.
Victor Julien [Sun, 24 Jul 2011 10:52:46 +0000 (12:52 +0200)] 
Implement a pkt acq loop infra with support for pcap-file.

13 years agoMinor changes to move function calls that kills threads + frees resources to the...
Anoop Saldanha [Wed, 17 Aug 2011 15:36:49 +0000 (21:06 +0530)] 
Minor changes to move function calls that kills threads + frees resources to the clean up phase right to the end of main thread

13 years agoFix code that allows the engine to restart threads that have exited on failure
Anoop Saldanha [Wed, 17 Aug 2011 09:52:13 +0000 (15:22 +0530)] 
Fix code that allows the engine to restart threads that have exited on failure

13 years agocode cleanup in tm-threads.c
Anoop Saldanha [Thu, 11 Aug 2011 16:29:43 +0000 (21:59 +0530)] 
code cleanup in tm-threads.c

13 years agoUnify the use of slots to a single struct for threading API. Remove separate slot...
Anoop Saldanha [Thu, 11 Aug 2011 15:09:39 +0000 (20:39 +0530)] 
Unify the use of slots to a single struct for threading API. Remove separate slot append functions for 1slot and varslot

13 years agoActually limit recursion and backtracking and stack usage by PCRE. Logic was broken...
William [Mon, 22 Aug 2011 17:24:20 +0000 (12:24 -0500)] 
Actually limit recursion and backtracking and stack usage by PCRE. Logic was broken, no example was provided in suricata.yaml even though it could be set from there.

13 years agoFix for silly pcap counters mistake made by me. ps_recv includes dropped packets.
William [Wed, 10 Aug 2011 05:12:29 +0000 (00:12 -0500)] 
Fix for silly pcap counters mistake made by me. ps_recv includes dropped packets.

13 years agoOnly check for PF_RING if we enable PF_RING.
William [Mon, 1 Aug 2011 20:52:17 +0000 (15:52 -0500)] 
Only check for PF_RING if we enable PF_RING.

14 years agoOnly set PF_RING cluster if we have more than one receive thread. Gives us accurate...
William [Tue, 26 Jul 2011 05:22:26 +0000 (00:22 -0500)] 
Only set PF_RING cluster if we have more than one receive thread. Gives us accurate drop stats.

14 years agocoverity fix for counters api
Anoop Saldanha [Mon, 25 Jul 2011 07:05:17 +0000 (12:35 +0530)] 
coverity fix for counters api

14 years agocoverity fix - 1.1beta branch - add some comments to indicate false positives by...
Anoop Saldanha [Sun, 24 Jul 2011 10:38:52 +0000 (16:08 +0530)] 
coverity fix - 1.1beta branch - add some comments to indicate false positives by coverity for future reference - mainly comments for switch statement fall through

14 years agoFixes for out of bounds pcre_get_substring calls no longer silently accepted by moder...
Victor Julien [Fri, 22 Jul 2011 06:42:43 +0000 (08:42 +0200)] 
Fixes for out of bounds pcre_get_substring calls no longer silently accepted by modern pcre.

14 years agoSupport for PF_RING versions where packet passed as a reference and version 4.7.1...
William [Mon, 18 Jul 2011 21:43:28 +0000 (16:43 -0500)] 
Support for PF_RING versions where packet passed as a reference and version 4.7.1 where pfring_enable_ring now seems to be required.

14 years agoautotools: fix duplicate check command in Makefile.
Eric Leblond [Fri, 15 Jul 2011 16:24:35 +0000 (18:24 +0200)] 
autotools: fix duplicate check command in Makefile.

It seems that check target can not be used in Makefile.am. Using
check-am fix a make failure.

14 years agoIndentation fix on source-pcap.
Eric Leblond [Fri, 15 Jul 2011 16:24:36 +0000 (18:24 +0200)] 
Indentation fix on source-pcap.

14 years agofix var name parsing in byte_extract
Anoop Saldanha [Mon, 27 Jun 2011 07:50:23 +0000 (13:20 +0530)] 
fix var name parsing in byte_extract

14 years agoadd flowbits:set; only sigs to be treated as ip only
Anoop Saldanha [Thu, 14 Jul 2011 03:37:14 +0000 (09:07 +0530)] 
add flowbits:set; only sigs to be treated as ip only

14 years agoAdd Num, Rev, and Gid columns to rule perf output
William [Thu, 30 Jun 2011 22:15:00 +0000 (17:15 -0500)] 
Add Num, Rev, and Gid columns to rule perf output

14 years agoImprove HTPParserTest07 test to be more helpful if it fails.
Victor Julien [Sat, 9 Jul 2011 10:27:05 +0000 (12:27 +0200)] 
Improve HTPParserTest07 test to be more helpful if it fails.

14 years agoFix stream unittest.
Victor Julien [Sun, 10 Jul 2011 17:46:29 +0000 (19:46 +0200)] 
Fix stream unittest.

14 years agoHave separate parser vars in smtp to hold dynamic buffers for parsing fragmented...
Anoop Saldanha [Thu, 30 Jun 2011 06:41:56 +0000 (12:11 +0530)] 
Have separate parser vars in smtp to hold dynamic buffers for parsing fragmented lines

14 years agosmtp parser support
Anoop Saldanha [Sat, 4 Jun 2011 13:32:56 +0000 (19:02 +0530)] 
smtp parser support

14 years agoFix handling of FIN/ACK packet on TCP state TCP_FIN_WAIT2.
Victor Julien [Thu, 7 Jul 2011 09:25:51 +0000 (11:25 +0200)] 
Fix handling of FIN/ACK packet on TCP state TCP_FIN_WAIT2.

14 years agoUse p->proto in detect to determine TCP/UDP/SCTP.
Victor Julien [Thu, 7 Jul 2011 09:24:07 +0000 (11:24 +0200)] 
Use p->proto in detect to determine TCP/UDP/SCTP.

14 years agoFix unified2 packet length not being set properly for reassembled stream packets.
Victor Julien [Sat, 9 Jul 2011 11:04:16 +0000 (13:04 +0200)] 
Fix unified2 packet length not being set properly for reassembled stream packets.

14 years agoFix a reassembly bug that in some cases could lead to a crash.
Victor Julien [Thu, 23 Jun 2011 13:27:49 +0000 (15:27 +0200)] 
Fix a reassembly bug that in some cases could lead to a crash.

14 years agoOnly compile byte_extract unittests if --enable-unittests is enabled.
Victor Julien [Thu, 23 Jun 2011 16:05:06 +0000 (18:05 +0200)] 
Only compile byte_extract unittests if --enable-unittests is enabled.

14 years agocpu affinity: detect a missed invalid case
Eric Leblond [Fri, 17 Jun 2011 21:39:55 +0000 (23:39 +0200)] 
cpu affinity: detect a missed invalid case

This patch improves the error handling in the definition of cpu
set. It detect when the max value is too big and display the name
of the invalid cpu set in error message.

14 years agoFix #290: avoid looping when affinity is invalid
Eric Leblond [Fri, 17 Jun 2011 21:25:05 +0000 (23:25 +0200)] 
Fix #290: avoid looping when affinity is invalid

This patch adds a loop counter to detect when the cpu_set does
not intersect the set of available CPUs.

14 years agoAttempt to work around missing __WORDSIZE define on FreeBSD.
Victor Julien [Mon, 20 Jun 2011 10:25:31 +0000 (12:25 +0200)] 
Attempt to work around missing __WORDSIZE define on FreeBSD.

14 years agoFix a number of unittests not properly initializing a packet causing issues on some...
Victor Julien [Mon, 20 Jun 2011 07:25:21 +0000 (09:25 +0200)] 
Fix a number of unittests not properly initializing a packet causing issues on some archs.

14 years agoFix minor compiler comments in CUDA code.
Victor Julien [Wed, 15 Jun 2011 12:11:39 +0000 (14:11 +0200)] 
Fix minor compiler comments in CUDA code.

14 years agofixed cuda build: portability issues and nvcc version check
Martin Beyer [Tue, 8 Mar 2011 14:07:53 +0000 (15:07 +0100)] 
fixed cuda build: portability issues and nvcc version check

14 years agofixed ptxdump for python3
Martin Beyer [Thu, 11 Nov 2010 18:18:24 +0000 (19:18 +0100)] 
fixed ptxdump for python3

14 years agobuild cuda modules with make
Martin Beyer [Thu, 22 Jul 2010 14:03:52 +0000 (16:03 +0200)] 
build cuda modules with make

14 years agoMake sure stateful detection engine inspecting HTTP streams works well for to_client...
Victor Julien [Tue, 14 Jun 2011 16:02:05 +0000 (18:02 +0200)] 
Make sure stateful detection engine inspecting HTTP streams works well for to_client rules as well.

14 years agominor fixes in endianness handling in dcerpc and dce detection engine
Anoop Saldanha [Tue, 14 Jun 2011 07:31:39 +0000 (13:01 +0530)] 
minor fixes in endianness handling in dcerpc and dce detection engine

14 years agoImprove DCERPC big endian support when parsing BIND CTX Items (UUID). Make default...
Kirby Kuehl [Mon, 6 Jun 2011 14:28:27 +0000 (09:28 -0500)] 
Improve DCERPC big endian support when parsing BIND CTX Items (UUID). Make default byte packing order for the slow path little endian. Byte swapping on slow path will occur if big endian. This is a readability change, not a functional change.

14 years agobyte_extract support for isdataat added
Anoop Saldanha [Mon, 13 Jun 2011 14:46:53 +0000 (20:16 +0530)] 
byte_extract support for isdataat added

14 years agobyte extract added to the engine. Detection support added for packet payload, uri...
Anoop Saldanha [Sun, 12 Jun 2011 12:19:57 +0000 (17:49 +0530)] 
byte extract added to the engine. Detection support added for packet payload, uri and dce detection engines

14 years agoUnified2: Use local variable for header copy
Eric Leblond [Sat, 11 Jun 2011 13:26:23 +0000 (15:26 +0200)] 
Unified2: Use local variable for header copy

Due to the chaining of function call, the per-thread buffer was overwritten.
This was causing invalid data to be output.

This patch restores a local variable usage for the writing of the header
which are rather small and thus should not be a performance and security
issue.

14 years agoFix len computation.
Eric Leblond [Sat, 11 Jun 2011 13:26:22 +0000 (15:26 +0200)] 
Fix len computation.

14 years agoRegister http parser callbacks in the right place.
deltay [Fri, 10 Jun 2011 08:59:19 +0000 (16:59 +0800)] 
Register http parser callbacks in the right place.

14 years agoFix passing a uint8_t as an int. Breaks on some args.
Victor Julien [Fri, 10 Jun 2011 12:27:04 +0000 (14:27 +0200)] 
Fix passing a uint8_t as an int. Breaks on some args.

14 years agoFix complition on OS/archs that don't support atomic variables.
Victor Julien [Wed, 8 Jun 2011 12:35:17 +0000 (14:35 +0200)] 
Fix complition on OS/archs that don't support atomic variables.

14 years agoFix broken stateful detection unittest.
Victor Julien [Wed, 8 Jun 2011 11:57:19 +0000 (13:57 +0200)] 
Fix broken stateful detection unittest.

14 years agolibhtp/m4 dir won't be created on CentOS 5.3 by autogen.sh, so work around that by...
Victor Julien [Wed, 8 Jun 2011 11:40:27 +0000 (13:40 +0200)] 
libhtp/m4 dir won't be created on CentOS 5.3 by autogen.sh, so work around that by having it in git

14 years agoUse pmmintrin.h as older gcc's don't have immintrin.h it seems.
Victor Julien [Tue, 7 Jun 2011 16:22:30 +0000 (18:22 +0200)] 
Use pmmintrin.h as older gcc's don't have immintrin.h it seems.

14 years agoAdd a app layer state and stateful detection engine counter that makes sure the state...
Victor Julien [Tue, 7 Jun 2011 16:15:03 +0000 (18:15 +0200)] 
Add a app layer state and stateful detection engine counter that makes sure the stateful inspection is only done when the state changes.

14 years agoClean up stateful detection code.
Victor Julien [Tue, 7 Jun 2011 11:36:45 +0000 (13:36 +0200)] 
Clean up stateful detection code.

14 years agoFix SIMD mask checking on 64 bit systems.
Victor Julien [Mon, 6 Jun 2011 19:16:28 +0000 (21:16 +0200)] 
Fix SIMD mask checking on 64 bit systems.

14 years agoFix signature mask bitorder.
Victor Julien [Mon, 6 Jun 2011 13:23:44 +0000 (15:23 +0200)] 
Fix signature mask bitorder.

14 years agoAlways reset alert cnt and always increment det_ctx->pkts.
Victor Julien [Fri, 3 Jun 2011 14:49:39 +0000 (16:49 +0200)] 
Always reset alert cnt and always increment det_ctx->pkts.

14 years agoAdd more mask flags.
Victor Julien [Fri, 3 Jun 2011 14:33:16 +0000 (16:33 +0200)] 
Add more mask flags.

14 years agoUse 64 bit mask on 64-bit systems.
Victor Julien [Fri, 3 Jun 2011 13:21:11 +0000 (15:21 +0200)] 
Use 64 bit mask on 64-bit systems.

14 years agoCheck 32 masks per run instead of 16 in the SIMD code.
Victor Julien [Thu, 2 Jun 2011 21:21:07 +0000 (23:21 +0200)] 
Check 32 masks per run instead of 16 in the SIMD code.

14 years agoClean up new SIMD mask checking code, improve non-SIMD checks.
Victor Julien [Thu, 2 Jun 2011 19:30:23 +0000 (21:30 +0200)] 
Clean up new SIMD mask checking code, improve non-SIMD checks.

14 years agoMatch packet mask against 16 signature masks at once using SIMD instructions for...
Victor Julien [Thu, 2 Jun 2011 18:36:09 +0000 (20:36 +0200)] 
Match packet mask against 16 signature masks at once using SIMD instructions for SSE3 and up.

14 years agoAdd wrappers for aligned memory allocation.
Victor Julien [Thu, 2 Jun 2011 11:59:40 +0000 (13:59 +0200)] 
Add wrappers for aligned memory allocation.

14 years agoAdd Vector datatype for SSE operations.
Victor Julien [Thu, 2 Jun 2011 11:53:06 +0000 (13:53 +0200)] 
Add Vector datatype for SSE operations.

14 years agoAdd compiler and hardware barrier macro's.
Victor Julien [Sat, 19 Mar 2011 14:48:13 +0000 (15:48 +0100)] 
Add compiler and hardware barrier macro's.

14 years agoFix broken fix.
Victor Julien [Mon, 6 Jun 2011 19:11:31 +0000 (21:11 +0200)] 
Fix broken fix.

14 years agoDon't loose memory if PoolInit fails
Gerardo Iglesias Galvan [Fri, 3 Jun 2011 05:18:53 +0000 (00:18 -0500)] 
Don't loose memory if PoolInit fails