]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
12 years agosuricata: list cuda cards in separate function
Eric Leblond [Tue, 9 Apr 2013 09:34:12 +0000 (11:34 +0200)] 
suricata: list cuda cards in separate function

12 years agosuricata: separate keyword and app layer listing code
Eric Leblond [Tue, 9 Apr 2013 09:05:39 +0000 (11:05 +0200)] 
suricata: separate keyword and app layer listing code

The list-keyword and app-layer listing code was spread over all the
init code. This patch introduces a separate file to store non standard
running mode like these ones.

12 years agorunmodes: fix comment
Eric Leblond [Mon, 8 Apr 2013 10:00:32 +0000 (12:00 +0200)] 
runmodes: fix comment

12 years agoStorage: rename Init to Alloc to reflect actual functioning. Comment updates.
Victor Julien [Mon, 22 Jul 2013 15:33:19 +0000 (17:33 +0200)] 
Storage: rename Init to Alloc to reflect actual functioning. Comment updates.

12 years agoStorage API: add safety check for cases when there is no storage used.
Victor Julien [Tue, 9 Apr 2013 09:11:35 +0000 (11:11 +0200)] 
Storage API: add safety check for cases when there is no storage used.

12 years agoengine-tag: rename var and add sanity check
Eric Leblond [Wed, 20 Mar 2013 13:47:17 +0000 (14:47 +0100)] 
engine-tag: rename var and add sanity check

12 years agoflow tag: conversion to flow storage API
Eric Leblond [Wed, 20 Mar 2013 10:28:58 +0000 (11:28 +0100)] 
flow tag: conversion to flow storage API

This patch is updating the flow tag system to use the flow
storage API. The tag_list member of Flow structure is suppressed
and its cleaning operation are suppressed too as this is handled
transparently by the flow storage API.

12 years agoAdd per-flow generic storage
Eric Leblond [Fri, 15 Mar 2013 14:25:46 +0000 (15:25 +0100)] 
Add per-flow generic storage

This patch adds a per-flow storage that can be created via the functions
available in flow-storage.c.

12 years agoHost: use global free storage function
Eric Leblond [Mon, 18 Mar 2013 10:05:52 +0000 (11:05 +0100)] 
Host: use global free storage function

This patch is here to avoid that all modules using a local storage
have to update host code to add their free function. It modifies
previous behavior by calling HostFreeStorage in any case.

12 years agoUse Host Storage API for per host thresholding
Victor Julien [Thu, 14 Mar 2013 16:08:14 +0000 (17:08 +0100)] 
Use Host Storage API for per host thresholding

12 years agoInit storage api at start up
Victor Julien [Thu, 14 Mar 2013 16:06:09 +0000 (17:06 +0100)] 
Init storage api at start up

12 years agoStorage API: add registration check closed test in debug mode.
Victor Julien [Thu, 14 Mar 2013 10:59:38 +0000 (11:59 +0100)] 
Storage API: add registration check closed test in debug mode.

12 years agoMove Host Tag storage to Host Storage API.
Victor Julien [Wed, 13 Mar 2013 22:38:39 +0000 (23:38 +0100)] 
Move Host Tag storage to Host Storage API.

12 years agoAdd Host specific wrapper to StorageRegister()
Victor Julien [Fri, 1 Mar 2013 13:46:47 +0000 (14:46 +0100)] 
Add Host specific wrapper to StorageRegister()

12 years agostorage: allow preallocated storage
Victor Julien [Fri, 25 Jan 2013 13:28:41 +0000 (14:28 +0100)] 
storage: allow preallocated storage

12 years agohost: use storage api
Victor Julien [Tue, 22 Jan 2013 17:01:58 +0000 (18:01 +0100)] 
host: use storage api

12 years agoInitial storage api work
Victor Julien [Fri, 18 Jan 2013 14:50:25 +0000 (15:50 +0100)] 
Initial storage api work

12 years agoMisc fixes after make check feedback
Victor Julien [Sun, 28 Jul 2013 10:59:52 +0000 (12:59 +0200)] 
Misc fixes after make check feedback

