]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
7 years agohttp: allow shinking in HTPRealloc 3017/head
Victor Julien [Mon, 27 Nov 2017 09:03:46 +0000 (10:03 +0100)] 
http: allow shinking in HTPRealloc

7 years agoAdd support for PCAP LINKTYPE_IPV4
Pierre Chifflier [Fri, 24 Nov 2017 07:15:33 +0000 (08:15 +0100)] 
Add support for PCAP LINKTYPE_IPV4

7 years agomingw: service init compile warning fix
Victor Julien [Sun, 26 Nov 2017 20:29:46 +0000 (21:29 +0100)] 
mingw: service init compile warning fix

7 years agooutput: clean up log API unittests
Victor Julien [Sun, 26 Nov 2017 10:36:19 +0000 (11:36 +0100)] 
output: clean up log API unittests

Disable for MinGW as the setenv/getenv implementations seems to
be undeterministic.

7 years agoflow: optimize Flow structure layout
Victor Julien [Sun, 26 Nov 2017 09:30:47 +0000 (10:30 +0100)] 
flow: optimize Flow structure layout

Shrink structure with 8 bytes by moving new ttl fields into an
existing 'gap'.

Also fixes a strange ASAN issue in GCC 5.4.0 in unittests.

7 years agothresholds: simplify config parsing
Victor Julien [Sat, 25 Nov 2017 13:30:58 +0000 (14:30 +0100)] 
thresholds: simplify config parsing

7 years agodetect: make glob.h optional
Victor Julien [Mon, 17 Jul 2017 09:19:20 +0000 (11:19 +0200)] 
detect: make glob.h optional

glob.h is not available on MinGW.

Simply use the input on the rule list as a literal pattern.

7 years agodetect: fix flow bypass flag handling
Victor Julien [Sun, 8 Oct 2017 13:27:00 +0000 (15:27 +0200)] 
detect: fix flow bypass flag handling

7 years agodetect/analyzer: formatting fixup 3013/head
Victor Julien [Fri, 3 Nov 2017 07:05:35 +0000 (08:05 +0100)] 
detect/analyzer: formatting fixup

7 years agodetect: constify rule group lookup
Victor Julien [Mon, 9 Oct 2017 07:06:47 +0000 (09:06 +0200)] 
detect: constify rule group lookup

7 years agodetect: minor profiling cleanup
Victor Julien [Sun, 8 Oct 2017 16:20:18 +0000 (18:20 +0200)] 
detect: minor profiling cleanup

7 years agodetect/mpm: minor cleanup: remove unused function arg
Victor Julien [Fri, 6 Oct 2017 12:07:51 +0000 (14:07 +0200)] 
detect/mpm: minor cleanup: remove unused function arg

7 years agodetect-state: minor cleanups
Victor Julien [Fri, 6 Oct 2017 10:24:15 +0000 (12:24 +0200)] 
detect-state: minor cleanups

7 years agodetect: constify address match functions
Victor Julien [Sat, 7 Oct 2017 10:18:20 +0000 (12:18 +0200)] 
detect: constify address match functions

7 years agodetect: style cleanup
Victor Julien [Wed, 11 Oct 2017 16:14:16 +0000 (18:14 +0200)] 
detect: style cleanup

7 years agoapp-layer: minor cleanup
Victor Julien [Wed, 11 Oct 2017 16:13:58 +0000 (18:13 +0200)] 
app-layer: minor cleanup

7 years agoapp-layer: cleanup: use true bool type for 'logger'
Victor Julien [Thu, 5 Oct 2017 16:50:22 +0000 (18:50 +0200)] 
app-layer: cleanup: use true bool type for 'logger'

7 years agoapp-layer: minor cleanups and optimizations
Victor Julien [Thu, 5 Oct 2017 16:02:58 +0000 (18:02 +0200)] 
app-layer: minor cleanups and optimizations

Use flow protomap instead of dynamically converting the ip proto in
each call.

Use const for vars where possible.

7 years agostream: minor debug addition
Victor Julien [Fri, 13 Oct 2017 09:33:26 +0000 (11:33 +0200)] 
stream: minor debug addition

