]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
12 years agoUpdate changelog for 1.4.6 suricata-1.4.6
Victor Julien [Tue, 24 Sep 2013 10:27:56 +0000 (12:27 +0200)] 
Update changelog for 1.4.6

12 years agoAdd decoder event rule for tls event "invalid_ssl_record", which will now be availabl...
Anoop Saldanha [Tue, 24 Sep 2013 06:01:37 +0000 (11:31 +0530)] 
Add decoder event rule for tls event "invalid_ssl_record", which will now be available "app-layer-event:tls.invalid_ssl_record".

12 years agobug #955 - Fix SSL parsing issue.
Anoop Saldanha [Fri, 13 Sep 2013 14:27:29 +0000 (19:57 +0530)] 
bug #955 - Fix SSL parsing issue.

The parser wasn't carrying out a bounds check on record length while
in the middle of parsing a handshake.  As a result we would step onto the
next record header and consider it a part of the current handshake.

- Contains an unittest to test the issue.
- Disable the duplicate parser unittest registration.

The issue came to light through an irregular ssl record, which was
reported by Sebastian Roschke, via CVE-2013-5919.

Thanks to Sebastian Roschke for reporting this issue.

12 years agofix for bug #970(ac-gfbs).
Anoop Saldanha [Tue, 24 Sep 2013 07:59:20 +0000 (13:29 +0530)] 
fix for bug #970(ac-gfbs).

Content strings that are a duplicate of a pattern from another sig, but
have a fast_pattern chop being applied, would end up being assigned the
same pattern id as the duplicate string.  But the string supplied to the
mpm would be the chopped string, which might result in the state_table
output_state content entry being over-riden by the the fuller string at
the final state of the smaller content length, because of which during a
match we might end up inspecting the search buffer against the fuller
content pattern, instead of the chopped pattern, which would end up being
an inspection beyond the buffer bounds.

12 years agoUnittest to display bug #970(ac-gfbs).
Anoop Saldanha [Tue, 24 Sep 2013 07:53:36 +0000 (13:23 +0530)] 
Unittest to display bug #970(ac-gfbs).

12 years agofix for bug #970(ac-bs).
Anoop Saldanha [Tue, 24 Sep 2013 07:56:45 +0000 (13:26 +0530)] 
fix for bug #970(ac-bs).

Content strings that are a duplicate of a pattern from another sig, but
have a fast_pattern chop being applied, would end up being assigned the
same pattern id as the duplicate string.  But the string supplied to the
mpm would be the chopped string, which might result in the state_table
output_state content entry being over-riden by the the fuller string at
the final state of the smaller content length, because of which during a
match we might end up inspecting the search buffer against the fuller
content pattern, instead of the chopped pattern, which would end up being
an inspection beyond the buffer bounds.

12 years agoUnittest to display bug #970(ac-bs).
Anoop Saldanha [Tue, 24 Sep 2013 07:43:11 +0000 (13:13 +0530)] 
Unittest to display bug #970(ac-bs).

12 years agofix for bug #971.
Anoop Saldanha [Mon, 23 Sep 2013 09:53:12 +0000 (15:23 +0530)] 
fix for bug #971.

Content strings that are a duplicate of a pattern from another sig, but
have a fast_pattern chop being applied, would end up being assigned the
same pattern id as the duplicate string.  But the string supplied to the
mpm would be the chopped string, which might result in the state_table
output_state content entry being over-riden by the the fuller string at
the final state of the smaller content length, because of which during a
match we might end up inspecting the search buffer against the fuller
content pattern, instead of the chopped pattern, which would end up being
an inspection beyond the buffer bounds.

12 years agoUnittest to display bug #971.
Anoop Saldanha [Mon, 23 Sep 2013 14:24:24 +0000 (19:54 +0530)] 
Unittest to display bug #971.

12 years agoFix several compile and runtime warnings found by clang 3.2 with the -fsanitize=addre...
Victor Julien [Fri, 20 Sep 2013 11:06:55 +0000 (13:06 +0200)] 
Fix several compile and runtime warnings found by clang 3.2 with the -fsanitize=address option.