12 years agoAdd TILE-Gx mPIPE packet processing support. 465/head
Ken Steele [Fri, 26 Jul 2013 17:22:19 +0000 (13:22 -0400)] 
Add TILE-Gx mPIPE packet processing support.

The TILE-Gx processor includes a packet processing engine, called
mPIPE, that can deliver packets directly into user space memory. It
handles buffer allocation and load balancing (either static 5-tuple
hashing, or dynamic flow affinity hashing are used here). The new
packet source code is in source-mpipe.c and source-mpipe.h

A new Tile runmode is added that configures the Suricata pipelines in
worker mode, where each thread does the entire packet processing
pipeline.  It scales across all the Gx chips sizes of 9, 16, 36 or 72
cores. The new runmode is in runmode-tile.c and runmode-tile.h

The configure script detects the TILE-Gx architecture and defines
HAVE_MPIPE, which is then used to conditionally enable the code to
support mPIPE packet processing. Suricata runs on TILE-Gx even without
mPIPE support enabled.

The Suricata Packet structures are allocated by the mPIPE hardware by
allocating the Suricata Packet structure immediatley before the mPIPE
packet buffer and then pushing the mPIPE packet buffer pointer onto
the mPIPE buffer stack.  This way, mPIPE writes the packet data into
the buffer, returns the mPIPE packet buffer pointer, which is then
converted into a Suricata Packet pointer for processing inside
Suricata. When the Packet is freed, the buffer is returned to mPIPE's
buffer stack, by setting ReleasePacket to an mPIPE release specific
function.

The code checks for the largest Huge page available in Linux when
Suricata is started. TILE-Gx supports Huge pages sizes of 16MB, 64MB,
256MB, 1GB and 4GB. Suricata then divides one of those page into
packet buffers for mPIPE.

The code is not yet optimized for high performance. Performance
improvements will follow shortly.

The code was originally written by Tom Decanio and then further
modified by Tilera.

This code has been tested with Tilera's Multicore Developement
Environment (MDE) version 4.1.5. The TILEncore-Gx36 (PCIe card) and
TILEmpower-Gx (1U Rack mount).

12 years agoipv6: fix parsing of malformed ext hdr. Bug #908.
Victor Julien [Fri, 26 Jul 2013 10:04:14 +0000 (12:04 +0200)] 
ipv6: fix parsing of malformed ext hdr. Bug #908.

12 years agoicmpv6: fix icmp_id and icmp_seq keywords
Victor Julien [Fri, 26 Jul 2013 07:31:06 +0000 (09:31 +0200)] 
icmpv6: fix icmp_id and icmp_seq keywords

Bug #907

12 years agoFix compiler warning due to missing include
Victor Julien [Wed, 24 Jul 2013 10:35:38 +0000 (12:35 +0200)] 
Fix compiler warning due to missing include

decode.c: In function 'DecodeThreadVarsAlloc':
decode.c:437: error: implicit declaration of function 'ConfGetBool'

12 years agovlan: add rule for new 'too many layers' event 460/head
Victor Julien [Wed, 24 Jul 2013 09:54:08 +0000 (11:54 +0200)] 
vlan: add rule for new 'too many layers' event

12 years agoAdd yaml option to disable vlan ids hashing
Victor Julien [Tue, 23 Jul 2013 11:23:08 +0000 (13:23 +0200)] 
Add yaml option to disable vlan ids hashing

In some cases using the vlan id(s) in flow hashing is problematic. Cases
of broken routers have been reported. So this option allows for disabling
the use of vlan id(s) while calculating the flow hash, and in the future
other hashes.

Vlan tracking for flow is enabled by default.

12 years agoflow: take vlan_id's into account in the flow hash
Victor Julien [Thu, 11 Oct 2012 18:35:17 +0000 (20:35 +0200)] 
flow: take vlan_id's into account in the flow hash

In VLAN we can have 2 layers of encapsulation. In this patch both
layers are used in the flow hash to distinguish between encapsulated
traffic.

12 years agoRemove obsolete code: flow alert sid storage
Victor Julien [Sat, 20 Jul 2013 10:24:17 +0000 (12:24 +0200)] 
Remove obsolete code: flow alert sid storage

