]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
13 years agotm-thread: detect thread death 98/head
Eric Leblond [Wed, 26 Sep 2012 14:03:33 +0000 (16:03 +0200)] 
tm-thread: detect thread death

When a thread is dead at init the THV_INIT_DONE flag is not set
and the spawn function can freeze (see bug #553 for an example).
In this case THV_RUNNING_DONE is set and we can also check on this
state for leaving the function. This should fix #bug553

13 years agothreshold: improve comments of shipped threshold.config, add links to wiki.
Victor Julien [Wed, 26 Sep 2012 09:42:53 +0000 (11:42 +0200)] 
threshold: improve comments of shipped threshold.config, add links to wiki.

13 years agofix http server/client body handling. Update body status based on tx state.
Anoop Saldanha [Tue, 25 Sep 2012 14:53:29 +0000 (20:23 +0530)] 
fix http server/client body handling.  Update body status based on tx state.

13 years agothreshold: allow threshold.config to override rule
Victor Julien [Wed, 26 Sep 2012 06:58:05 +0000 (08:58 +0200)] 
threshold: allow threshold.config to override rule

Allow threshold.conf to override rule thresholds in the following
cases:

- threshold.config rule uses threshold or event_filter AND
- threshold.config rule applies to a single signature (so no
  gid 0 or sid 0)

Confirmed to work with both threshold and detection_filter rule
keywords.

Part of bug #425.

13 years agoMinor parsing cleanups in detect-engine options.
Victor Julien [Wed, 26 Sep 2012 05:17:54 +0000 (07:17 +0200)] 
Minor parsing cleanups in detect-engine options.

13 years agoyaml: add addr and port vars commonly used by ET/ETpro
Victor Julien [Tue, 25 Sep 2012 12:46:51 +0000 (14:46 +0200)] 
yaml: add addr and port vars commonly used by ET/ETpro

13 years agococcinelle: add test on malloc error check. 91/head
Eric Leblond [Fri, 21 Sep 2012 10:47:44 +0000 (12:47 +0200)] 
coccinelle: add test on malloc error check.

This patch adds a coccinelle code check on SCMalloc, SCCalloc and
SCStrdup and other memory handling functions. It verifies that the
error checking is made.

13 years agoFix indentation of win32 files.
Eric Leblond [Mon, 24 Sep 2012 11:24:29 +0000 (13:24 +0200)] 
Fix indentation of win32 files.

13 years agoAdd missing sctrdup test
Eric Leblond [Mon, 24 Sep 2012 11:02:30 +0000 (13:02 +0200)] 
Add missing sctrdup test

13 years agococcinelle: don't test UNITTEST code
Eric Leblond [Sun, 23 Sep 2012 16:05:32 +0000 (18:05 +0200)] 
coccinelle: don't test UNITTEST code

13 years agoUse unlikely for error treatment.
Eric Leblond [Sun, 23 Sep 2012 13:56:00 +0000 (15:56 +0200)] 
Use unlikely for error treatment.

When handling error case on SCMallog, SCCalloc or SCStrdup
we are in an unlikely case. This patch adds the unlikely()
expression to indicate this to gcc.

This patch has been obtained via coccinelle. The transformation
is the following:

@istested@
identifier x;
statement S1;
identifier func =~ "(SCMalloc|SCStrdup|SCCalloc)";
@@

x = func(...)
... when != x
- if (x == NULL) S1
+ if (unlikely(x == NULL)) S1

13 years agoAdd some missing checks of SCStrdup return.
Eric Leblond [Fri, 21 Sep 2012 21:26:53 +0000 (23:26 +0200)] 
Add some missing checks of SCStrdup return.

13 years agoAdd some missing checks of SCMalloc return.
Eric Leblond [Fri, 21 Sep 2012 13:24:17 +0000 (15:24 +0200)] 
Add some missing checks of SCMalloc return.

13 years agothreshold: allow suppression for sigs with threshold set. Part of #425.
Victor Julien [Mon, 24 Sep 2012 14:53:59 +0000 (16:53 +0200)] 
threshold: allow suppression for sigs with threshold set. Part of #425.

13 years agofix for #529
Anoop Saldanha [Fri, 21 Sep 2012 18:44:01 +0000 (00:14 +0530)] 
fix for #529

Respect pcre's anchor during content inspection.

13 years agoUnittest to display #bug 529. pcre anchor not respected
Anoop Saldanha [Mon, 24 Sep 2012 10:32:07 +0000 (16:02 +0530)] 
Unittest to display #bug 529.  pcre anchor not respected

13 years agodetect-pcre.c cleanup. Delete old pcre functions that we no longer use.
Anoop Saldanha [Fri, 21 Sep 2012 17:48:11 +0000 (23:18 +0530)] 
detect-pcre.c cleanup.  Delete old pcre functions that we no longer use.

13 years agoaf-packet: clean APFPacketVar before release.
Eric Leblond [Wed, 19 Sep 2012 14:40:14 +0000 (16:40 +0200)] 
af-packet: clean APFPacketVar before release.

This patch resets the AFPPacketVar linked to a Packet in the release
function to avoid any side effect when the packet is reused. To do
so a new AFPV_CLEANUP macro has been introduced.

13 years agodecode: clean release function
Eric Leblond [Wed, 19 Sep 2012 13:40:54 +0000 (15:40 +0200)] 
decode: clean release function

13 years agoGive priority to non stream content over stream content when selecting fast
Anoop Saldanha [Fri, 21 Sep 2012 15:15:17 +0000 (20:45 +0530)] 
Give priority to non stream content over stream content when selecting fast
pattern.

13 years agoMinor output cleanup
Victor Julien [Fri, 21 Sep 2012 15:43:11 +0000 (17:43 +0200)] 
Minor output cleanup

13 years agoFix defrag compilation warning.
Victor Julien [Fri, 21 Sep 2012 15:39:32 +0000 (17:39 +0200)] 
Fix defrag compilation warning.

13 years agoFix compilation if luajit is disabled.
Victor Julien [Fri, 21 Sep 2012 14:59:27 +0000 (16:59 +0200)] 
Fix compilation if luajit is disabled.

13 years agoluajit: correct offset passed to script for lua's array idx starting at 1. Add http...
Victor Julien [Fri, 21 Sep 2012 14:36:48 +0000 (16:36 +0200)] 
luajit: correct offset passed to script for lua's array idx starting at 1. Add http.response_headers and http.response_headers.raw buffers.

13 years agoreintroduce pool free func for cases where block alloc is not used.
Victor Julien [Fri, 21 Sep 2012 13:10:28 +0000 (15:10 +0200)] 
reintroduce pool free func for cases where block alloc is not used.

13 years agoluajit: prealloc lua states to increases chances of alloc success. Luajit requires...
Victor Julien [Fri, 21 Sep 2012 12:18:53 +0000 (14:18 +0200)] 
luajit: prealloc lua states to increases chances of alloc success. Luajit requires them to be in memory <2GB.

13 years agopool: only alloc one large block if it will actually be used.
Victor Julien [Fri, 21 Sep 2012 12:17:42 +0000 (14:17 +0200)] 
pool: only alloc one large block if it will actually be used.

13 years agoluajit: fix crash at shutdown / rule reload if lua script didn't properly init.
Victor Julien [Thu, 20 Sep 2012 20:09:30 +0000 (22:09 +0200)] 
luajit: fix crash at shutdown / rule reload if lua script didn't properly init.

13 years agoAdd missing include in flow-manager
Eric Leblond [Thu, 20 Sep 2012 07:14:58 +0000 (09:14 +0200)] 
Add missing include in flow-manager

DefragTimeoutHash was not declared before being used.

13 years agoluajit: fix crash if luaL_newstate fails
Victor Julien [Thu, 20 Sep 2012 13:19:51 +0000 (15:19 +0200)] 
luajit: fix crash if luaL_newstate fails

13 years agoluajit: buffer selection fixes
Victor Julien [Thu, 20 Sep 2012 07:48:38 +0000 (09:48 +0200)] 
luajit: buffer selection fixes

13 years agohttp: fix multipart parsing bug
Victor Julien [Thu, 20 Sep 2012 12:46:22 +0000 (14:46 +0200)] 
http: fix multipart parsing bug

13 years agostream: never resend reassembled data to app layer.
Victor Julien [Thu, 20 Sep 2012 12:42:41 +0000 (14:42 +0200)] 
stream: never resend reassembled data to app layer.

13 years agoapp layer events: prefilter sigs that need an event
Victor Julien [Wed, 19 Sep 2012 12:09:41 +0000 (14:09 +0200)] 
app layer events: prefilter sigs that need an event

13 years agoengine events: prefilter sigs that need a event
Victor Julien [Wed, 19 Sep 2012 10:58:56 +0000 (12:58 +0200)] 
engine events: prefilter sigs that need a event

13 years agoaf-packet: little code cleaning
Eric Leblond [Tue, 18 Sep 2012 15:12:31 +0000 (17:12 +0200)] 
af-packet: little code cleaning

This patch cleans the code were two almost identical treatment on
the packet we're made. It may be linked by a merge error I've done
or to a simple mistake on my side.

13 years agoaf-packet: fix IPS mode
Eric Leblond [Wed, 19 Sep 2012 07:55:50 +0000 (09:55 +0200)] 
af-packet: fix IPS mode

There was an inversion in code resulting as all sockets being seen
as non IPS mode when doing the peering. This resulted in a crash at
first packet because it has no peer.

13 years agoFix logic operator.
Eric Leblond [Tue, 18 Sep 2012 13:01:12 +0000 (15:01 +0200)] 
Fix logic operator.

Previous patches on the same subject did not fixed this error as it
was undetected because the code was not compiled on my setup.

13 years agoDefrag engine
Victor Julien [Tue, 18 Sep 2012 16:13:09 +0000 (18:13 +0200)] 
Defrag engine

Big rewrite of defrag engine to make it more scalable and fix some
locking logic flaws.

Now uses a hash of trackers similar to Flow and Host hashes.

13 years agoprofiling: fix build on older systems
Victor Julien [Mon, 17 Sep 2012 09:21:26 +0000 (11:21 +0200)] 
profiling: fix build on older systems

13 years agoautotools: fix doc install on old systems. 73/head
Eric Leblond [Mon, 17 Sep 2012 09:11:47 +0000 (11:11 +0200)] 
autotools: fix doc install on old systems.

13 years agoprofiling: remove obsolete unit test
Victor Julien [Mon, 17 Sep 2012 08:38:39 +0000 (10:38 +0200)] 
profiling: remove obsolete unit test

13 years agopf_ring: set cluster_id even if only one thread is used.
Eric Leblond [Fri, 14 Sep 2012 16:06:37 +0000 (18:06 +0200)] 
pf_ring: set cluster_id even if only one thread is used.

13 years agoprofiling: minor cleanup
Victor Julien [Mon, 17 Sep 2012 08:34:34 +0000 (10:34 +0200)] 
profiling: minor cleanup

13 years agoprofiling: make sure counters are reset after a reload.
Victor Julien [Mon, 17 Sep 2012 07:56:52 +0000 (09:56 +0200)] 
profiling: make sure counters are reset after a reload.

13 years agoprofiling: fix memory error in case of rule reload.
Victor Julien [Sun, 16 Sep 2012 10:57:53 +0000 (12:57 +0200)] 
profiling: fix memory error in case of rule reload.

13 years agoRule profiling update
Victor Julien [Sun, 16 Sep 2012 10:08:35 +0000 (12:08 +0200)] 
Rule profiling update

- Remove usage of counters api.
- Store stats in detect engine thread ctx to remove locking
- Support rule reloads

13 years agoluajit: add http.uri.raw, cookie, ua, headers, headers.raw buffers.
Victor Julien [Fri, 14 Sep 2012 05:59:57 +0000 (07:59 +0200)] 
luajit: add http.uri.raw, cookie, ua, headers, headers.raw buffers.

13 years agoFix build if luajit is not available.
Eric Leblond [Thu, 13 Sep 2012 12:52:42 +0000 (14:52 +0200)] 
Fix build if luajit is not available.

13 years agodefrag: don't return after a cleaning. 69/head
Eric Leblond [Thu, 13 Sep 2012 09:57:07 +0000 (11:57 +0200)] 
defrag: don't return after a cleaning.

This patch changes the policy of the timeout function by cleaning
every timeouted trackers.
Previous code was only freeing the first tracker and this was resulting
in calling the timeout function continuously. One of my previous patch
has modified the function to avoid to run it more than twice a second.
But as it was not taken into account the fact only the first tracker was
freed, the result was that a lot of tracker could not be allocated.

13 years agoluajit: support http.request_body (http_client_body) and http.response_body (file_dat...
Victor Julien [Wed, 12 Sep 2012 15:52:57 +0000 (17:52 +0200)] 
luajit: support http.request_body (http_client_body) and http.response_body (file_data/http_server_body).

13 years agoluajit: clean up initialization
Victor Julien [Sun, 9 Sep 2012 13:46:11 +0000 (15:46 +0200)] 
luajit: clean up initialization

13 years agoInstall documentation with 'make install'.
Eric Leblond [Mon, 10 Sep 2012 09:18:07 +0000 (11:18 +0200)] 
Install documentation with 'make install'.

13 years agopool: rename Free function to Cleanup
Eric Leblond [Mon, 10 Sep 2012 07:06:41 +0000 (09:06 +0200)] 
pool: rename Free function to Cleanup

This patch renames Free functions to Cleanup as the free is made
by the pool system.

13 years agodefrag: don't use message for repetitive error 65/head
Eric Leblond [Sun, 9 Sep 2012 20:48:46 +0000 (22:48 +0200)] 
defrag: don't use message for repetitive error

When nothing can be fetch from the pool, this can repeat frequently.
Thus displaying a message in the log will not help. This patch
uses a counter instead of a log message. As this is a sort of memcap
this is conformed to what is done for other issues of the same type.

13 years agoSC_LOG_ERROR is not an error.
Eric Leblond [Fri, 7 Sep 2012 11:54:35 +0000 (13:54 +0200)] 
SC_LOG_ERROR is not an error.

13 years agoFix warning about unused return of SC_ATOMIC func.
Eric Leblond [Fri, 7 Sep 2012 11:53:44 +0000 (13:53 +0200)] 
Fix warning about unused return of SC_ATOMIC func.

13 years agoFix invalid usage of operator.
Eric Leblond [Fri, 7 Sep 2012 11:52:21 +0000 (13:52 +0200)] 
Fix invalid usage of operator.

13 years agofreebsd: fix warning about redeclaration.
Eric Leblond [Fri, 7 Sep 2012 11:31:03 +0000 (13:31 +0200)] 
freebsd: fix warning about redeclaration.

13 years agofreebsd: fix warning
Eric Leblond [Fri, 7 Sep 2012 11:25:35 +0000 (13:25 +0200)] 
freebsd: fix warning

13 years agoipfw: avoid critical error for broadcast
Eric Leblond [Fri, 7 Sep 2012 11:18:35 +0000 (13:18 +0200)] 
ipfw: avoid critical error for broadcast

In some setup, suricata may receive broadcast packets and the call
to sendto may fail if the wrong interface is choosen by kernel.
This patch change the error treatment to avoid to leave when
this problem occurs.

13 years agoipfw: add missing include
Eric Leblond [Fri, 7 Sep 2012 09:20:18 +0000 (11:20 +0200)] 
ipfw: add missing include

13 years agoautotools: fix default path for magic file.
Eric Leblond [Fri, 7 Sep 2012 08:52:37 +0000 (10:52 +0200)] 
autotools: fix default path for magic file.

13 years agofreebsd: fix function usage.
Eric Leblond [Thu, 6 Sep 2012 20:39:02 +0000 (22:39 +0200)] 
freebsd: fix function usage.

The unlock function was not correctly used in error treatment.

13 years agoDo not trim the FCS, pcaps converted to ERF will have have an FCS.
Jason Ish [Fri, 7 Sep 2012 16:22:38 +0000 (10:22 -0600)] 
Do not trim the FCS, pcaps converted to ERF will have have an FCS.

13 years agoaf-packet: fix looping in ring buffer. 64/head
Eric Leblond [Sat, 8 Sep 2012 09:48:59 +0000 (11:48 +0200)] 
af-packet: fix looping in ring buffer.

A crash can occurs in the following conditions:
 * Suricata running in other mode than "workers"
 * Kernel fill in the ring buffer
Under this conditions, it is possible that the capture thread reads
a packet that has not yet released by one of the treatment threads
because there is no modification done on the ring buffer entry when
a packet is read. Doing, this it access to memory which can be
released to the kernel and modified. This results in a kind of memory
corruption.

This bug has only been seen recently and this has to be linked with the
read speed improvement recently made in AF_PACKET support.

The patch fixes the issue by modifying the tp_status bitmask in the
ring buffer. It sets the TP_STATUS_USER_BUSY flag when it is confirmed
that the packet will be treated. And at the start of the read, it exits
from the reading loop (returning to poll) when it reaches a packet with
the flag set. As tp_status is set to 0 during packet release the flag
is destroyed when releasing the packet.

Regarding concurrency, we've got a sequence of modification. The
capture thread read the packet and set the flag, then it passes the
queue and the packet get processed by other threads. The change on
tp_status are thus made at different time.

Regarding the value of the flag, the patch uses the last bit of
tp_status to avoid be impacting by a change in kernel. I will
propose a patch to have TP_STATUS_USER_BUSY included in kernel
as this is a generic issue for multithreading application using
AF_PACKET mechanism.

13 years agoluajit: add http.uri and http.request_line buffers.
Victor Julien [Sat, 8 Sep 2012 09:10:21 +0000 (11:10 +0200)] 
luajit: add http.uri and http.request_line buffers.

13 years agoluajit: fix filtering payload or pkt when not available yet
Victor Julien [Fri, 7 Sep 2012 17:36:18 +0000 (19:36 +0200)] 
luajit: fix filtering payload or pkt when not available yet

13 years agoluajit: force scripts to have 'init' function that returns a table of 'needs' such...
Victor Julien [Fri, 7 Sep 2012 13:04:34 +0000 (15:04 +0200)] 
luajit: force scripts to have 'init' function that returns a table of 'needs' such as packet or payload.

13 years agoUpdate changelog for 1.4beta1 suricata-1.4beta1
Victor Julien [Thu, 6 Sep 2012 13:41:43 +0000 (15:41 +0200)] 
Update changelog for 1.4beta1

13 years agopool: improve error handling 59/head
Eric Leblond [Thu, 6 Sep 2012 11:57:20 +0000 (13:57 +0200)] 
pool: improve error handling

Error handling during Pool creation was not perfect as a PoolBucket
could leak.

13 years agoMake sure defrag pool sizes are not initialized to 0, see #540.
Victor Julien [Thu, 6 Sep 2012 11:48:55 +0000 (13:48 +0200)] 
Make sure defrag pool sizes are not initialized to 0, see #540.

13 years agotls: fix error handling
Eric Leblond [Thu, 6 Sep 2012 10:03:54 +0000 (12:03 +0200)] 
tls: fix error handling

Handling of error case was correct as pointed out by Coverity
717439.

13 years agotls: avoid double close.
Eric Leblond [Thu, 6 Sep 2012 09:44:25 +0000 (11:44 +0200)] 
tls: avoid double close.

This should fix issue 717441 reported by Coverity.

13 years agodefrag: be sure to output NULL tracker
Eric Leblond [Thu, 6 Sep 2012 09:31:42 +0000 (11:31 +0200)] 
defrag: be sure to output NULL tracker

Coverity 720337 pointed out a use after free. We can't be dependent
to HashListTableAdd outputting a NULL tracker.

13 years agoFix coverity warnings 718636 and 718635
Eric Leblond [Thu, 6 Sep 2012 07:59:14 +0000 (09:59 +0200)] 
Fix coverity warnings 718636 and 718635

The result of the swap was not checked.

13 years agodefrag: fix potential use after free.
Eric Leblond [Thu, 6 Sep 2012 07:44:31 +0000 (09:44 +0200)] 
defrag: fix potential use after free.

Coverity pointed out that PoolReturn is almost like free and detected
a use after free when accessing to tracker->af (issue 720339).
This patch fixes this by storing the value in a local variable.

13 years agodefrag: avoid to run cleaning repetitively
Eric Leblond [Thu, 6 Sep 2012 06:41:17 +0000 (08:41 +0200)] 
defrag: avoid to run cleaning repetitively

13 years agoaf-packet: handle possible exit of capture loop.
Eric Leblond [Wed, 5 Sep 2012 13:32:11 +0000 (15:32 +0200)] 
af-packet: handle possible exit of capture loop.

If a capture loop does exit, the thread needs to start without
synchronization with the other threads. This patch fixes this
by resetting the turn count on the peerslist structure and
adding a test on this condition in the wait function.

13 years agoaf-packet: fix kernel offset issue
Eric Leblond [Tue, 4 Sep 2012 22:15:16 +0000 (00:15 +0200)] 
af-packet: fix kernel offset issue

It seems that, in some case, there is a read waiting but the
offset in the ring buffer is not correct and Suricata need to
walk the ring to find the correct place and make the read.

13 years agoaf-packet: fix emergency mode
Eric Leblond [Tue, 4 Sep 2012 16:43:01 +0000 (18:43 +0200)] 
af-packet: fix emergency mode

This patch fixes emergency mode by setting the variable even if we
have a non kernel checksum check. It also does a call to
AFPDUmpCounters() as it seems to improve thing to do it ASAP.

13 years agoaf-packet: implement late open
Eric Leblond [Tue, 4 Sep 2012 10:14:58 +0000 (12:14 +0200)] 
af-packet: implement late open

This patch implements "late open". On high performance system, it
is needed to create the AF_PACKET just before reading to avoid
overflow. Socket creation has to be done with respect to the order
of thread creation to respect affinity settings.
This patch adds a counter to AFPPeer to be ale to synchronize the
initial socket creation.

13 years agoaf-packet: improve logged messages.
Eric Leblond [Tue, 4 Sep 2012 09:20:05 +0000 (11:20 +0200)] 
af-packet: improve logged messages.

13 years agoaf-packet: rework socket transition phase.
Eric Leblond [Mon, 3 Sep 2012 14:43:45 +0000 (16:43 +0200)] 
af-packet: rework socket transition phase.

Suricata was not able to start cleanly in AF_PACKET with default
suricata.yaml file if there was no eth1 on the system. This patch
fixes this issue and rework the socket transition phase to fix
some serious issues (file descriptor leak) found when fixing this
problem.
Every 20 seconds it displays a message to the user to warn him about
the interface not being accessible:
  [ERRCODE: SC_ERR_AFP_CREATE(196)] - Can not open iface 'eth1'

13 years agoaf-packet: ring mode is not optionnal in AFPReadFromRing
Eric Leblond [Mon, 3 Sep 2012 16:38:45 +0000 (18:38 +0200)] 
af-packet: ring mode is not optionnal in AFPReadFromRing

13 years agoFix 'no effect' check in timestamp print logic. Coverity 717437.
Victor Julien [Thu, 6 Sep 2012 08:11:57 +0000 (10:11 +0200)] 
Fix 'no effect' check in timestamp print logic. Coverity 717437.

13 years agoCheck response headers in custom http logging before using them. Coverity 717436.
Victor Julien [Thu, 6 Sep 2012 08:09:14 +0000 (10:09 +0200)] 
Check response headers in custom http logging before using them. Coverity 717436.

13 years agodecode: use pointer inside packet area as param
Eric Leblond [Wed, 5 Sep 2012 12:09:57 +0000 (14:09 +0200)] 
decode: use pointer inside packet area as param

DecodeTeredo, DecodeIPv6InIPv6 and DecodeIPv4inIPv6 were calling
DecodeTunnel with packet being a pseudo packet and data being
data from initial packet:
        DecodeTunnel(tv, dtv, tp, start, blen,
                     pq, IPPROTO_IPV6);
In decoding functions, arithmetic was done on pkt to set some values?
It was resulting in field of packet  pointing outside of the scope of
packet data.
This patch switch to what has been done in DecodeGre(), I mean:
        DecodeTunnel(tv, dtv, tp, GET_PKT_DATA(tp),
                     GET_PKT_LEN(tp), pq, IPPROTO_IP);
Data buffer is then relative to the packet and the arithmetic is
correct.

13 years agoaffinity: drop capability after setting thread prio
Eric Leblond [Wed, 5 Sep 2012 06:56:33 +0000 (08:56 +0200)] 
affinity: drop capability after setting thread prio

Setting thread priority can require privilege if a low nice value
has to be set up.

13 years agoaffinity: add call to setup function in threads
Eric Leblond [Wed, 5 Sep 2012 06:53:41 +0000 (08:53 +0200)] 
affinity: add call to setup function in threads

Threads created through TMThreadSpawn need to call the affinity
function by themselves.

13 years agoaffinity: tag management threads as such
Eric Leblond [Tue, 4 Sep 2012 15:48:14 +0000 (17:48 +0200)] 
affinity: tag management threads as such

The management threads were not tagged for CPU affinity and thus
the setting was not applied.

13 years agoaffinity: add log message
Eric Leblond [Wed, 5 Sep 2012 07:21:28 +0000 (09:21 +0200)] 
affinity: add log message

13 years agoAdd threshold.config example to EXTRA_DIST as well.
Victor Julien [Thu, 6 Sep 2012 05:43:00 +0000 (07:43 +0200)] 
Add threshold.config example to EXTRA_DIST as well.

13 years agoAdd threshold.config file.
Eric Leblond [Wed, 5 Sep 2012 15:08:54 +0000 (17:08 +0200)] 
Add threshold.config file.

This patch adds an example file and modify Makefile to have it
installed by 'make install-conf' command.

13 years agoAdd --enable-luajit option to configure
Victor Julien [Thu, 6 Sep 2012 05:30:31 +0000 (07:30 +0200)] 
Add --enable-luajit option to configure

13 years agoerf: fix logical operator usage.
Eric Leblond [Tue, 4 Sep 2012 11:35:15 +0000 (13:35 +0200)] 
erf: fix logical operator usage.

13 years agoImplement logic of luajit keyword to match on full packet data and/or payload.
Victor Julien [Wed, 5 Sep 2012 15:33:46 +0000 (17:33 +0200)] 
Implement logic of luajit keyword to match on full packet data and/or payload.

13 years agoThread local ctx for detection keywords
Victor Julien [Wed, 5 Sep 2012 11:23:53 +0000 (13:23 +0200)] 
Thread local ctx for detection keywords

Some detection keywords need thread local ctx storage. Example is the
filemagic keyword that has a ctx that is modified with each call. That
is not thread safe. This functionality allows registration of thread
local ctxs so that each detect thread works on it's own copy.

13 years agoluajit: stub detection keyword
Victor Julien [Tue, 4 Sep 2012 16:00:56 +0000 (18:00 +0200)] 
luajit: stub detection keyword

13 years agoluajit: tell build sys about it
Victor Julien [Tue, 4 Sep 2012 15:34:17 +0000 (17:34 +0200)] 
luajit: tell build sys about it