7 years agodetect: minor cleanups
Victor Julien [Sun, 8 Oct 2017 11:15:12 +0000 (13:15 +0200)] 
detect: minor cleanups

7 years agodetect: minor comment cleanup
Victor Julien [Mon, 23 Oct 2017 09:46:18 +0000 (11:46 +0200)] 
detect: minor comment cleanup

7 years agodetect: run buffer setup callback before validate
Victor Julien [Sun, 5 Nov 2017 21:25:11 +0000 (22:25 +0100)] 
detect: run buffer setup callback before validate

7 years agorust: require at least libc 0.2.33 3009/head
Victor Julien [Wed, 22 Nov 2017 14:40:49 +0000 (15:40 +0100)] 
rust: require at least libc 0.2.33

Required to be higher than 0.2.24 for IPPROTO_UDP. Upgraded to latest
version.

7 years agorust/ntp: convert parser to new registration method
Pierre Chifflier [Thu, 26 Oct 2017 06:05:41 +0000 (08:05 +0200)] 
rust/ntp: convert parser to new registration method

Converting the NTP parser to the new registration method is a simple,
3-steps process:
- change the extern functions to use generic input parameters (functions
  in all parsers must share common types to be generic) and cast them
- declare the Parser structure
- remove the C code and call the registration function

7 years agorust: generate declaration for extern unsafe funcs
Pierre Chifflier [Thu, 26 Oct 2017 06:18:46 +0000 (08:18 +0200)] 
rust: generate declaration for extern unsafe funcs

7 years agorust/applayer: add registration iface for parsers
Pierre Chifflier [Thu, 26 Oct 2017 05:57:03 +0000 (07:57 +0200)] 
rust/applayer: add registration iface for parsers

Add Rust support for the common interface to declare and register all
parsers.

Add a common structure definition to contain all required elements
required for registering a parser, similar to the C interface.
This also reduces the risk of incorrectly registering a parser: the
compiler prevents omitting required functions from the structure, and
functions (even if external) are type-checked. Optional functions are
explicitly marked.

7 years agoapplayer: add registration interface for parsers
Pierre Chifflier [Fri, 27 Oct 2017 11:10:04 +0000 (13:10 +0200)] 
applayer: add registration interface for parsers

Add a common structure definition to contain all required elements
required for registering a parser.
This also reduces the risk of incorrectly registering a parser: the
compiler will type-check functions.

The registration function allows factorization of the code. It can be
used to register parsers, but is not mandatory.

If extra registration code (for functions not in the structure)
it is still possible by calling the C functions after the registration.

7 years agoapplayer: add StringToAppProto
Pierre Chifflier [Thu, 26 Oct 2017 05:53:12 +0000 (07:53 +0200)] 
applayer: add StringToAppProto

Add StringToAppProto to map a protocol name to a AppProto.

Exposing this function is required to let parsers discover their
AppProto identifier constant dynamically.
For example, a parser can request this value, and use it for
registration without knowing the value.

7 years agoapplayer: add typedef for Parsing functions
Pierre Chifflier [Fri, 27 Oct 2017 11:07:29 +0000 (13:07 +0200)] 
applayer: add typedef for Parsing functions

7 years agopfring: various build issues
Victor Julien [Tue, 21 Nov 2017 17:22:12 +0000 (18:22 +0100)] 
pfring: various build issues

pfring.h brings a different version of likely/unlikely that gives
warnings. So make sure we include our own before.

Make sure pfring.h isn't included globally due to apparent redefinition
of pthread_rwlock_t.

7 years agopfring: hw bypass support
Alfredo Cardigliano [Tue, 7 Nov 2017 10:49:47 +0000 (11:49 +0100)] 
pfring: hw bypass support

This patch adds support for hw bypass by enabling flow offload in the network
card (when supported) and implementing the BypassPacketsFlow callback.
Hw bypass support is disabled by default, and can be enabled by setting
"bypass: yes" in the pfring interface configuration section in suricata.yaml.

7 years agoNSM: add TTL fields for netflow log
Pascal Delalande [Wed, 18 Oct 2017 19:42:37 +0000 (21:42 +0200)] 
NSM: add TTL fields for netflow log