12 years agoDon't set tag on pseudo packets
Victor Julien [Thu, 19 Sep 2013 08:59:52 +0000 (10:59 +0200)] 
Don't set tag on pseudo packets

12 years agounified2: fix tags not being logged. Bug #969
Victor Julien [Thu, 19 Sep 2013 08:57:46 +0000 (10:57 +0200)] 
unified2: fix tags not being logged. Bug #969

12 years agoModify handling of negated content. 554/head
Anoop Saldanha [Thu, 29 Aug 2013 17:28:04 +0000 (22:58 +0530)] 
Modify handling of negated content.

The old behaviour of returning a failure if we found a pattern while
matching on negated content is now changed to continuing searching
for other combinations where we don't find the pattern for the
negated content.

Thanks to Will Metcalf for reporting this.

12 years agoCoverity 1038102: remove dead code from host hash
Victor Julien [Mon, 16 Sep 2013 17:26:50 +0000 (19:26 +0200)] 
Coverity 1038102: remove dead code from host hash

12 years agoCoverity 1038101: remove dead code from host hash timeout code
Victor Julien [Mon, 16 Sep 2013 17:26:13 +0000 (19:26 +0200)] 
Coverity 1038101: remove dead code from host hash timeout code

12 years agoCoverity 1038100: remove dead code from flow hash timeout code(2)
Victor Julien [Mon, 16 Sep 2013 17:25:35 +0000 (19:25 +0200)] 
Coverity 1038100: remove dead code from flow hash timeout code(2)

12 years agoCoverity 1038099: remove dead code from flow hash timeout code
Victor Julien [Mon, 16 Sep 2013 17:23:33 +0000 (19:23 +0200)] 
Coverity 1038099: remove dead code from flow hash timeout code

12 years agoCoverity 1038098: remove dead code from flow hash
Victor Julien [Mon, 16 Sep 2013 16:31:05 +0000 (18:31 +0200)] 
Coverity 1038098: remove dead code from flow hash

12 years agoCoverity 1038095: remove dead code from defrag hash timeout code
Victor Julien [Mon, 16 Sep 2013 16:29:53 +0000 (18:29 +0200)] 
Coverity 1038095: remove dead code from defrag hash timeout code

12 years agoCoverity 1038094: remove dead code from defrag hash
Victor Julien [Mon, 16 Sep 2013 16:28:45 +0000 (18:28 +0200)] 
Coverity 1038094: remove dead code from defrag hash

12 years agoCoverity 1038089: error check fseek call
Victor Julien [Mon, 16 Sep 2013 18:03:46 +0000 (20:03 +0200)] 
Coverity 1038089: error check fseek call

12 years agoCoverity 400477: pcre_get_substring retval
Victor Julien [Mon, 16 Sep 2013 16:15:49 +0000 (18:15 +0200)] 
Coverity 400477: pcre_get_substring retval

Add missing return code check to pcre_get_substring call.

12 years agoCoverity 1038129 fix
Victor Julien [Mon, 16 Sep 2013 15:13:02 +0000 (17:13 +0200)] 
Coverity 1038129 fix

Don't leak memory on malloc error in b2gm mpm implementation.

12 years agoFix memory leak on invalid luajit signature. Coverity 1038520.
Victor Julien [Mon, 16 Sep 2013 14:38:56 +0000 (16:38 +0200)] 
Fix memory leak on invalid luajit signature. Coverity 1038520.

12 years agogeoip: never try to store more locations than possible (Coverity 1038517)
Victor Julien [Mon, 16 Sep 2013 14:34:59 +0000 (16:34 +0200)] 
geoip: never try to store more locations than possible (Coverity 1038517)

12 years agoCoverity 1038138 fix
Victor Julien [Mon, 16 Sep 2013 14:26:11 +0000 (16:26 +0200)] 
Coverity 1038138 fix

