]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
4 years agohttp2: pass data through when decompression fails 6027/head
Philippe Antoine [Mon, 5 Apr 2021 13:53:09 +0000 (15:53 +0200)] 
http2: pass data through when decompression fails

as is done for HTTP1

4 years agothreshold-config: Improve support for big IP lists
Jeff Lucovsky [Sat, 5 Dec 2020 14:28:38 +0000 (09:28 -0500)] 
threshold-config: Improve support for big IP lists

4 years agotemplates: fix typos 6018/head
Juliana Fajardini [Tue, 23 Mar 2021 17:59:58 +0000 (17:59 +0000)] 
templates: fix typos

- *template*files[ch][rs]: fix typos
- scripts/setup-app-layer: fix typos

4 years agoscripts/setup-app-layer: fix Makefile.am patch
Juliana Fajardini [Thu, 18 Mar 2021 18:23:23 +0000 (18:23 +0000)] 
scripts/setup-app-layer: fix Makefile.am patch

adjust lines for patching /src/Makefile.am, as current generated
Makefile wasn't building Suricata.
Add suggestion to run "./configure" before running "make".
Add --logger and --parser options to examples.

4 years agologging: removed unused logger IDs
Jason Ish [Tue, 16 Mar 2021 21:35:46 +0000 (15:35 -0600)] 
logging: removed unused logger IDs

- pre-json dns logger
- unified2
- pre-json drop logger

4 years agodns: only register a single logger
Jason Ish [Tue, 16 Mar 2021 21:28:01 +0000 (15:28 -0600)] 
dns: only register a single logger

DNS no longer requires a logger to be registered for to-client and
to-server directions. This has not been required with the stateless
design of the Rust DNS parser.

4 years agooutput/tx: add warning to avoid future bugs
Victor Julien [Thu, 1 Apr 2021 12:27:30 +0000 (14:27 +0200)] 
output/tx: add warning to avoid future bugs

4 years agooutput/tx: move eof checks out of logging loop
Victor Julien [Thu, 1 Apr 2021 12:10:24 +0000 (14:10 +0200)] 
output/tx: move eof checks out of logging loop

4 years agoapp-layer: minor code cleanups 6011/head
Victor Julien [Tue, 30 Mar 2021 18:34:53 +0000 (20:34 +0200)] 
app-layer: minor code cleanups

4 years agoapp-layer: remove conditional logic around API calls
Victor Julien [Tue, 30 Mar 2021 15:17:10 +0000 (17:17 +0200)] 
app-layer: remove conditional logic around API calls

Remove logic that suggested some API calls could be conditional,
even though Suricata wouldn't even start up if they weren't
registered.

4 years agoeve/netflow: use generic json context 6006/head
Jason Ish [Fri, 26 Mar 2021 22:22:34 +0000 (16:22 -0600)] 
eve/netflow: use generic json context

4 years agoeve/flow: use generic json context
Jason Ish [Fri, 26 Mar 2021 22:14:00 +0000 (16:14 -0600)] 
eve/flow: use generic json context

4 years agoeve/ftp: use generic json context
Jason Ish [Fri, 26 Mar 2021 21:55:10 +0000 (15:55 -0600)] 
eve/ftp: use generic json context

The FTP logger contained no extra data in its context so the
generic json context can be used.

4 years agoeve: refactor CreateEveHeaderWithTx to include common options
Jason Ish [Fri, 26 Mar 2021 21:51:21 +0000 (15:51 -0600)] 
eve: refactor CreateEveHeaderWithTx to include common options

4 years agoeve cleanup: remove duplicate/redundant code
Jason Ish [Wed, 24 Mar 2021 23:01:18 +0000 (17:01 -0600)] 
eve cleanup: remove duplicate/redundant code

The first change was to have CreateEveHeader add the common options
as this was left out in a few loggers. While update all the loggers
that use CreateEveHeader, remove redundant code, in particular
from loggers that don't need to use their own context but
can use the generic one.

4 years agoeve/mqtt: fix mqtt logging with threaded eve
Jason Ish [Thu, 25 Mar 2021 18:11:01 +0000 (12:11 -0600)] 
eve/mqtt: fix mqtt logging with threaded eve