7 years agonetflow: fix ttl logic
Eric Leblond [Fri, 5 May 2017 14:53:38 +0000 (16:53 +0200)] 
netflow: fix ttl logic

Use a per direction TTL min and max so we can log different values
seen in the two half flows.

Signed-off-by: Eric Leblond <eric@regit.org>
7 years agonetflow: log ttl fields
Giuseppe Longo [Thu, 15 Dec 2016 16:28:21 +0000 (17:28 +0100)] 
netflow: log ttl fields

Netflow entry collects the minimum and maximum
time to live during the life of the incoming flow.

This adds those field to a netflow event.

Signed-off-by: Eric Leblond <eric@regit.org>
7 years agodoc: add documentation for tls_cert_fingerprint keyword
Mats Klepsland [Wed, 15 Mar 2017 07:02:08 +0000 (08:02 +0100)] 
doc: add documentation for tls_cert_fingerprint keyword

7 years agodetect: add (mpm) keyword tls_cert_fingerprint
Mats Klepsland [Wed, 15 Mar 2017 06:55:31 +0000 (07:55 +0100)] 
detect: add (mpm) keyword tls_cert_fingerprint

Reimplement keyword to match on SHA-1 fingerprint of TLS
certificate as a mpm keyword.

alert tls any any -> any (msg:"TLS cert fingerprint test";
       tls_cert_fingerprint;
       content:"4a:a3:66:76:82:cb:6b:23:bb:c3:58:47:23:a4:63:a7:78:a4:a1:18";
       sid:12345;)

7 years agounittests: initialize NSS in unittests runmode
Mats Klepsland [Mon, 7 Aug 2017 07:53:25 +0000 (09:53 +0200)] 
unittests: initialize NSS in unittests runmode

Initialize NSS in unittests runmode when Suricata is compiled with
libnss. Otherwise, calculating SHA-1 sums for TLS fingerprints
will fail.

7 years agoOpen 4.1 development branch
Victor Julien [Tue, 21 Nov 2017 16:31:36 +0000 (17:31 +0100)] 
Open 4.1 development branch

7 years agounix socket: don't loose events when offline 3001/head
Danny Browning [Mon, 6 Nov 2017 23:10:02 +0000 (16:10 -0700)] 
unix socket: don't loose events when offline

https://redmine.openinfosecfoundation.org/issues/2215

Fixes issue with events being dropped since socket was non-blocking for
offline run modes.

Add a method for determining offline from run mode. Make sure SCInstance
offline is set correctly. Use current run mode to set socket flags.

7 years agosyslog: treat SC_LOG_PERF messages as LOG_DEBUG
Alexander Gozman [Thu, 9 Nov 2017 11:55:47 +0000 (11:55 +0000)] 
syslog: treat SC_LOG_PERF messages as LOG_DEBUG

SCLogMapLogLevelToSyslogLevel(): treat SC_LOG_PERF messages as LOG_DEBUG

Previously, when logging to syslog, perf events had a default EMERG priority,
which could be a bit confusing.

7 years agoconf: fix NULL-pointer dereference in CoredumpLoadConfig
Wolfgang Hotwagner [Sun, 19 Nov 2017 14:05:04 +0000 (14:05 +0000)] 
conf: fix NULL-pointer dereference in CoredumpLoadConfig

An empty value for coredump.max-dump in the config-file leads to a segfault because of a NULL-pointer dereference in CoredumpLoadConfig().

Here is a configuration example:

coredump.max-dump: []

This lets suricata crash with a segfault:

ASAN-output:
==9412==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f22e851aa28 bp 0x7ffd90006fc0 sp 0x7ffd90006740 T0)
    0 0x7f22e851aa27 in strcasecmp (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x51a27)
    1 0x5608a7ec0108 in CoredumpLoadConfig /root/suricata-1/src/util-coredump-config.c:52
    2 0x5608a7e8bb22 in PostConfLoadedSetup /root/suricata-1/src/suricata.c:2752
    3 0x5608a7e8c577 in main /root/suricata-1/src/suricata.c:2892
    4 0x7f22e4c622b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
    5 0x5608a7a30c59 in _start (/usr/local/bin/suricata+0xc4c59)