12 years agoAdd --unittests-coverage option to list how many code modules have tests
Victor Julien [Sat, 20 Jul 2013 10:05:14 +0000 (12:05 +0200)] 
Add --unittests-coverage option to list how many code modules have tests

12 years agoRename GetIfaceMaxPayloadSize to GetIfaceMaxPacketSize to reflect the actual function.
Victor Julien [Thu, 25 Apr 2013 16:37:33 +0000 (18:37 +0200)] 
Rename GetIfaceMaxPayloadSize to GetIfaceMaxPacketSize to reflect the actual function.

12 years agoPcap: fix snaplen autodetection, GetIfaceMTU doesn't include link layer length
Victor Julien [Thu, 25 Apr 2013 16:34:42 +0000 (18:34 +0200)] 
Pcap: fix snaplen autodetection, GetIfaceMTU doesn't include link layer length

12 years agoFix typo in configure.ac echo message
Ken Steele [Fri, 19 Jul 2013 17:04:58 +0000 (13:04 -0400)] 
Fix typo in configure.ac echo message

12 years agofix bug where we were not printing http hostname(printing <unknown> 452/head
Anoop Saldanha [Fri, 19 Jul 2013 16:29:53 +0000 (21:59 +0530)] 
fix bug where we were not printing http hostname(printing <unknown>
previously) in httplog, filestore meta and file log.

12 years agoNFQ: fix packets not getting freed
Victor Julien [Fri, 19 Jul 2013 13:27:41 +0000 (15:27 +0200)] 
NFQ: fix packets not getting freed

12 years agofix for #882.
Anoop Saldanha [Thu, 18 Jul 2013 09:05:54 +0000 (14:35 +0530)] 
fix for #882.

Refactor the code that initializes the cuda mpm environment.

12 years agoNFQ: adapt to ReleasePacket API
Victor Julien [Fri, 19 Jul 2013 10:33:34 +0000 (12:33 +0200)] 
NFQ: adapt to ReleasePacket API

12 years agoReplace ReleaseData function on Packet Structure with ReleasePacket.
Ken Steele [Wed, 10 Jul 2013 20:47:52 +0000 (16:47 -0400)] 
Replace ReleaseData function on Packet Structure with ReleasePacket.

This commit allows handling Packets allocated by different methods.
The ReleaseData function pointer in the Packet structure is replaced
with ReleasePacket function pointer, which is then always called to
release the memory associated with a Packet.

Currently, the only usage of ReleaseData is in AF Packet. Previously
ReleaseData was only called when it was not NULL. To implement the
same functionality as before in AF Packet, a new function is defined
in AF Packet to first call the AFP specific ReleaseData function and
then releases the Packet structure.

Three new general functions are defined for releasing packets in the
default case:
    1) PacketFree() - To release a packet alloced with SCMalloc()
    2) PacketPoolReturnPacket() - For packets allocated from the Packet Pool.
                                  Calls RECYCLE_PACKET(p)
    3) PacketFreeOrRelease() - Calls PacketFree() or PacketPoolReturnPacket()
                                 based on the PKT_ALLOC flag.

Having these functions removes the need to check the PKT_ALLOC flag
when releasing a packet in most cases, since the ReleasePacket
function encodes how the Packet was allocated. The PKT_ALLOC flag is
still set and is needed when AF Packet releases a packet, since it
replaces the ReleasePacket function pointer with its own function and
then calls PacketFreeOfRelease(), which uses the PKT_ALLOC flag.

12 years agoUpdate changelog for 2.0beta1 suricata-2.0beta1
Victor Julien [Thu, 18 Jul 2013 13:30:25 +0000 (15:30 +0200)] 
Update changelog for 2.0beta1

12 years agofix for #875.
Anoop Saldanha [Wed, 17 Jul 2013 18:54:29 +0000 (00:24 +0530)] 
fix for #875.

Update configure.ac to check for either 0.5.5 and 0.5.x version of libhtp.

12 years agoCode to enable cuda support for pfring live mode. 450/head
Anoop Saldanha [Thu, 18 Jul 2013 10:21:50 +0000 (15:51 +0530)] 
Code to enable cuda support for pfring live mode.