Mqtt was not setting up a per-thread file context for logging
in threaded mode, leading a crash when used in threaded mode.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4404

4 years agogeneral: Correct typos 6004/head
Jeff Lucovsky [Sun, 28 Feb 2021 19:38:26 +0000 (14:38 -0500)] 
general: Correct typos

4 years agothresholds: Improve validation of threshold.config
Jeff Lucovsky [Sun, 28 Feb 2021 19:33:58 +0000 (14:33 -0500)] 
thresholds: Improve validation of threshold.config

This commit improves the handling of threshold.config. When used with
"-T", a non-zero return code occurs when the file cannot be validated.

To maintain legacy behavior, when "-T" is not used and threshold.config
contains one or more invalid lines, Suricata continues execution.

4 years agoerror: Add code for threshold config validation
Jeff Lucovsky [Sun, 28 Feb 2021 19:32:15 +0000 (14:32 -0500)] 
error: Add code for threshold config validation

This commit adds a new warning code for threshold config file validation
failures.

4 years agoeve/ike: restore common option logging
Eric Leblond [Mon, 22 Mar 2021 21:42:10 +0000 (22:42 +0100)] 
eve/ike: restore common option logging

4 years agosslv2: precise detection pattern with probing parser
Philippe Antoine [Thu, 11 Mar 2021 15:41:11 +0000 (16:41 +0100)] 
sslv2: precise detection pattern with probing parser

4 years agofuzz: adds structure aware target
Philippe Antoine [Wed, 3 Feb 2021 13:26:24 +0000 (14:26 +0100)] 
fuzz: adds structure aware target

so as not to fuzz libpcap
and generate structure aware signatures

4 years agorust: bump bitflags dependency version 6002/head
Philippe Antoine [Sun, 28 Mar 2021 15:53:50 +0000 (17:53 +0200)] 
rust: bump bitflags dependency version

So that lexical-core, needed by nom, and using bitflags
is used with version 0.7.5 instead of version 0.7.0
which fixed the fact that BITS is now a reserved keyword
in nightly version

4 years agokerberos: fix probing parser tag condition 5977/head
Philippe Antoine [Thu, 11 Mar 2021 15:12:36 +0000 (16:12 +0100)] 
kerberos: fix probing parser tag condition

according to the comment

4 years agoinstall: better warning on install-full and don't fail
Jason Ish [Wed, 10 Mar 2021 04:54:43 +0000 (22:54 -0600)] 
install: better warning on install-full and don't fail

If suricata-update is not available on "make install-full", don't
exit 1, instead give the reason why its not installed, but still
succeed the install.

4 years agogithub-ci: add libnet to ubuntu-20-04-cov-sv builder
Victor Julien [Fri, 12 Mar 2021 12:31:08 +0000 (13:31 +0100)] 
github-ci: add libnet to ubuntu-20-04-cov-sv builder

4 years agoeve/drop: use highest priority drop 5976/head
Victor Julien [Fri, 12 Mar 2021 09:22:01 +0000 (10:22 +0100)] 
eve/drop: use highest priority drop

When adding the alert to a drop record make sure the add the highest
priority.

It would until now add all drops from high to low prio, effectively
overwriting the record each time.

Ticket #4397

4 years agodetect/alert: apply pd only actions to flow
Victor Julien [Wed, 10 Mar 2021 12:25:55 +0000 (13:25 +0100)] 
detect/alert: apply pd only actions to flow

Ticket #4394

4 years agodetect/alert: minor code refactor
Victor Julien [Tue, 9 Mar 2021 19:56:14 +0000 (20:56 +0100)] 
detect/alert: minor code refactor

Use a simpler reject check and move logic into util func.

4 years agodetect/iponly: don't check & set flow flags twice
Victor Julien [Tue, 9 Mar 2021 15:25:14 +0000 (16:25 +0100)] 
detect/iponly: don't check & set flow flags twice

Per flow IP-only flags are checked and set by IP-only engine, so
no need to set/check them per alert.