Bug #2276

7 years agoconf: fix NULL-pointer dereference in ConfGetInt
Wolfgang Hotwagner [Fri, 17 Nov 2017 23:25:08 +0000 (23:25 +0000)] 
conf: fix NULL-pointer dereference in ConfGetInt

If there are empty values in the config-file where integer values are expected, strtoimax in the ConfGetInt-function will segfault because of NULL-pointer dereference.

Here is a configuration example:

pcre.match-limit: []

This will let suricata crash with a segfault.
ASAN-output:

ASAN:DEADLYSIGNAL =================================================================
16951ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fa690e3ccc5 bp 0x000000000000 sp 0x7ffd0d770ad0 T0)
0 0x7fa690e3ccc4 (/lib/x86_64-linux-gnu/libc.so.6+0x36cc4)
1 0x7fa6946a6534 in strtoimax (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x44534)
2 0x55e0aeba6499 in ConfGetInt /root/suricata-1/src/conf.c:390
3 0x55e0aed2545d in DetectPcreRegister /root/suricata-1/src/detect-pcre.c:99
4 0x55e0aec1b4ce in SigTableSetup /root/suricata-1/src/detect.c:3783
5 0x55e0aeeed58d in PostConfLoadedSetup /root/suricata-1/src/suricata.c:2690
6 0x55e0aeeee4f2 in main /root/suricata-1/src/suricata.c:2892
7 0x7fa690e262b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
8 0x55e0aea92d39 in _start (/usr/local/bin/suricata+0xc7d39)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x36cc4)

This commit fixes Ticket #2275

7 years agoconf: fix NULL-pointer dereference in ParseSizeString
Wolfgang Hotwagner [Fri, 17 Nov 2017 17:47:41 +0000 (17:47 +0000)] 
conf: fix NULL-pointer dereference in ParseSizeString

If someone accidently writes invalid characters in some parts of the suricata.yaml-configfile, the size-parameter of the ParseSizeString-function becomes NULL and gets dereferenced. Suricata crashes with SEGV. This commit fixes Ticket #2274

The following config value leads to a Segfault:
app-layer.protocols.smtp.inspected-tracker.content-inspect-window: *4096

7 years agoupdated links to suricata.readthedocs.io
jason taylor [Thu, 2 Nov 2017 12:33:54 +0000 (08:33 -0400)] 
updated links to suricata.readthedocs.io

Signed-off-by: jason taylor <jtfas90@gmail.com>
7 years agodetect/dns: fix misdetection on dns_query on udp 2982/head
Victor Julien [Tue, 7 Nov 2017 16:18:30 +0000 (17:18 +0100)] 
detect/dns: fix misdetection on dns_query on udp

If 'raw' content patterns were used in a dns_query rule, the raw
patterns would only be evaluated for TCP, but not for UDP.

This patch adds the inspection for UDP as well.

Bug #2263.

7 years agovalgrind: suppressions for NIC offloading calls 2969/head
Peter Manev [Wed, 1 Nov 2017 12:19:21 +0000 (13:19 +0100)] 
valgrind: suppressions for NIC offloading calls

7 years agodetect/profile: minor fixes
Victor Julien [Wed, 1 Nov 2017 09:16:15 +0000 (10:16 +0100)] 
detect/profile: minor fixes

7 years agoinstall: use up to date url for 'make install-full'
Victor Julien [Sun, 29 Oct 2017 07:38:43 +0000 (08:38 +0100)] 
install: use up to date url for 'make install-full'

7 years agotravis: allow rust-stable build to fail 2952/head
Jason Ish [Tue, 24 Oct 2017 22:34:00 +0000 (16:34 -0600)] 
travis: allow rust-stable build to fail

7 years agotravis: rust 1.21.0 build
Jason Ish [Tue, 24 Oct 2017 14:25:59 +0000 (08:25 -0600)] 
travis: rust 1.21.0 build