12 years agoDNS: break out of DNSResponseGetNameByOffset if we're in there too long. Can happen...
Victor Julien [Thu, 18 Jul 2013 07:54:09 +0000 (09:54 +0200)] 
DNS: break out of DNSResponseGetNameByOffset if we're in there too long. Can happen on bad data.

12 years agoStream: don't inject stream end pseudo pkt on FinWait2 state. Bug #883.
Victor Julien [Thu, 18 Jul 2013 06:02:08 +0000 (08:02 +0200)] 
Stream: don't inject stream end pseudo pkt on FinWait2 state. Bug #883.

12 years agoDNS: convert info logs to debugs
Victor Julien [Thu, 18 Jul 2013 05:10:07 +0000 (07:10 +0200)] 
DNS: convert info logs to debugs

12 years agoFix ac-bs and ac-gfbs mpm-algo settings leading to fatal error if CUDA is enabled...
Victor Julien [Thu, 18 Jul 2013 05:01:56 +0000 (07:01 +0200)] 
Fix ac-bs and ac-gfbs mpm-algo settings leading to fatal error if CUDA is enabled. Workaround for #882.

12 years agoconfigure: add iconv.h check to configure if bundled libhtp is used
Victor Julien [Wed, 17 Jul 2013 17:10:32 +0000 (19:10 +0200)] 
configure: add iconv.h check to configure if bundled libhtp is used

12 years agoFix autogen on older systems
Victor Julien [Wed, 17 Jul 2013 15:58:25 +0000 (17:58 +0200)] 
Fix autogen on older systems

12 years agoautotools: workaround on partial cleaning 446/head
Eric Leblond [Wed, 17 Jul 2013 14:37:28 +0000 (16:37 +0200)] 
autotools: workaround on partial cleaning

12 years agoconfigure: minor cleaning
Eric Leblond [Wed, 17 Jul 2013 14:18:21 +0000 (16:18 +0200)] 
configure: minor cleaning

12 years agounix socket: fix typo in error message
Eric Leblond [Mon, 13 May 2013 08:39:59 +0000 (10:39 +0200)] 
unix socket: fix typo in error message

12 years agoautotools: AM_INIT_AUTOMAKE with args is deprecated
Eric Leblond [Thu, 20 Jun 2013 13:21:36 +0000 (15:21 +0200)] 
autotools: AM_INIT_AUTOMAKE with args is deprecated

12 years agoautotool: INCLUDES usage is deprecated
Eric Leblond [Thu, 20 Jun 2013 13:22:13 +0000 (15:22 +0200)] 
autotool: INCLUDES usage is deprecated

12 years agoFix compilation warning
Eric Leblond [Thu, 4 Jul 2013 08:11:47 +0000 (10:11 +0200)] 
Fix compilation warning

A goto could lead to the use de_ctx without declaring it.

12 years agoAdd file needed for some autotools version.
Eric Leblond [Tue, 16 Jul 2013 14:47:27 +0000 (16:47 +0200)] 
Add file needed for some autotools version.

It seems config.rpath is a file needed in some cases. If the
file is not present libhtp autogen.sh is failling.

12 years agoconfigure: check for iconv in htp embedded mode 445/head
Eric Leblond [Wed, 17 Jul 2013 11:28:09 +0000 (13:28 +0200)] 
configure: check for iconv in htp embedded mode

At least on freebsd, suricata fails to build in htp embedded mode
due to iconv linking issue.

12 years agoCheck for local include first.
Eric Leblond [Mon, 15 Jul 2013 16:18:56 +0000 (18:18 +0200)] 
Check for local include first.

12 years agoIn case of fragments, don't consider ports. Bug #847.
Victor Julien [Tue, 16 Jul 2013 13:03:07 +0000 (15:03 +0200)] 
In case of fragments, don't consider ports. Bug #847.

12 years agoCode to enable cuda support for live mode pcap and af-packet. Keep an eye
Anoop Saldanha [Mon, 15 Jul 2013 13:48:49 +0000 (19:18 +0530)] 
Code to enable cuda support for live mode pcap and af-packet.  Keep an eye
out on the mailing list and http://planet.suricata-ids.org for performance
and other profiling data.