4 years agoeve/ike: gracefully handle renamed output config 5959/head 5961/head
Victor Julien [Fri, 5 Mar 2021 09:55:45 +0000 (10:55 +0100)] 
eve/ike: gracefully handle renamed output config

4 years agoikev1: add documentation for ikev1
frank honza [Mon, 26 Oct 2020 12:18:06 +0000 (13:18 +0100)] 
ikev1: add documentation for ikev1

4 years agoikev1: add metadata to alerts
Sascha Steinbiss [Sun, 3 Jan 2021 22:44:23 +0000 (23:44 +0100)] 
ikev1: add metadata to alerts

4 years agoikev1: add ikev1 parser
Sascha Steinbiss [Sun, 3 Jan 2021 22:42:24 +0000 (23:42 +0100)] 
ikev1: add ikev1 parser

4 years agoikev1: rename ikev2 to common ike
frank honza [Sun, 18 Oct 2020 19:38:06 +0000 (21:38 +0200)] 
ikev1: rename ikev2 to common ike

Renaming was done with shell commands, git mv for moving the files and content like
find -iname '*.c' | xargs sed -i 's/ikev1/ike/g' respecting the different mixes of upper/lower case.

4 years agodetect: added support for protocol-aliases
frank honza [Sun, 18 Oct 2020 20:00:48 +0000 (22:00 +0200)] 
detect: added support for protocol-aliases

4 years agoutil: add function converting u8-array into a hex-String
frank honza [Sun, 18 Oct 2020 19:50:29 +0000 (21:50 +0200)] 
util: add function converting u8-array into a hex-String

4 years agodetect: add comparison-mode LTE/GTE for Detect(U32/u8)Data
frank honza [Sun, 18 Oct 2020 19:46:04 +0000 (21:46 +0200)] 
detect: add comparison-mode LTE/GTE for Detect(U32/u8)Data

4 years agodetect/analyzer: fix mpm display on payload only rules 5958/head
Victor Julien [Thu, 4 Mar 2021 12:40:15 +0000 (13:40 +0100)] 
detect/analyzer: fix mpm display on payload only rules

4 years agodetect: suppress error message for pcre only rules
Victor Julien [Fri, 19 Feb 2021 10:45:00 +0000 (11:45 +0100)] 
detect: suppress error message for pcre only rules

4 years agodetect/analyzer: suggest modern keywords
Victor Julien [Fri, 5 Feb 2021 21:01:26 +0000 (22:01 +0100)] 
detect/analyzer: suggest modern keywords

4 years agodetect/analyzer: fix json output for warnings/notes
Victor Julien [Fri, 5 Feb 2021 20:33:35 +0000 (21:33 +0100)] 
detect/analyzer: fix json output for warnings/notes

4 years agodetect/asn1: minor cleanups
Victor Julien [Sat, 6 Feb 2021 07:10:29 +0000 (08:10 +0100)] 
detect/asn1: minor cleanups

4 years agodetect/http-server-body: clean up test
Victor Julien [Fri, 5 Feb 2021 07:42:37 +0000 (08:42 +0100)] 
detect/http-server-body: clean up test

4 years agodetect/icmp: reject invalid rules for icode/itype 5953/head
Victor Julien [Wed, 3 Mar 2021 13:01:55 +0000 (14:01 +0100)] 
detect/icmp: reject invalid rules for icode/itype

4 years agodetect/prefilter: fix null ptr deref on invalid rule
Victor Julien [Wed, 3 Mar 2021 12:41:26 +0000 (13:41 +0100)] 
detect/prefilter: fix null ptr deref on invalid rule

A bad rule 'icode:<0; prefilter;' would trigger a null ptr deref
in ApplyToU8Hash.

Bug #4375.

4 years agodetect/state: fix reset bug
Victor Julien [Sun, 28 Feb 2021 08:39:16 +0000 (09:39 +0100)] 
detect/state: fix reset bug

Fix issue where after a reset the now empty list elements are not
reused and the values may not be valid for the current detect
engine anymore.