7 years agotravis: do make distcheck on Rust 1.15.0 build
Jason Ish [Tue, 24 Oct 2017 12:52:25 +0000 (06:52 -0600)] 
travis: do make distcheck on Rust 1.15.0 build

7 years agodetect: don't register http_*_line twice
Victor Julien [Tue, 24 Oct 2017 06:56:48 +0000 (08:56 +0200)] 
detect: don't register http_*_line twice

7 years agodetect: test for byte_extract/isdataat large values
Victor Julien [Sat, 21 Oct 2017 08:17:07 +0000 (10:17 +0200)] 
detect: test for byte_extract/isdataat large values

7 years agodetect: handle very large byte_extract'ed values in isdataat
Victor Julien [Sat, 21 Oct 2017 08:16:30 +0000 (10:16 +0200)] 
detect: handle very large byte_extract'ed values in isdataat

7 years agodetect: add unittest for byte_extract/isdataat
Victor Julien [Sat, 21 Oct 2017 08:01:20 +0000 (10:01 +0200)] 
detect: add unittest for byte_extract/isdataat

7 years agodetect: implement byte_extract support for isdataat
Victor Julien [Sat, 21 Oct 2017 08:00:47 +0000 (10:00 +0200)] 
detect: implement byte_extract support for isdataat

7 years agodetect: add debug statements for byte_extract/isdataat
Victor Julien [Sat, 21 Oct 2017 08:00:08 +0000 (10:00 +0200)] 
detect: add debug statements for byte_extract/isdataat

7 years agodetect-asn1: fix memory leak in error path
Victor Julien [Fri, 20 Oct 2017 08:04:25 +0000 (10:04 +0200)] 
detect-asn1: fix memory leak in error path

7 years agodetect: fix port parsing memory leak
Victor Julien [Fri, 20 Oct 2017 07:50:59 +0000 (09:50 +0200)] 
detect: fix port parsing memory leak

Leak in error path as seen by scan-build:

  CC       detect-engine-port.o
detect-engine-port.c:1083:13: warning: Potential leak of memory pointed to by 'temp_rule_var_port'
    return -1;
            ^

7 years agodetect-id: clean up to suppress minor coverity warning
Victor Julien [Fri, 20 Oct 2017 07:24:23 +0000 (09:24 +0200)] 
detect-id: clean up to suppress minor coverity warning

7 years agoredis: suppress minor coverity warning
Victor Julien [Fri, 20 Oct 2017 07:17:30 +0000 (09:17 +0200)] 
redis: suppress minor coverity warning

7 years agodecoder: implement IEEE802.1AH
Victor Julien [Thu, 19 Oct 2017 11:47:35 +0000 (13:47 +0200)] 
decoder: implement IEEE802.1AH

7 years agorandom: fix random logic with getrandom
Victor Julien [Tue, 24 Oct 2017 10:04:43 +0000 (12:04 +0200)] 
random: fix random logic with getrandom

The older random functions returned random values in the range of
0 - RAND_MAX. This is what the http randomize code was expecting.

Newer methods, based on getrandom (or probably Windows too), return
a much large range of values, including negative values and >RAND_MAX.

This patch adds a wrapper to turn the returned value into the expected
range before using it in the http code.

The same is true for the stream engine.

7 years agorandom: support getrandom(2) if available 2944/head
Victor Julien [Thu, 19 Oct 2017 07:51:18 +0000 (09:51 +0200)] 
random: support getrandom(2) if available

Ticket: #2193

7 years agonapatech: fix minor memleak in error path
Victor Julien [Thu, 19 Oct 2017 07:03:13 +0000 (09:03 +0200)] 
napatech: fix minor memleak in error path

7 years agoyaml: print errors if integers are invalid
Victor Julien [Thu, 19 Oct 2017 06:59:36 +0000 (08:59 +0200)] 
yaml: print errors if integers are invalid

7 years agodetect: error out on invalid detect.profile option
Victor Julien [Thu, 19 Oct 2017 06:41:09 +0000 (08:41 +0200)] 
detect: error out on invalid detect.profile option

Bug #891.

7 years agoyaml: add 'append' to stats-log entry
Victor Julien [Thu, 19 Oct 2017 06:24:47 +0000 (08:24 +0200)] 
yaml: add 'append' to stats-log entry