12 years agoLuajit: fix compilation and tests after libhtp upgrade
Victor Julien [Mon, 15 Jul 2013 13:38:13 +0000 (15:38 +0200)] 
Luajit: fix compilation and tests after libhtp upgrade

12 years agoFix CLS configure check
Victor Julien [Mon, 15 Jul 2013 12:06:42 +0000 (14:06 +0200)] 
Fix CLS configure check

12 years agolibhtp: remove libhtp from repo
Victor Julien [Mon, 15 Jul 2013 10:20:46 +0000 (12:20 +0200)] 
libhtp: remove libhtp from repo

12 years agoSuricata upgrade to libhtp 0.5.x. 432/head
Anoop Saldanha [Tue, 2 Apr 2013 15:28:01 +0000 (20:58 +0530)] 
Suricata upgrade to libhtp 0.5.x.

Remove the support for now unsupported personalities from libhtp -
TOMCAT_6_0, APACHE and APACHE_2_2.  We instead use the APACHE_2
personality.

12 years agoEnable libhtp 0.3.0 compilation and crash free UT run. Still see 5 failed tests.
Victor Julien [Fri, 5 Oct 2012 09:46:05 +0000 (11:46 +0200)] 
Enable libhtp 0.3.0 compilation and crash free UT run. Still see 5 failed tests.

12 years agoFix sgh mpm flags assignment
Victor Julien [Sat, 13 Jul 2013 18:26:10 +0000 (20:26 +0200)] 
Fix sgh mpm flags assignment

12 years agodetect-engine: do a direct update of flag
Eric Leblond [Fri, 5 Jul 2013 16:06:40 +0000 (18:06 +0200)] 
detect-engine: do a direct update of flag

There is no reason not to update the flag directly. So do it
to avoid to crash the test.

12 years agococcinelle: dynamic testing through make check
Eric Leblond [Fri, 5 Jul 2013 10:33:17 +0000 (12:33 +0200)] 
coccinelle: dynamic testing through make check

This patch modify build system to have make to create the
struct-flags.cocci file by running struct-flags.py.

This way 'make check' is running the test defined from source
code.

12 years agococcinelle: add script to generate flags test
Eric Leblond [Fri, 5 Jul 2013 10:28:30 +0000 (12:28 +0200)] 
coccinelle: add script to generate flags test

This patch adds a script which can be used to generate a test
on coherence of flag usage.

By adding comment in the code, it is possible to declare that we
link a flag in a structure to a specific family of constant:

For example:
/* coccinelle: Packet:flowflags:FLOW_PKT_ */
will trigger the generation on a test which verifies that the
flowflags field in Packet structure is only used with constant
starting by FLOW_PKT_.

12 years agoccccinelle: add formatted comment for flag test
Eric Leblond [Fri, 5 Jul 2013 09:16:26 +0000 (11:16 +0200)] 
ccccinelle: add formatted comment for flag test

12 years agoUse relative dir instead of ac_builddir
Victor Julien [Thu, 11 Jul 2013 08:36:22 +0000 (10:36 +0200)] 
Use relative dir instead of ac_builddir

When generating src/build-info.h the use of ac_builddir was problematic.
There were several cases where it was undefined leading to the absolute
path /src/build-info.h. ./configure should be called from the parent dir
to the actual src dir, so this should work. Make distcheck and normal builds
complete fine.

12 years agoAutotools: move libhtp conditionals to configure
Victor Julien [Wed, 10 Jul 2013 13:10:32 +0000 (15:10 +0200)] 
Autotools: move libhtp conditionals to configure

In preparation of the libhtp upgrade, move all libhtp related conditionals
to configure. This allows for one set of build scripts that works regardless
of the presence of a local libhtp dir.

12 years agoGenerate proper errors if sid,gid,rev values are out of range. Bug #779.
Victor Julien [Tue, 9 Jul 2013 16:36:54 +0000 (18:36 +0200)] 
Generate proper errors if sid,gid,rev values are out of range. Bug #779.