Clean up parsing code to suppress Coverity:
Dereference before null check (REVERSE_INULL)

Proper checking was already done.

12 years agoCoverity 1038134 fix
Victor Julien [Mon, 16 Sep 2013 14:24:15 +0000 (16:24 +0200)] 
Coverity 1038134 fix

Cleaned up error check. "ipdup" can only be non-NULL there, so remove check
that confused coverity.

12 years agoCoverity 1038135 fix
Victor Julien [Mon, 16 Sep 2013 14:22:24 +0000 (16:22 +0200)] 
Coverity 1038135 fix

Small cleanup in the error handling. The extra null check confused
Coverity.

12 years agoCoverity 1038133 fix
Victor Julien [Mon, 16 Sep 2013 14:18:52 +0000 (16:18 +0200)] 
Coverity 1038133 fix

Clean up parsing code to suppress Coverity:
Dereference before null check (REVERSE_INULL)

Proper checking was already done.

12 years agoCoverity 1038111: fix local overrun of a string in app layer proto detect setup code.
Victor Julien [Mon, 16 Sep 2013 13:26:49 +0000 (15:26 +0200)] 
Coverity 1038111: fix local overrun of a string in app layer proto detect setup code.

12 years agoCoverity 1038518: fix wrong error check
Victor Julien [Tue, 25 Jun 2013 15:00:45 +0000 (17:00 +0200)] 
Coverity 1038518: fix wrong error check

12 years agoCoverity 1038113: possibly out of bounds read
Victor Julien [Tue, 25 Jun 2013 12:03:38 +0000 (14:03 +0200)] 
Coverity 1038113: possibly out of bounds read

12 years agosolaris: fix compilation failure
Eric Leblond [Fri, 2 Aug 2013 11:12:37 +0000 (13:12 +0200)] 
solaris: fix compilation failure

This patch fixes a compilation failure on Solaris. Compiler does
not support when a function returning void is used in return of
an other function returning void.

Patch obtained thanks to coccinelle and the following semantic
patch:

 @@
 identifier f;
 expression E;
 @@

 void f(...)
 {
  <...
  - return E;
  + E;
  + return;
  ...>
 }

12 years agofix for #932.
Anoop Saldanha [Sat, 31 Aug 2013 16:13:06 +0000 (21:43 +0530)] 
fix for #932.

ipv6 tunnel decoder wrongly treats the tunneled ipv6 packets as an ipv4
packet.

12 years agofix for #920.
Anoop Saldanha [Fri, 30 Aug 2013 03:41:39 +0000 (09:11 +0530)] 
fix for #920.

Cull the space before the address specified in address var variables.

12 years agoupdate changelog for 1.4.5 suricata-1.4.5
Victor Julien [Fri, 26 Jul 2013 10:55:13 +0000 (12:55 +0200)] 
update changelog for 1.4.5

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 #906

12 years agoBump bundled libhtp version to 0.2.14 suricata-1.4.4
Victor Julien [Thu, 18 Jul 2013 08:03:09 +0000 (10:03 +0200)] 
Bump bundled libhtp version to 0.2.14

12 years agoUpdate changelog to 1.4.4
Victor Julien [Thu, 18 Jul 2013 07:56:34 +0000 (09:56 +0200)] 
Update changelog to 1.4.4

12 years agoStream: don't inject stream end pseudo pkt on FinWait2 state. Bug #877.
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 #877.

12 years agoTunnel status flag not set for request state in libhtp.
Anoop Saldanha [Wed, 10 Jul 2013 05:48:29 +0000 (11:18 +0530)] 
Tunnel status flag not set for request state in libhtp.

More of a temporary fix for bundled htp in master to stop the crashes
resulting from this. libhtp 0.5.x should clean things up nice.

12 years agoadd --enable-unix-socket flag to configure.
Eric Leblond [Mon, 15 Jul 2013 17:43:02 +0000 (19:43 +0200)] 
add  --enable-unix-socket flag to configure.

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