Introduce a 'current' (cur) pointer that points to the store element
currently being filled. This way existing stores will be reused.

If 'cur' is NULL and 'head' is not NULL it means we need to use
'tail' to append a new store.

4 years agodetect/state: test to show reset bug
Victor Julien [Sun, 28 Feb 2021 08:24:35 +0000 (09:24 +0100)] 
detect/state: test to show reset bug

4 years agodetect/state: minor code cleanup
Victor Julien [Sun, 28 Feb 2021 08:21:36 +0000 (09:21 +0100)] 
detect/state: minor code cleanup

4 years agofilestore: fix global counter init in unix socket mode
Jason Ish [Fri, 18 Dec 2020 17:34:30 +0000 (11:34 -0600)] 
filestore: fix global counter init in unix socket mode

Move initialization of filestore global counter to PreRunInit,
so they get registered during program initialization, or as
required in unix-socket mode, initialized for each file run.

Fixes Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4216

4 years agosmb: relax probing parser to handle first NBSS message
Philippe Antoine [Wed, 17 Feb 2021 14:36:12 +0000 (15:36 +0100)] 
smb: relax probing parser to handle first NBSS message

cf dcerpc-udp S-V test :
First message is Message Type: Session request (0x81)
Second message is SMB

4 years agoprotodetect: only run ProbingParserTc if STREAM_TOCLIENT
Philippe Antoine [Wed, 17 Feb 2021 13:54:46 +0000 (14:54 +0100)] 
protodetect: only run ProbingParserTc if STREAM_TOCLIENT

4 years agofuzz: more precise assertion for protocol detection
Philippe Antoine [Tue, 2 Feb 2021 13:44:43 +0000 (14:44 +0100)] 
fuzz: more precise assertion for protocol detection

Only in the cases of stream start is the assertion valable.
Otherwise, it can only be best effort.

4 years agosmb: probing parser for start and midstream
Philippe Antoine [Tue, 2 Feb 2021 12:31:08 +0000 (13:31 +0100)] 
smb: probing parser for start and midstream

The probing parser is more strict at the start of the stream

4 years agosmb: split probing function for code style
Philippe Antoine [Tue, 2 Feb 2021 12:29:14 +0000 (13:29 +0100)] 
smb: split probing function for code style

Introduces rs_smb_probe_tcp_midstream

4 years agodetect: fix overflows in SetupU8Hash
Philippe Antoine [Wed, 17 Feb 2021 16:02:35 +0000 (17:02 +0100)] 
detect: fix overflows in SetupU8Hash

For instance ">255" resulted in overflow

4 years agossl: reset state when breaking out of SSLV3_HANDSHAKE_PROTOCOL
Philippe Antoine [Fri, 18 Dec 2020 21:12:23 +0000 (22:12 +0100)] 
ssl: reset state when breaking out of SSLV3_HANDSHAKE_PROTOCOL

So that we cannot resumt it with corrupted values

4 years agomodbus: stop allocating transactions when flooded
Philippe Antoine [Thu, 17 Dec 2020 20:48:54 +0000 (21:48 +0100)] 
modbus: stop allocating transactions when flooded

cf #4224

4 years agoicmpv6: bail out for icmpv6.hdr keyword if not ICMPv6
Philippe Antoine [Fri, 18 Dec 2020 13:21:16 +0000 (14:21 +0100)] 
icmpv6: bail out for icmpv6.hdr keyword if not ICMPv6

4 years agooutput/http2: Multi-threaded EVE logging support
Jeff Lucovsky [Tue, 8 Dec 2020 13:38:18 +0000 (08:38 -0500)] 
output/http2: Multi-threaded EVE logging support

This commit adds multi-threaded EVE logging support to the HTTP/2
logging path.

4 years agoeve: fix memory leak in metadata
Philippe Antoine [Mon, 7 Dec 2020 11:16:31 +0000 (12:16 +0100)] 
eve: fix memory leak in metadata

Fixes #4205

4 years agodoc: fix ubuntu pkg name for tcmalloc 5935/head
Shivani Bhardwaj [Thu, 25 Feb 2021 05:44:24 +0000 (11:14 +0530)] 
doc: fix ubuntu pkg name for tcmalloc