Bug #798

7 years agochangelog: update for 4.0.1 release suricata-4.0.1
Victor Julien [Wed, 18 Oct 2017 08:33:47 +0000 (10:33 +0200)] 
changelog: update for 4.0.1 release

7 years agoautotools: fix distcheck with rust enabled
Jason Ish [Wed, 18 Oct 2017 12:53:03 +0000 (14:53 +0200)] 
autotools: fix distcheck with rust enabled

7 years agostats: use unshortened interface names in counters 2941/head
Sascha Steinbiss [Sat, 16 Sep 2017 06:29:35 +0000 (07:29 +0100)] 
stats: use unshortened interface names in counters

7 years agojson: skip over double dots in output tokenizing
Sascha Steinbiss [Fri, 1 Sep 2017 14:24:56 +0000 (16:24 +0200)] 
json: skip over double dots in output tokenizing

Interface name shortening introduces double periods ('..') as spacers,
which cause issues during JSON stats serialization as there '.'
characters are also used as separators to define nesting of the JSON
output. This commit makes sure that '..' are skipped during tokenizing.
Fixes Redmine bug #2208.

7 years agorust/file: improve truncation handling 2940/head
Victor Julien [Mon, 2 Oct 2017 16:34:08 +0000 (18:34 +0200)] 
rust/file: improve truncation handling

7 years agodetect/state: fix offset mask logic
qiangbei [Sun, 8 Oct 2017 12:49:05 +0000 (20:49 +0800)] 
detect/state: fix offset mask logic

changed 0xef to 0x7f

7 years agorunmodes: fix 'threads' option parsing
Victor Julien [Fri, 13 Oct 2017 07:22:49 +0000 (09:22 +0200)] 
runmodes: fix 'threads' option parsing

Don't cast int to uint8_t for no reason. Add warning that upper
limit for threads is 1024.

Small code cleanups.

Bug: #2228

7 years agooutput: harden output deinit
Victor Julien [Sun, 15 Oct 2017 19:25:07 +0000 (21:25 +0200)] 
output: harden output deinit

If thread setup fails allow output deinit code to be called with
NULL data without crashing.

7 years agostream: improve error handling of ssn/segment pools
Victor Julien [Fri, 13 Oct 2017 07:05:02 +0000 (09:05 +0200)] 
stream: improve error handling of ssn/segment pools

With large number of threads the default memcaps lead to pool setup
failures. Make sure these are reported properly so that the user
knows what is going on.

Bug: #2226

7 years agorust/dns: fix new warning in rustc 1.21 2937/head
Victor Julien [Sun, 15 Oct 2017 19:18:22 +0000 (21:18 +0200)] 
rust/dns: fix new warning in rustc 1.21

7 years agorust/nfs: fix new warnings in rustc 1.21
Victor Julien [Sun, 15 Oct 2017 19:16:56 +0000 (21:16 +0200)] 
rust/nfs: fix new warnings in rustc 1.21

7 years agodoc/file_data: add note on negated matching 2925/head
Victor Julien [Thu, 5 Oct 2017 09:11:13 +0000 (11:11 +0200)] 
doc/file_data: add note on negated matching

Explain issue #2216 and how to avoid it.

7 years agodoc/napatech: formatting fixes
Victor Julien [Thu, 5 Oct 2017 09:11:00 +0000 (11:11 +0200)] 
doc/napatech: formatting fixes

7 years agoprofiling: fix app-layer profiling and csv output 2924/head
Victor Julien [Sun, 24 Sep 2017 11:55:34 +0000 (13:55 +0200)] 
profiling: fix app-layer profiling and csv output

7 years agodebug: free pcre memory used for output filtering
Victor Julien [Tue, 3 Oct 2017 08:31:39 +0000 (10:31 +0200)] 
debug: free pcre memory used for output filtering

7 years agotls: don't set event on small input data
Victor Julien [Fri, 29 Sep 2017 17:10:46 +0000 (19:10 +0200)] 
tls: don't set event on small input data

On very small data the max loop count could be 0. Make sure
it's always at least 1.