12 years agouse Packet test macro 433/head
Eric Leblond [Thu, 11 Jul 2013 09:52:54 +0000 (11:52 +0200)] 
use Packet test macro

This patch updates the code to use Packet test macro instead of
direct test on action flag instead Packet structure. This fixes
the issues related to p->root->action being set and not detected
in tests.

12 years agoUpdate changelog for 1.4.3 suricata-1.4.3
Victor Julien [Thu, 20 Jun 2013 11:48:38 +0000 (13:48 +0200)] 
Update changelog for 1.4.3

12 years agounix-socket: fix OSX build 391/head
Eric Leblond [Tue, 18 Jun 2013 08:57:19 +0000 (10:57 +0200)] 
unix-socket: fix OSX build

MSG_NOSIGNAL is not defined on macOSX and SO_NOSIGPIPE is used
instead.

12 years agoFix for #819
Eric Leblond [Tue, 11 Jun 2013 15:50:25 +0000 (17:50 +0200)] 
Fix for #819

This patch is fixing #819. This includes the impossibility to drop
fragmented and tunnelled packets.

12 years agoFix the bug specified in the previous commit. 388/head
Anoop Saldanha [Thu, 13 Jun 2013 14:54:55 +0000 (20:24 +0530)] 
Fix the bug specified in the previous commit.

Bug emanates from byte_test, byte_jump and byte_extract keyword being
unable to handle negative offsets when the inspection pointer is at the
end of the buffer.

12 years agoUnit-tests exposing a bug in byte_test, byte_jump and byte_extract.
Anoop Saldanha [Thu, 13 Jun 2013 14:50:55 +0000 (20:20 +0530)] 
Unit-tests exposing a bug in byte_test, byte_jump and byte_extract.

Bug emanates from all the keywords being unable to handle negative offsets
when the inspection pointer is at the end of the buffer.

12 years agobytetest: fix debug messages not printing negative offset correctly
Victor Julien [Tue, 11 Jun 2013 10:20:37 +0000 (12:20 +0200)] 
bytetest: fix debug messages not printing negative offset correctly

12 years agoBump bundled htp version to 0.2.13 suricata-1.4.2
Victor Julien [Wed, 29 May 2013 12:30:14 +0000 (14:30 +0200)] 
Bump bundled htp version to 0.2.13

12 years agoUpdate Changelog for 1.4.2
Victor Julien [Wed, 29 May 2013 12:18:06 +0000 (14:18 +0200)] 
Update Changelog for 1.4.2

12 years agofix for #788. 379/head
Anoop Saldanha [Sat, 25 May 2013 05:08:13 +0000 (10:38 +0530)] 
fix for #788.

Now depth is kept in mind when we inspect chunks in client/server body.
This takes care of FPs originating from inspecting subsequent chunks that
match with depth, but shouldn't.

12 years agoRemoved Signature->order_id and replaced it with Signature->num. 364/head
Anoop Saldanha [Fri, 10 May 2013 16:20:16 +0000 (21:50 +0530)] 
Removed Signature->order_id and replaced it with Signature->num.