4 years agodecode: limits the number of decoded layers
Philippe Antoine [Thu, 28 Jan 2021 16:48:48 +0000 (17:48 +0100)] 
decode: limits the number of decoded layers

so as to avoid overrecursion leading to stack exhaustion

4 years agodetect: set HTTP SWF decompress limits 5932/head
Victor Julien [Thu, 25 Feb 2021 21:38:34 +0000 (22:38 +0100)] 
detect: set HTTP SWF decompress limits

4 years agodetect/http.request_body: fix tracking with xforms
Victor Julien [Thu, 25 Feb 2021 21:00:17 +0000 (22:00 +0100)] 
detect/http.request_body: fix tracking with xforms

Fix handling of file progress tracking for regular http.request_body
along with transform combinations.

This is done by implementing the 'base id' logic.

Related tickets: #4361 #4199 #3616

4 years agodetect/file.data: fix mixing transforms (http)
Victor Julien [Thu, 25 Feb 2021 20:36:27 +0000 (21:36 +0100)] 
detect/file.data: fix mixing transforms (http)

Fix handling of file progress tracking for regular file.data along
with transform combinations for the part of the implementation that
uses the HTTP inspection logic.

This is done by implementing the 'base id' logic.

Related tickets: #4361 #4199 #3616

4 years agodetect/file.data: fix mixing transforms (file api)
Victor Julien [Thu, 25 Feb 2021 19:07:41 +0000 (20:07 +0100)] 
detect/file.data: fix mixing transforms (file api)

Fix handling of file progress tracking for regular file.data along
with transform combinations for the part of the implementation that
uses the File API.

This is done by implementing the 'base id' logic.

Related tickets: #4361 #4199 #3616

4 years agodetect: track base id for xform buffers
Victor Julien [Thu, 25 Feb 2021 19:06:40 +0000 (20:06 +0100)] 
detect: track base id for xform buffers

Buffers with transforms are based on the non-transformed "base"
buffer, with a new ID assigned and the transform callbacks added.

This patch stores the id of the original buffer in the new buffer
inspect and prefilter structures. This way the buffers with and
without transforms can share some of the logic are progression
of file and body inspection trackers.

Related tickets: #4361 #4199 #3616

4 years agodetect/analyzer: fix pkt engine display
Victor Julien [Sun, 7 Feb 2021 08:00:49 +0000 (09:00 +0100)] 
detect/analyzer: fix pkt engine display

4 years agoclassification: sync and update
Victor Julien [Wed, 24 Feb 2021 15:30:13 +0000 (16:30 +0100)] 
classification: sync and update

Sync to latest ET open and introduce inappropriate as a classification
to replace something some find inappropriate.

4 years agodcerpc: trigger raw assembly on record completion 5913/head
Shivani Bhardwaj [Tue, 23 Feb 2021 09:55:52 +0000 (15:25 +0530)] 
dcerpc: trigger raw assembly on record completion

4 years agorust/context: add AppLayerParserTriggerRawStreamReassembly
Shivani Bhardwaj [Tue, 23 Feb 2021 08:23:06 +0000 (13:53 +0530)] 
rust/context: add AppLayerParserTriggerRawStreamReassembly

4 years agosmb: andx support 5910/head
Philippe Antoine [Fri, 4 Dec 2020 13:46:39 +0000 (14:46 +0100)] 
smb: andx support

Add AndX support for SMB1. Finishes #3475.

[Updated by Victor Julien to split functions]

4 years agostream/tcp: fix stream side after direction change 5908/head
Ilya Bakhtin [Tue, 28 Jul 2020 14:33:23 +0000 (16:33 +0200)] 
stream/tcp: fix stream side after direction change

4 years agodoc/quickstart: use new test url that works
Jason Ish [Mon, 22 Feb 2021 21:23:52 +0000 (15:23 -0600)] 
doc/quickstart: use new test url that works

Replace http://testmyids.org with http://testmynids.org/uid/index.html,
as testmyids.org now always redirects to https.