12 years agoYaml: give a more detailed error if the user supplies a directory instead of a yaml...
Victor Julien [Tue, 9 Jul 2013 15:47:58 +0000 (17:47 +0200)] 
Yaml: give a more detailed error if the user supplies a directory instead of a yaml file. Bug #803.

12 years agoTLS: create certs dir on 'make install-full'. Bug #711.
Victor Julien [Tue, 9 Jul 2013 14:35:50 +0000 (16:35 +0200)] 
TLS: create certs dir on 'make install-full'. Bug #711.

12 years agoTLS: create certs directory during startup if it doesn't exist yet. Bug #710.
Victor Julien [Tue, 9 Jul 2013 14:21:36 +0000 (16:21 +0200)] 
TLS: create certs directory during startup if it doesn't exist yet. Bug #710.

12 years agoTLS: add missing options to shipped yaml. Bug #709.
Victor Julien [Tue, 9 Jul 2013 12:53:48 +0000 (14:53 +0200)] 
TLS: add missing options to shipped yaml. Bug #709.

12 years agoDNS: rename dns.rules to dns-events.rules, include it in yaml
Victor Julien [Fri, 5 Jul 2013 09:26:06 +0000 (11:26 +0200)] 
DNS: rename dns.rules to dns-events.rules, include it in yaml

12 years agonfq: be sure to always verdict packets
Eric Leblond [Wed, 19 Jun 2013 09:14:22 +0000 (11:14 +0200)] 
nfq: be sure to always verdict packets