7 years agoprscript: update urls to use OISF repo
Eric Leblond [Sat, 30 Sep 2017 10:35:14 +0000 (12:35 +0200)] 
prscript: update urls to use OISF repo

7 years agotravis: hook check-setup.sh into the build 2923/head
Jason Ish [Sun, 1 Oct 2017 10:28:47 +0000 (11:28 +0100)] 
travis: hook check-setup.sh into the build

Only do it for one build, for now use the one that also
enables Rust.

7 years agotemplate: script to check the setup scripts
Jason Ish [Sun, 1 Oct 2017 10:28:07 +0000 (11:28 +0100)] 
template: script to check the setup scripts

This script applies the setup scripts one by one followed
by a make distcheck.

7 years agotemplate scripts: allow to be called from top or src
Jason Ish [Sun, 1 Oct 2017 09:41:29 +0000 (10:41 +0100)] 
template scripts: allow to be called from top or src

Allow the template setup script to be called from the top source
directory or from ./src to unify where they can be executed
from.

7 years agotemplates: rename scripts to use - instead of _
Jason Ish [Sun, 1 Oct 2017 08:54:13 +0000 (09:54 +0100)] 
templates: rename scripts to use - instead of _

Use "-" consistently instead of a mix of - and _.

setup_decoder.sh -> setup-decoder.sh
setup_simple_detect.sh -> setup-simple-detect.sh

7 years agogithub: codeowners syntax fixes 2917/head
Victor Julien [Sat, 30 Sep 2017 14:50:47 +0000 (16:50 +0200)] 
github: codeowners syntax fixes

7 years agogithub: add codeowners file 2912/head
Victor Julien [Sat, 30 Sep 2017 11:13:58 +0000 (13:13 +0200)] 
github: add codeowners file

Initial version.

See https://help.github.com/articles/about-codeowners/

7 years agotemplate: fix decoder setup script 2900/head
Victor Julien [Wed, 6 Sep 2017 12:56:06 +0000 (14:56 +0200)] 
template: fix decoder setup script

7 years agotemplate: fix setup detect script
Victor Julien [Mon, 4 Sep 2017 19:03:56 +0000 (21:03 +0200)] 
template: fix setup detect script

7 years agotemplate: minor updates
Victor Julien [Mon, 4 Sep 2017 12:54:24 +0000 (14:54 +0200)] 
template: minor updates

Merge inspect engine into keyword

7 years agodns: fix last timestamp handling
Derek [Thu, 7 Sep 2017 03:23:25 +0000 (20:23 -0700)] 
dns: fix last timestamp handling

Fixes incorrect variable in ticket #2207

In app-layer-dns-tcp.c in the DNSTCPResponseParse function
a variable is set to last_req when it should be last_resp.
This makes it consistent with UDP DNS response parsing.

7 years agoaf-packet: free bpf program
Eric Leblond [Mon, 18 Sep 2017 18:30:20 +0000 (20:30 +0200)] 
af-packet: free bpf program

This fixes a small memory leak when Suricata is running with a
BPF filter.

7 years agoaf-packet: call thread deinit function
Eric Leblond [Mon, 18 Sep 2017 18:24:29 +0000 (20:24 +0200)] 
af-packet: call thread deinit function

7 years agoprscript: update docker code
Eric Leblond [Sat, 9 Sep 2017 09:13:29 +0000 (11:13 +0200)] 
prscript: update docker code

Update docker code to latest docker python API. This patch
preserves backwrd compatibility with older versions.

7 years agodoc: reflect most recent cpu affinity settings 2890/head
Andreas Herz [Sat, 9 Sep 2017 21:22:06 +0000 (23:22 +0200)] 
doc: reflect most recent cpu affinity settings

Some settings like output-cpu-set never been used and detect got renamed
to worker. This reflects those changes already present in the yaml also
within the documentation.

7 years agoapp-layer-ssl: fix bug with >255 records in one stream 2882/head
Mats Klepsland [Wed, 9 Aug 2017 19:07:03 +0000 (21:07 +0200)] 
app-layer-ssl: fix bug with >255 records in one stream