4 years agodoc: update installation documentation for CentOS and Fedora
Josh Stroschein [Fri, 18 Dec 2020 18:09:48 +0000 (12:09 -0600)] 
doc: update installation documentation for CentOS and Fedora

4 years agohttp: makes decompression time limit configurable 5899/head
Philippe Antoine [Wed, 17 Feb 2021 08:37:57 +0000 (09:37 +0100)] 
http: makes decompression time limit configurable

4 years agoutil/thash: fix memcap consolidate function 5891/head
Eric Leblond [Thu, 11 Feb 2021 10:01:18 +0000 (11:01 +0100)] 
util/thash: fix memcap consolidate function

The function THashConsolidateMemcap is used to allow to load a
dataset even when the memcap is not set. But the implementation
was in fact resetting the memcap value to the max of memory
usaga after loading and default memcap. As a result, the
function was resetting memcap to the default memcap even if
a huge memcap was set in the dataset definition. In the case
of dataset where we add to the set it was leading to memcap
limit hitting despite the settings of memcap by the user.

This patch udpates the code to set the final memcap value to
the max of memory usage after loading and set memcap.

4 years agostream: TcpStreamCnf.midstream type changed to bool
Ilya Bakhtin [Thu, 18 Feb 2021 20:25:58 +0000 (21:25 +0100)] 
stream: TcpStreamCnf.midstream type changed to bool

4 years agoprotodetect: improve midstream handling
Ilya Bakhtin [Mon, 15 Feb 2021 17:36:46 +0000 (18:36 +0100)] 
protodetect: improve midstream handling

Set "done flag" only if parsers for both directions are not found in a
case of midstream parsers from other direction are tried if nothing is found
for the initial one. "done flag" must be set if nothing is found in both
directions. Otherwise processing of incomplete data is terminated at the very
first try.

4 years agodcerpc/udp: improve detection
Shivani Bhardwaj [Sat, 13 Feb 2021 12:27:42 +0000 (17:57 +0530)] 
dcerpc/udp: improve detection

Lately, Wireguard proto starting w pattern |04 00| is misdetected as
DCERPC/UDP which also starts with the same pattern, add more checks
to make sure that it is the best guess for packet to be dcerpc/udp.

4 years agodcerpc: add probe function
Shivani Bhardwaj [Sat, 20 Feb 2021 06:32:28 +0000 (12:02 +0530)] 
dcerpc: add probe function

4 years agorust/applayer: split EOF flag per direction
Shivani Bhardwaj [Sat, 20 Feb 2021 06:31:20 +0000 (12:01 +0530)] 
rust/applayer: split EOF flag per direction

4 years agodcerpc/udp: remove transmute
Shivani Bhardwaj [Sat, 20 Feb 2021 06:30:17 +0000 (12:00 +0530)] 
dcerpc/udp: remove transmute

The book defines transmute as "This is really, truly, the most horribly unsafe
thing you can do in Rust. The guardrails here are dental floss."
Transmute can result into mind boggling undefined behaviors. Get rid of
it wherever possible.

4 years agoprotodetect: rename direction to flags 5886/head
Philippe Antoine [Tue, 2 Feb 2021 10:12:12 +0000 (11:12 +0100)] 
protodetect: rename direction to flags

And use whole flags in AppLayerProtoDetectPPGetProto

4 years agotcp: remove debug asserts about large windows
Philippe Antoine [Wed, 17 Feb 2021 14:43:17 +0000 (15:43 +0100)] 
tcp: remove debug asserts about large windows

Completes 00d7c9034be7470177c01e8805831c258b016d0e

4 years agodetect/prefilter: fix handling of prefilter as fast_pattern alias
Victor Julien [Sat, 20 Feb 2021 14:53:51 +0000 (15:53 +0100)] 
detect/prefilter: fix handling of prefilter as fast_pattern alias

4 years agodetect: forbids unsupported prefilters
Philippe Antoine [Sun, 7 Feb 2021 20:34:12 +0000 (21:34 +0100)] 
detect: forbids unsupported prefilters