To be sure to always verdict packets (bug #769), this patch adds
a ReleaseData function to NFQ packets. The release function simply
drop the packet if it has not been verdicted before.

12 years agoPrint pkt src to alert-debug log
Victor Julien [Thu, 4 Jul 2013 15:59:16 +0000 (17:59 +0200)] 
Print pkt src to alert-debug log

12 years agoDNS: better handle TX' with lost replies
Victor Julien [Tue, 2 Jul 2013 12:44:41 +0000 (14:44 +0200)] 
DNS: better handle TX' with lost replies

12 years agoHTP: free TX from transaction free API call
Victor Julien [Tue, 2 Jul 2013 10:51:42 +0000 (12:51 +0200)] 
HTP: free TX from transaction free API call

12 years agoApp layer: clean up TX before lowest active one
Victor Julien [Tue, 2 Jul 2013 10:33:11 +0000 (12:33 +0200)] 
App layer: clean up TX before lowest active one

Update DNS to handle cleaning up this way.

12 years agoDNS: suppress log-dns registration message
Victor Julien [Tue, 2 Jul 2013 08:21:04 +0000 (10:21 +0200)] 
DNS: suppress log-dns registration message

12 years agoApplayer: remove obsolete StateUpdateTransactionId
Victor Julien [Tue, 2 Jul 2013 08:14:59 +0000 (10:14 +0200)] 
Applayer: remove obsolete StateUpdateTransactionId

Also, update StateTransactionFree to take an u64 tx id, so it's
consistant with the rest of the engine.

To reflect these changes, AppLayerRegisterTransactionIdFuncs has
been renamed to AppLayerRegisterTxFreeFunc.

HTP, DNS, SMB, DCERPC parsers updated.

12 years agoDNS: move internal tx id tracking to u64
Victor Julien [Tue, 2 Jul 2013 07:49:02 +0000 (09:49 +0200)] 
DNS: move internal tx id tracking to u64

12 years agoApp layer: add 'StateHasEvents' API call
Victor Julien [Mon, 1 Jul 2013 13:24:50 +0000 (15:24 +0200)] 
App layer: add 'StateHasEvents' API call

Per TX decoder events resulted in significant overhead to the
detection engine, as it walked all TX' all the time to check
if decoder events were available.

This commit introduces a new API call StateHasEvents, which speeds
up this process, at the expense of keeping a counter in the state.

Implement this for DNS as well.

12 years agoremove unused pattern id assignment functions. Goodbye
Anoop Saldanha [Tue, 2 Jul 2013 14:58:25 +0000 (20:28 +0530)] 
remove unused pattern id assignment functions.  Goodbye

12 years agoUpdate configure.ac to use the default value of 64 for the cache line size
Anoop Saldanha [Tue, 2 Jul 2013 12:29:17 +0000 (17:59 +0530)] 
Update configure.ac to use the default value of 64 for the cache line size
for systems which return a value of 0.

12 years agoDNS: convert dns_query to sticky buffer
Victor Julien [Fri, 28 Jun 2013 14:49:56 +0000 (16:49 +0200)] 
DNS: convert dns_query to sticky buffer

12 years agoContent: set up sticky buffers like file_data and dce_stub_data w/o flags, but with...
Victor Julien [Fri, 28 Jun 2013 14:24:10 +0000 (16:24 +0200)] 
Content: set up sticky buffers like file_data and dce_stub_data w/o flags, but with a list variable

12 years agoCoverity 1040312, 1040313, 1040314 1040315: improve pool thread error handling.
Victor Julien [Mon, 1 Jul 2013 11:39:52 +0000 (13:39 +0200)] 
Coverity 104031210403131040314 1040315: improve pool thread error handling.

12 years agoThread: remove thread id
Victor Julien [Mon, 1 Jul 2013 10:03:09 +0000 (12:03 +0200)] 
Thread: remove thread id

12 years agoStream: use per thread ssn_pool_id instead of thread id.
Victor Julien [Mon, 1 Jul 2013 11:32:02 +0000 (13:32 +0200)] 
Stream: use per thread ssn_pool_id instead of thread id.

12 years agoImprove memory cleanup in some unittests
Victor Julien [Fri, 28 Jun 2013 10:28:51 +0000 (12:28 +0200)] 
Improve memory cleanup in some unittests

12 years agoStream: fix unittests after ssn pool changes.
Victor Julien [Mon, 27 May 2013 08:24:31 +0000 (10:24 +0200)] 
Stream: fix unittests after ssn pool changes.

12 years agoStream: use per thread ssn pool
Victor Julien [Wed, 15 May 2013 09:13:36 +0000 (11:13 +0200)] 
Stream: use per thread ssn pool

Use per thread pools to store and retrieve SSN's from. Uses PoolThread
API.

Remove max-sessions setting. Pools are set to unlimited, but TCP memcap
limits the amount of sessions.

The prealloc_session settings now applies to each thread, so lowered the
default from 32k to 2k.

12 years agopool: add error msgs and improve memory layout
Victor Julien [Tue, 14 May 2013 11:14:37 +0000 (13:14 +0200)] 
pool: add error msgs and improve memory layout

12 years agopool: add api for per thread pools
Victor Julien [Tue, 14 May 2013 11:17:32 +0000 (13:17 +0200)] 
pool: add api for per thread pools

This API is a wrapper around the regular pools where the thread pools
are arrays of locks+pools.

12 years agopool: add error msgs and improve memory layout
Victor Julien [Tue, 14 May 2013 11:14:37 +0000 (13:14 +0200)] 
pool: add error msgs and improve memory layout

12 years agoAdd a per threadvars thread local thread id, that starts at 0 and increments for...
Victor Julien [Wed, 8 May 2013 11:26:49 +0000 (13:26 +0200)] 
Add a per threadvars thread local thread id, that starts at 0 and increments for each thread.

12 years agoCoverity 1038959: DNS mpm might use initialized variable
Victor Julien [Fri, 28 Jun 2013 08:06:27 +0000 (10:06 +0200)] 
Coverity 1038959: DNS mpm might use initialized variable

12 years agoRemove mpm ctxs in the wrong direction. 412/head
Anoop Saldanha [Fri, 28 Jun 2013 06:14:33 +0000 (11:44 +0530)] 
Remove mpm ctxs in the wrong direction.

A lot of http mpm ctxs have now been removed as a result of this.

12 years agoUpdate mpm init ctx to not accept the final cuda_rc_module argument.
Anoop Saldanha [Thu, 27 Jun 2013 19:47:28 +0000 (01:17 +0530)] 
Update mpm init ctx to not accept the final cuda_rc_module argument.

It was a part of our older architecture and is no longer used.

12 years agoDNS: fix CUDA build
Victor Julien [Thu, 27 Jun 2013 16:43:37 +0000 (18:43 +0200)] 
DNS: fix CUDA build