12 years ago1. Fix assignment of signums, which affected how we used read sigs(priority wise...
Anoop Saldanha [Thu, 9 May 2013 03:22:05 +0000 (08:52 +0530)] 
1. Fix assignment of signums, which affected how we used read sigs(priority wise) inside staging.

   Previously we would assign signums before sig ordering, and hence the
   order didn't actually reflect the order of the sig in the
   sig_list(assuming sig reordering changed the sig_list).  Staging would
   use the old sig_nums to decide the priority of sigs.
2. Fix sig ordering for flowvar, flowbits, flowint, pktvar sigs.   We have
   introduced a new priority to treat sigs with set + read as lower
   priority compared to set only sigs.
3. Previously we treated sigs with a "priority(keyword)" > another sig's
   priority, as a sig with greater priority than the later.  We have
   reversed it.  Now the sig priority ordering is 1,2,.etc.  Updated
   sigordering unittests to reflect the same.

12 years agoflowvar: clean up properly on signature clean up.
Victor Julien [Wed, 17 Apr 2013 09:58:00 +0000 (11:58 +0200)] 
flowvar: clean up properly on signature clean up.

12 years agoflowvar: add unittests for #801.
Victor Julien [Wed, 17 Apr 2013 09:05:08 +0000 (11:05 +0200)] 
flowvar: add unittests for #801.

12 years agoflowvar: fix deadlock with http buffers
Victor Julien [Tue, 16 Apr 2013 19:47:42 +0000 (21:47 +0200)] 
flowvar: fix deadlock with http buffers

Bug #801

Flowvars are set from pcre, and lock the flow when being set. However
when HTTP buffers were inspected, flow was already locked: deadlock.

This patch introduces a post-match list in the detection engine thread
ctx, where store candidates are kept. Then a post-match function is used
to finalize the storing if the rule matches.

Solves the deadlock and brings the handling of flowvars more in line
with flowbits and flowints.

12 years agoflowvars: update funcs to accept u16 id
Victor Julien [Tue, 16 Apr 2013 12:53:23 +0000 (14:53 +0200)] 
flowvars: update funcs to accept u16 id

All id's are u16, but flowvar functions would only accept u8.

Minor cleanups.

12 years agoMinor SigValidate cleanup
Victor Julien [Fri, 12 Apr 2013 08:45:54 +0000 (10:45 +0200)] 
Minor SigValidate cleanup

12 years agoUpdate the way we handle http_host keywords.
Anoop Saldanha [Wed, 27 Mar 2013 09:25:05 +0000 (14:55 +0530)] 
Update the way we handle http_host keywords.

Previously we would have forced all users to use nocase with http_host
keywords(since the hostname buffer is lowercase).

We now error out on sigs that has nocase set with http_host set.  Also if
the http_host pattern or http_host pcre has an uppercase character set, we
invalidate such sigs.  Unittests also updated to reflect the above change.

12 years agoDon't try to sniff 'default' interface
Eric Leblond [Tue, 26 Mar 2013 17:24:46 +0000 (18:24 +0100)] 
Don't try to sniff 'default' interface

Whan running suricata via 'suricata --af-packet', the list of interfaces
was containing the 'default' interface and sniffing it was attempted.
This was not wanted.

12 years agobpf filter: use SCLogError instead of fprintf
Eric Leblond [Tue, 26 Mar 2013 16:59:35 +0000 (17:59 +0100)] 
bpf filter: use SCLogError instead of fprintf

12 years agoaf-packet: warn about BPF filter consequence in IPS mode
Eric Leblond [Tue, 26 Mar 2013 15:32:36 +0000 (16:32 +0100)] 
af-packet: warn about BPF filter consequence in IPS mode

This patch add a message to warn user about the impact of using a
BPF filter in IPS mode.

12 years agoExit if bpf is used in IPS mode
Eric Leblond [Tue, 26 Mar 2013 13:16:23 +0000 (14:16 +0100)] 
Exit if bpf is used in IPS mode

12 years agoHandle the case of pcre combined with a relative content, where pcre has the set... 337/head
Anoop Saldanha [Wed, 27 Mar 2013 12:27:55 +0000 (17:57 +0530)] 
Handle the case of pcre combined with a relative content, where pcre has the set to match from start of line and we discontinue matching on not finding match.

12 years agounittest to display #784.
Anoop Saldanha [Tue, 26 Mar 2013 07:50:54 +0000 (13:20 +0530)] 
unittest to display #784.

12 years agojansson: change function test to be sure of version
Eric Leblond [Mon, 18 Mar 2013 22:08:18 +0000 (23:08 +0100)] 
jansson: change function test to be sure of version

12 years agofix for #571. 329/head 331/head
Anoop Saldanha [Mon, 25 Mar 2013 15:19:18 +0000 (20:49 +0530)] 
fix for #571.

Backport 8bbcdb61cf8e014294be0caf6d6e614ef778c7b4 changes from libhtp 0.5.x
to Suricata's bundled libhtp.

We now handle ipv6 addresses in uri and host header.

12 years agounittests to display #761 issue.
Anoop Saldanha [Mon, 25 Mar 2013 15:35:10 +0000 (21:05 +0530)] 
unittests to display #761 issue.

libhtp doesn't parse host correctly if uri/host_header contains ipv6 address.

12 years agotcp stream: don't move to LAST_ACK on toserver resent of FIN
Victor Julien [Tue, 19 Mar 2013 11:23:37 +0000 (12:23 +0100)] 
tcp stream: don't move to LAST_ACK on toserver resent of FIN

12 years agoCoverity 989710 and 989711: small recourse leaks in filemd5 parsing code.
Victor Julien [Wed, 13 Mar 2013 09:16:15 +0000 (10:16 +0100)] 
Coverity 989710 and 989711: small recourse leaks in filemd5 parsing code.

12 years agofix for #770. 317/head
Anoop Saldanha [Tue, 12 Mar 2013 06:39:31 +0000 (12:09 +0530)] 
fix for #770.

Invalidate sigs with negative depth.

12 years agofix for #771.
Anoop Saldanha [Tue, 12 Mar 2013 03:04:33 +0000 (08:34 +0530)] 
fix for #771.

Fix /etc/protocols parsing.  Remove trailing newspace stored under some cases.

12 years agoBump bundled htp to 0.2.12 suricata-1.4.1
Victor Julien [Fri, 8 Mar 2013 12:11:19 +0000 (13:11 +0100)] 
Bump bundled htp to 0.2.12

12 years agoUpdate changelog for 1.4.1
Victor Julien [Fri, 8 Mar 2013 09:34:23 +0000 (10:34 +0100)] 
Update changelog for 1.4.1

12 years agofix for #769.
Anoop Saldanha [Thu, 7 Mar 2013 11:08:16 +0000 (16:38 +0530)] 
fix for #769.

Packet inserted by live swap flagged as pseudo packet.

12 years agoFix valgrind error/warning in ip reputation parsing code
Victor Julien [Thu, 7 Mar 2013 16:23:26 +0000 (17:23 +0100)] 
Fix valgrind error/warning in ip reputation parsing code

12 years agofix for #758. Add redmine wiki link and desc for icmp-id keyword.
Anoop Saldanha [Fri, 1 Mar 2013 15:18:28 +0000 (20:48 +0530)] 
fix for #758.  Add redmine wiki link and desc for icmp-id keyword.

12 years agonfq: add missing error string
Victor Julien [Thu, 20 Dec 2012 09:46:06 +0000 (10:46 +0100)] 
nfq: add missing error string

12 years agoFix potential Null deref.
Eric Leblond [Wed, 6 Mar 2013 15:15:16 +0000 (16:15 +0100)] 
Fix potential Null deref.

12 years agoFix potential iprep file parsing issue (2).
Victor Julien [Wed, 6 Mar 2013 14:35:25 +0000 (15:35 +0100)] 
Fix potential iprep file parsing issue (2).

12 years agoFix potential iprep file parsing issue.
Victor Julien [Wed, 6 Mar 2013 14:32:53 +0000 (15:32 +0100)] 
Fix potential iprep file parsing issue.

12 years agoFix test AddressTestParse36 on Big Endian systems
Victor Julien [Fri, 1 Mar 2013 13:02:55 +0000 (14:02 +0100)] 
Fix test AddressTestParse36 on Big Endian systems

12 years agofix for #760.
Anoop Saldanha [Sat, 2 Mar 2013 14:08:49 +0000 (19:38 +0530)] 
fix for #760.

If udpv4 csum isn't calculated, udpv4-csum detection shouldn't run on the
csum.

12 years agofix for #725.
Anoop Saldanha [Mon, 21 Jan 2013 06:38:25 +0000 (12:08 +0530)] 
fix for #725.

Update trec_len, trec_pos to 32 bits from 16 bits.
Handle handshakes that are fragmented across records.

12 years agotemporarily patched smb + dcerpc parsers for direction demaraction.
Anoop Saldanha [Wed, 27 Feb 2013 15:21:36 +0000 (20:51 +0530)] 
temporarily patched smb + dcerpc parsers for direction demaraction.

12 years agopcap-file: treat the case of unsupported pcap link
Eric Leblond [Thu, 28 Feb 2013 15:52:43 +0000 (16:52 +0100)] 
pcap-file: treat the case of unsupported pcap link

In unix socket mode, Suricata was stopping processing pcap files
when a pcap file with an unsupported datalink was treated. This
patch updates error handling to allow Suricata to treat other
pcap files.

12 years agoaf-packet: leave reading loop at each turn
Eric Leblond [Mon, 25 Feb 2013 13:57:55 +0000 (14:57 +0100)] 
af-packet: leave reading loop at each turn

The idea of this patch is to be sure to leave the ring reading loop
enough to be able to sync counters. This should fix #706.

12 years agoReplace the deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS. 302/head
Jason Ish [Thu, 28 Feb 2013 20:01:05 +0000 (14:01 -0600)] 
Replace the deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS.

Addresses bug #704 for building on a Mac.  More generically
it addresses the issue building using newers versions of automake.

12 years agosuricatasc: fix make distcheck. 299/head
Eric Leblond [Tue, 26 Feb 2013 14:15:12 +0000 (15:15 +0100)] 
suricatasc: fix make distcheck.

12 years agounix-manager: fix thread killing function
Eric Leblond [Sat, 23 Feb 2013 11:31:17 +0000 (12:31 +0100)] 
unix-manager: fix thread killing function

The name of the thread was not searched in the correct family.

Reported-by: iswalker <mail2cissp@gmail.com>
12 years agosuricatasc: update python packaging
Eric Leblond [Tue, 22 Jan 2013 09:47:29 +0000 (10:47 +0100)] 
suricatasc: update python packaging

'make install' install now suricatasc script and Python module to
the system. The suricatasc client module can now be used in other
Python projects by using 'import suricatasc'.

A transformation was needed for distribution of a module and a script.
Module in src directory is now containing most of the code and the
script only handle argument parsing and the creation of a unix socket
client through 'suricatasc' module.

12 years agosuricatasc: refactor as a class
Eric Leblond [Thu, 6 Dec 2012 10:21:57 +0000 (11:21 +0100)] 
suricatasc: refactor as a class

The goal of this commit is to be able to use suricatasc has a library
and and program. This is done by putting all active code in class and
adding a Python magic to detect when file is used as a program.

12 years agounix socket: add 'dump-counters' command
Eric Leblond [Wed, 5 Dec 2012 17:30:41 +0000 (18:30 +0100)] 
unix socket: add 'dump-counters' command

This patch adds a 'dump-counters' command which answer an output of
all performance counter.

12 years agosuricatasc: improve output of command result
Eric Leblond [Wed, 5 Dec 2012 17:26:21 +0000 (18:26 +0100)] 
suricatasc: improve output of command result

12 years agosuricatasc: treat old server case
Eric Leblond [Tue, 4 Dec 2012 16:50:22 +0000 (17:50 +0100)] 
suricatasc: treat old server case

If the server don't have the 'command-list' function, suricatasc
was failling. This patch fixes this issue by adding a static list
instead.

12 years agounix socket: add 'help' as alias to 'command-list'
Eric Leblond [Tue, 4 Dec 2012 08:31:08 +0000 (09:31 +0100)] 
unix socket: add 'help' as alias to 'command-list'

12 years agosuricatasc: real cmd line parsing and verbose mode
Eric Leblond [Fri, 30 Nov 2012 19:47:47 +0000 (20:47 +0100)] 
suricatasc: real cmd line parsing and verbose mode

This patch adds commandline parsing and help to suricatasc. It also
adds a verbose mode (-v) where the send and received JSON object are
shown. This should ease development of unix socket client.