4 years agodetect/fast_pattern: add prefilter test
Victor Julien [Sat, 20 Feb 2021 14:51:50 +0000 (15:51 +0100)] 
detect/fast_pattern: add prefilter test

4 years agofuzz: fix typo in comment
Philippe Antoine [Tue, 2 Feb 2021 10:07:13 +0000 (11:07 +0100)] 
fuzz: fix typo in comment

4 years agohttp2: http.stat_msg keyword now works for HTTP2 5875/head
Philippe Antoine [Thu, 17 Dec 2020 14:57:00 +0000 (15:57 +0100)] 
http2: http.stat_msg keyword now works for HTTP2

4 years agohttp2: http.uri.raw keyword now works for HTTP2
Philippe Antoine [Thu, 17 Dec 2020 13:19:25 +0000 (14:19 +0100)] 
http2: http.uri.raw keyword now works for HTTP2

4 years agohttp2: http.user_agent keyword now works for HTTP2
Philippe Antoine [Thu, 17 Dec 2020 12:26:35 +0000 (13:26 +0100)] 
http2: http.user_agent keyword now works for HTTP2

4 years agohttp2: http.uri keyword now works for HTTP2
Philippe Antoine [Tue, 8 Dec 2020 11:46:24 +0000 (12:46 +0100)] 
http2: http.uri keyword now works for HTTP2

cf #4067

4 years agoprotos: renaming ALPROTO_HTTP* constants
Philippe Antoine [Thu, 17 Dec 2020 11:03:08 +0000 (12:03 +0100)] 
protos: renaming ALPROTO_HTTP* constants

Having now ALPROTO_HTTP1, ALPROTO_HTTP2 and ALPROTO_HTTP

Run with 3 sed commands
git grep ALPROTO_HTTP | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP/ALPROTO_HTTP1/g'
git grep ALPROTO_HTTP12 | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP12/ALPROTO_HTTP2/g'
git grep ALPROTO_HTTP1_ANY | cut -d: -f1 | uniq |
 xargs sed -i -e 's/ALPROTO_HTTP1_ANY/ALPROTO_HTTP/g'

and then running clang-format

4 years agohttp: introduces ALPROTO_HTTP_ANY
Philippe Antoine [Thu, 17 Dec 2020 10:52:42 +0000 (11:52 +0100)] 
http: introduces ALPROTO_HTTP_ANY

For any versions of HTTP, both ALPROTO_HTTP and ALPROTO_HTTP2

4 years agoproto: introduce signature protocol, as extension to flow protocol
Philippe Antoine [Mon, 7 Dec 2020 13:41:00 +0000 (14:41 +0100)] 
proto: introduce signature protocol, as extension to flow protocol

AppProtoEquals function allows to check if a flow protocol
matches a signature protocol

4 years agogithub-ci: test install of library 5866/head
Jason Ish [Thu, 11 Feb 2021 22:34:34 +0000 (16:34 -0600)] 
github-ci: test install of library

Add library install test to Fedora 33 build. In this case the
shared library is disable so the test makes sure it is not
installed.

Also make sure the library and headers are not installed until
explicitly installed.

Add similar to test to an Ubuntu 24.04 build without disable-shared
and check that the shared library is installed.

4 years agoMakefile: break headers and source into 2 vars
Jason Ish [Fri, 5 Feb 2021 15:40:09 +0000 (09:40 -0600)] 
Makefile: break headers and source into 2 vars

Split the headers and source into 2 variables. Headers are
marked noinst so they don't get automatically installed on
"make install". Instead they will be installed by a custom
Makefile target, "make install-headers".

4 years agolibsuricata-config: program to print build flags
Jason Ish [Mon, 8 Feb 2021 22:59:20 +0000 (16:59 -0600)] 
libsuricata-config: program to print build flags

Following the pattern of many other libraries, provide a -config
program to output cflags and libs to properly link an application
against the library.

usage: libsuricata-config [--cflags] [--libs] [--static]

--cflags and --libs can be used infividually or together.

--static will link against the static libraries instead of the
shared library. Note that if the shared library is not available,
the static libraries will be provided even without this option.