]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
11 months agooutput-file: rename and document registration function
Jason Ish [Fri, 30 Aug 2024 19:11:30 +0000 (13:11 -0600)] 
output-file: rename and document registration function

Rename OutputRegisterFileLogger to SCOutputRegisterFileLogger, add
function documentation and include in userguide.

Ticket: #7227

11 months agooutput-streaming: rename and document registration
Jason Ish [Fri, 30 Aug 2024 18:54:28 +0000 (12:54 -0600)] 
output-streaming: rename and document registration

Prefix the registration function and types with "SC", and add function
documentation.

Ticket: #7227

11 months agooutput-file: use void *initdata instead of OutputCtx
Jason Ish [Fri, 30 Aug 2024 15:00:59 +0000 (09:00 -0600)] 
output-file: use void *initdata instead of OutputCtx

Avoids leaking a higher level abstraction into a low level logger.

Ticket: #7227

11 months agooutput-filedata: use void *initdata instead of OutputCtx
Jason Ish [Fri, 30 Aug 2024 14:58:58 +0000 (08:58 -0600)] 
output-filedata: use void *initdata instead of OutputCtx

Avoids leaking a higher level abstraction into a low level logger.

Ticket: #7227

11 months agooutput-streaming: use void *initdata instead of OutputCtx
Jason Ish [Fri, 30 Aug 2024 14:56:39 +0000 (08:56 -0600)] 
output-streaming: use void *initdata instead of OutputCtx

Using OutputCtx leaks a higher level abstraction into the low level
logger.

Ticket: #7227

11 months agooutput: remove remaining ThreadExitPrintStats callbacks
Jason Ish [Fri, 30 Aug 2024 14:11:07 +0000 (08:11 -0600)] 
output: remove remaining ThreadExitPrintStats callbacks

Not used in output modules.

Ticket: #7227

11 months agooutput-stats: remove ThreadExitPrintStats callback
Jason Ish [Fri, 30 Aug 2024 13:52:36 +0000 (07:52 -0600)] 
output-stats: remove ThreadExitPrintStats callback

Not used.

Ticket: #7227

11 months agooutput-streaming: remove ThreadExitPrintStats callback
Jason Ish [Fri, 30 Aug 2024 13:50:59 +0000 (07:50 -0600)] 
output-streaming: remove ThreadExitPrintStats callback

Not used.

Ticket: #7227

11 months agooutput-filedata: remove ThreadExitPrintStats callback
Jason Ish [Fri, 30 Aug 2024 13:45:33 +0000 (07:45 -0600)] 
output-filedata: remove ThreadExitPrintStats callback

Not used.

Ticket: #7227

11 months agooutput-file: remove ThreadExitPrintStats callback
Jason Ish [Fri, 30 Aug 2024 13:39:51 +0000 (07:39 -0600)] 
output-file: remove ThreadExitPrintStats callback

Not used.

Ticket: #7227

11 months agooutput-tx: rename and document transaction logger registration
Jason Ish [Thu, 29 Aug 2024 22:55:57 +0000 (16:55 -0600)] 
output-tx: rename and document transaction logger registration

Rename OutputRegisterTxLogger to SCOutputRegisterTxLogger to make it
part of the public API as well as document.

Ticket: #7227

11 months agooutput-tx.h: include tm-threads.h
Jason Ish [Thu, 29 Aug 2024 22:44:33 +0000 (16:44 -0600)] 
output-tx.h: include tm-threads.h

Required to properly resolve the types in the header without depending
on includes coming before it in C files.

Ticket: #7227

11 months agoexamples: add tx logger to custom logger example
Jason Ish [Thu, 29 Aug 2024 22:33:03 +0000 (16:33 -0600)] 
examples: add tx logger to custom logger example

However, its disabled due to issue
https://redmine.openinfosecfoundation.org/issues/7236.

Ticket: #7227

11 months agooutput-tx: remove ThreadExitPrintStats callback
Jason Ish [Thu, 29 Aug 2024 20:49:53 +0000 (14:49 -0600)] 
output-tx: remove ThreadExitPrintStats callback

After removing the exit stats function from log-tlslog, this callback
is no longer used.

Ticket: #7227

11 months agolog-tlslog: remove unneeded includes
Jason Ish [Thu, 29 Aug 2024 20:39:54 +0000 (14:39 -0600)] 
log-tlslog: remove unneeded includes

Ticket: #7227

11 months agolog-tlslog: remove ThreadExitPrintStats callback
Jason Ish [Thu, 29 Aug 2024 20:35:50 +0000 (14:35 -0600)] 
log-tlslog: remove ThreadExitPrintStats callback

Remove the ThreadExitPrintStats callback, this is the only logger that
was actually using it, and this logger is marked for deprecation. This
allows us to remove the callback from the registration signature.

Ticket: #7227

11 months agotlsstore: remove ThreadExitPrintStats callback
Jason Ish [Thu, 29 Aug 2024 20:33:42 +0000 (14:33 -0600)] 
tlsstore: remove ThreadExitPrintStats callback

Remove the callback to print stats on thread exit.  The counter value
was never being used and this helps us get rid of this callback
altogether as their is only one other usage of it.

Ticket: #7227

11 months agooutput-tx: use void * instead of OutputCtx
Jason Ish [Wed, 28 Aug 2024 23:17:50 +0000 (17:17 -0600)] 
output-tx: use void * instead of OutputCtx

Using OutputCtx results in the low level output-tx packet logger being
aware of Suricata's higher level loggers that use OutputCtx, for the
low level logger this is purely opaque data that may not be an
OutputCtx for custom loggers.

Ticket: #7227

11 months agodevguide: more on low level logging
Jason Ish [Tue, 27 Aug 2024 23:02:41 +0000 (17:02 -0600)] 
devguide: more on low level logging

Use the extending/output section to introduce the low level logging
API.

Ticket: #7227

11 months agooutput-flow: rename register function and document
Jason Ish [Tue, 27 Aug 2024 22:41:34 +0000 (16:41 -0600)] 
output-flow: rename register function and document

Rename OutputRegisterFlowLogger to SCOutputRegisterFlowLogger and
document in the header file.

Mark other functions in the header file as part of the internal API.

Ticket: #7227

11 months agooutput-packet: rename register function and document
Jason Ish [Tue, 27 Aug 2024 22:33:58 +0000 (16:33 -0600)] 
output-packet: rename register function and document

Rename OutputRegisterPacketLogger to SCOutputRegisterPacketLogger as
its part of the public API and document its parameters.

Comment on the other functions in the header that they are part of the
internal API.

Ticket: #7227

11 months agopacket-logger: remove ThreadExitPrintStats
Jason Ish [Tue, 27 Aug 2024 22:18:55 +0000 (16:18 -0600)] 
packet-logger: remove ThreadExitPrintStats

The ThreadExitPrintStats callback was never being used, remove.

Ticket: #7227

11 months agoexamples: add custom logging plugin
Jason Ish [Mon, 26 Aug 2024 22:12:16 +0000 (16:12 -0600)] 
examples: add custom logging plugin

Add an example custom logger that hooks into the low level packet and
flow logging callbacks.

Ticket: #7227

11 months agoprofiling: create a LOGGER_USER id
Jason Ish [Wed, 28 Aug 2024 14:55:35 +0000 (08:55 -0600)] 
profiling: create a LOGGER_USER id

Loggers need an ID uniquely identify them for profiling. To help with
loggers registered at runtime (library, plugins), provide a
LOGGER_USER that can be used. It won't provide per-logger details if
they have more than one, but will provide a total for all their
registered loggers.

Ticket: #7227

11 months agooutput-packet.h: include tm-threads.h and decode.h
Jason Ish [Tue, 27 Aug 2024 21:27:15 +0000 (15:27 -0600)] 
output-packet.h: include tm-threads.h and decode.h

This allows the header to be used without including other headers this
one depends on.

Ticket: #7227

11 months agopgsql: don't expose PgsqlTransactionState to C
Jason Ish [Mon, 26 Aug 2024 22:02:05 +0000 (16:02 -0600)] 
pgsql: don't expose PgsqlTransactionState to C

PgsqlTransactionState has a variant named "Init" which is a little too
generic to export to C. Fortunately this method doesn't need to be
exposed to C, instead remove it as it was only called by
rs_pgsql_tx_get_alstate_progress which also doesn't need to be public
or expose to C.

Ticket: #7227

11 months agooutput-packet: use void * instead of OutputCtx * for initdata
Jason Ish [Mon, 26 Aug 2024 21:54:53 +0000 (15:54 -0600)] 
output-packet: use void * instead of OutputCtx * for initdata

The use of OutputCtx as the data type for initdata was leaking Eve
submodule logic into the low level packet logger. Instead use void *,
as the packet logging module is not concerned with the type of data
here.

Also document this initdata parameter.

Ticket: #7227

11 months agooutput-flow.h: include flow.h and decode.h
Jason Ish [Fri, 15 Sep 2023 20:49:11 +0000 (14:49 -0600)] 
output-flow.h: include flow.h and decode.h

A library/plugin user wanting to register a custom flow logger must
include "output-flow.h", however that depends on some other includes.
One train of thought with respect to include files in libraries, is
that they should include all their dependencies on behalf of the
user. To make a custom flow logger just a little easier, include
"flow.h" and "decode.h".

Ticket: #7227

11 months agooutput-flow: remove ThreadExitPrintStats callback
Jason Ish [Mon, 26 Aug 2024 21:48:32 +0000 (15:48 -0600)] 
output-flow: remove ThreadExitPrintStats callback

The callback, ThreadExitPrintStats is not used in the flow loggers.

Ticket: #7227

11 months agooutput-flow: use void * instead of OutputCtx * for initdata
Jason Ish [Mon, 26 Aug 2024 21:45:07 +0000 (15:45 -0600)] 
output-flow: use void * instead of OutputCtx * for initdata

The use of OutputCtx as the data type for initdata was leaking Eve
submodule logic into the low level flow logger. Instead use void *, as
the flow logging module is not concerned with the type of data here.

Also document this initdata parameter.

Ticket: #7227

11 months agooutput-flow: document the name field as for debugging only
Jason Ish [Fri, 15 Sep 2023 18:35:31 +0000 (12:35 -0600)] 
output-flow: document the name field as for debugging only

Ticket: #7227

11 months agooutput-flow: remove unused initdata argument
Jason Ish [Mon, 26 Aug 2024 21:37:42 +0000 (15:37 -0600)] 
output-flow: remove unused initdata argument

The initdata argument to OutputFlowThreadInit was always NULL, remove
it. Internally the ThreadInit functions still get initdata, but this
is the data provided when that logging instance was registered.

Ticket: #7227

11 months agogithub/pr-template: update contribution checks
Juliana Fajardini [Fri, 30 Aug 2024 16:26:31 +0000 (13:26 -0300)] 
github/pr-template: update contribution checks

We have different types of checks, all in a single list.
Adding a title of sorts to each group in the hopes of highlighting
their purposes.

When we add new items to the json schema, many times we don't add their
descriptions, while this would be the perfect time to also do that.

11 months agouserguide: update Security Onion docs reference
Juliana Fajardini [Fri, 23 Aug 2024 18:56:52 +0000 (15:56 -0300)] 
userguide: update Security Onion docs reference

They have updated their docs domain, leading to the link we had
returning a 404.

Also checked the other links. Although some seem to only contain old
traffic, they all still work.

11 months agouserguide: fix spelling of `security_result` EVE field
Sascha Steinbiss [Wed, 14 Aug 2024 08:11:48 +0000 (10:11 +0200)] 
userguide: fix spelling of `security_result` EVE field

This ensures that the correct spelling of the `security_result` EVE
field for RFB (as opposed to `security-result`) is also reflected in the
documentation.

Ticket: #7210

11 months agodoc/file-extraction: fix highlight syntax
Shivani Bhardwaj [Wed, 14 Aug 2024 06:33:28 +0000 (12:03 +0530)] 
doc/file-extraction: fix highlight syntax

11 months agouserguide: expand documentation for rule profiling
Juliana Fajardini [Sat, 6 Jul 2024 20:28:09 +0000 (17:28 -0300)] 
userguide: expand documentation for rule profiling

The page about performance and rule profiling showed the table generated
by rules profiling but didn't inform how to achieve nor find it.

Task #4359

11 months agosyslog: deprecate 11683/head
Jason Ish [Thu, 29 Aug 2024 14:51:49 +0000 (08:51 -0600)] 
syslog: deprecate

The standalone syslog output is now deprecated for Suricata 8. Display
a warning on use and add notes to the userguide.

Ticket: #6544

11 months agotls-log: deprecate
Jason Ish [Thu, 29 Aug 2024 14:51:24 +0000 (08:51 -0600)] 
tls-log: deprecate

tls-log is now deprecated and will be removed in Suricata 9.0. Display
a deprecation notice on use, and add notes to the user guide.

Ticket: #6542

11 months agohttp-log: deprecate
Jason Ish [Thu, 29 Aug 2024 14:31:05 +0000 (08:31 -0600)] 
http-log: deprecate

http-log is now deprecated and will be removed in Suricata
9.0. Display a deprecation notice on use, and add notes to the
userguide.

Issue: #6543

11 months agoarp: profiling logger id must come before LOGGER_SIZE
Jason Ish [Wed, 28 Aug 2024 02:58:09 +0000 (20:58 -0600)] 
arp: profiling logger id must come before LOGGER_SIZE

Also added comment to make this more clear.

11 months agodatasets: test unix socket ipv6 operations
Philippe Antoine [Tue, 27 Aug 2024 13:26:22 +0000 (15:26 +0200)] 
datasets: test unix socket ipv6 operations

Ticket: 6969

11 months agodatasets: fix parsing of ip4 in ip6
Eric Leblond [Fri, 19 Apr 2024 15:07:48 +0000 (17:07 +0200)] 
datasets: fix parsing of ip4 in ip6

The lookup function was not taking into account that we can have
an IPv4 or an IPv6 address as parameters and that this addresses
need to be converted to Suricata internal storage.
By using the already defined dedicated parsing function, we are
fixing the issue.

Issue: #6969

11 months agoprofiling: use correct conditional on packet profiling data dump
Lukas Sismis [Sun, 18 Aug 2024 11:21:19 +0000 (13:21 +0200)] 
profiling: use correct conditional on packet profiling data dump

Ticket: #7218

11 months agopcap-file: limit setvbuf to linux
Victor Julien [Fri, 12 Jul 2024 08:34:42 +0000 (10:34 +0200)] 
pcap-file: limit setvbuf to linux

As it fails to work correctly on FreeBSD and OpenBSD.

On FreeBSD, these are the errors:

Info: pcap: Pcap-file will use 4096 buffer size [PcapFileGlobalInit:source-pcap-file.c:159]
Error: pcap: failed to get first packet timestamp. pcap_next_ex(): -2 [PeekFirstPacketTimestamp:source-pcap-file-helper.c:186]
Warning: pcap: Failed to init pcap file input.pcap, skipping [ReceivePcapFileThreadInit:source-pcap-file.c:299]
Error: pcap: pcap file reader thread failed to initialize [ReceivePcapFileLoop:source-pcap-file.c:185]

11 months agopcap: implement pcap-file-buffer-size option
Victor Julien [Tue, 9 Jul 2024 07:19:58 +0000 (09:19 +0200)] 
pcap: implement pcap-file-buffer-size option

Allows easy specification of buffer size on the commandline.

Ticket: #7155.

11 months agopcap-file: improve setvbuf implementation
Victor Julien [Tue, 9 Jul 2024 07:12:46 +0000 (09:12 +0200)] 
pcap-file: improve setvbuf implementation

Make optional through `pcap-file.buffer-size` config option.

Make sure to check through configure.

Ticket: #7155.

11 months agopcap-file: use larger buffer for reading pcap files
Jason Ish [Wed, 13 Mar 2024 21:50:57 +0000 (15:50 -0600)] 
pcap-file: use larger buffer for reading pcap files

Inspired by a recent Zeek blog post, this could speed up PCAP
processing by a few percent.

Ticket: #7155.

11 months agopacketpool: allow larger max-pending-packets
Victor Julien [Sun, 7 Jul 2024 17:43:37 +0000 (19:43 +0200)] 
packetpool: allow larger max-pending-packets

Original limit was due to a specific data structure.

11 months agorust: compatibility with cbindgen 0.27 11622/head
Philippe Antoine [Mon, 12 Aug 2024 12:55:22 +0000 (14:55 +0200)] 
rust: compatibility with cbindgen 0.27

Ticket: 7206

Cbindgen 0.27 now handles extern blocks as extern "C" blocks.
The way to differentiate them is to use a special comment
before the block.

11 months agorust/ldap: handle GAPs 11616/head
Giuseppe Longo [Tue, 6 Aug 2024 18:39:46 +0000 (20:39 +0200)] 
rust/ldap: handle GAPs

Following the same logic as for PGSQL, if there is a gap in an LDAP request or
response, the parser tries to sync up again by checking if the message can be
parsed and effectively parses it on the next call.

Ticket #7176

11 months agorust/ldap: add pdu frames
Giuseppe Longo [Thu, 18 Jul 2024 14:53:13 +0000 (16:53 +0200)] 
rust/ldap: add pdu frames

This adds a pdu frame for both request and response, and removes invalid
returns in SCLdapParseRequest and SCLdapParseResponse.

Ticket #7202

11 months agorust/ldap: enable parser for udp
Giuseppe Longo [Thu, 18 Jul 2024 14:00:59 +0000 (16:00 +0200)] 
rust/ldap: enable parser for udp

This introduces a new parser registration function for LDAP/UDP, and update
ldap configuration in order to be able to enable/disable a single parser
independently (such as dns).
Also, GAPs are accepted only for TCP parser and not for UDP.

Ticket #7203

11 months agouserguide: clarify flow:stateless explanation
Juliana Fajardini [Mon, 29 Jul 2024 19:55:30 +0000 (16:55 -0300)] 
userguide: clarify flow:stateless explanation

While not incorrect, the previous wording made the sentence almost
paradoxical. While at it, also highlight a side effect that might not be
so clear to users.

Related to
Bug #6976

11 months agorfb: move app-layer registration code to rust
Philippe Antoine [Wed, 17 Jul 2024 12:50:51 +0000 (14:50 +0200)] 
rfb: move app-layer registration code to rust

Ticket: 7178

11 months agodetect/rfb: move keywords to rust
Philippe Antoine [Wed, 17 Jul 2024 12:31:53 +0000 (14:31 +0200)] 
detect/rfb: move keywords to rust

Ticket: 7178

On the way, convert rfb.secresult to a generic integer with enumeration
cf ticket 6723

11 months agossh/frames: avoid unsigned integer overflow 11608/head
Philippe Antoine [Fri, 2 Aug 2024 08:42:56 +0000 (10:42 +0200)] 
ssh/frames: avoid unsigned integer overflow

Fixes: 0b2ed97f3678 ("ssh: frames support")
11 months agogithub-actions: bump ossf/scorecard-action from 2.3.3 to 2.4.0
dependabot[bot] [Thu, 1 Aug 2024 19:10:21 +0000 (19:10 +0000)] 
github-actions: bump ossf/scorecard-action from 2.3.3 to 2.4.0

Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/dc50aa9510b46c811795eb24b2f1ba02a914e534...62b2cac7ed8198b15735ed49ab1e5cf35480ba46)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
11 months agogithub-actions: bump github/codeql-action from 3.25.11 to 3.25.15
dependabot[bot] [Thu, 1 Aug 2024 19:10:18 +0000 (19:10 +0000)] 
github-actions: bump github/codeql-action from 3.25.11 to 3.25.15

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.11 to 3.25.15.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.25.11...v3.25.15)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
12 months agodetect: make events prefilterable 11607/head
Philippe Antoine [Thu, 13 Jun 2024 19:52:09 +0000 (21:52 +0200)] 
detect: make events prefilterable

Ticket: 6728

12 months agodetect: minor optimization for tx
Philippe Antoine [Tue, 4 Jun 2024 06:56:53 +0000 (08:56 +0200)] 
detect: minor optimization for tx

do not bother to clean the buffers, if we did not run detection
for this transaction.

12 months agodetect/tx: avoid a call to memset
Philippe Antoine [Tue, 4 Jun 2024 06:55:54 +0000 (08:55 +0200)] 
detect/tx: avoid a call to memset

just initialize the small struct to zero

12 months agodoc/userguide: document logging changes from 6 to 7
Victor Julien [Fri, 26 Jul 2024 08:05:29 +0000 (10:05 +0200)] 
doc/userguide: document logging changes from 6 to 7

Minor other logging related improvements like clarifying language and
improving formatting for pdf output.

12 months agorust/ike: fix collapsible_match clippy warning 11595/head
Philippe Antoine [Wed, 31 Jul 2024 12:15:14 +0000 (14:15 +0200)] 
rust/ike: fix collapsible_match clippy warning

warning: this `match` can be collapsed into the outer `match`
help: the outer pattern can be modified to include the inner pattern

12 months agorust: fix byte_char_slices clippy warnings
Philippe Antoine [Wed, 31 Jul 2024 12:10:17 +0000 (14:10 +0200)] 
rust: fix byte_char_slices clippy warnings

warning: can be more succinctly written as a byte str
   --> src/mime/smtp.rs:762:37
    |
762 |     mime_smtp_find_url_strings(ctx, &[b'\n']);
    |                                     ^^^^^^^^ help: try: `b"\n"`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#byte_char_slices
    = note: `#[warn(clippy::byte_char_slices)]` on by default

12 months agofuzz: make confyaml.c an explicit source
Philippe Antoine [Mon, 29 Jul 2024 14:10:11 +0000 (16:10 +0200)] 
fuzz: make confyaml.c an explicit source

Ticket: 7181

Allows confyaml.c to be in the release archive

12 months agosource: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Mon, 29 Jul 2024 19:57:01 +0000 (21:57 +0200)] 
source: fix -Wshorten-64-to-32 warnings

Ticket: #6186

12 months agolog: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Mon, 29 Jul 2024 19:50:36 +0000 (21:50 +0200)] 
log: fix -Wshorten-64-to-32 warnings

Ticket: #6186

12 months agooutput/tx: use dynamic number of app-layer protos
Philippe Antoine [Thu, 4 Jul 2024 13:11:53 +0000 (15:11 +0200)] 
output/tx: use dynamic number of app-layer protos

Ticket: 5053

12 months agooutput: use dynamic number of app-layer protos
Philippe Antoine [Thu, 4 Jul 2024 13:31:18 +0000 (15:31 +0200)] 
output: use dynamic number of app-layer protos

Ticket: 5053

12 months agorunmodes: use dynamic number of app-layer protos
Philippe Antoine [Thu, 4 Jul 2024 13:07:01 +0000 (15:07 +0200)] 
runmodes: use dynamic number of app-layer protos

Ticket: 5053

12 months agoframes: remove unneeded comments
Philippe Antoine [Tue, 9 Jul 2024 08:28:24 +0000 (10:28 +0200)] 
frames: remove unneeded comments

Used by documentation with the SIP frames only

12 months agossh: avoid panic in packet path
Philippe Antoine [Thu, 4 Jul 2024 07:21:29 +0000 (09:21 +0200)] 
ssh: avoid panic in packet path

use debug_validate_bug_on instead

12 months agodetect: run frames on pseudo flush packets
Philippe Antoine [Thu, 20 Jun 2024 20:43:57 +0000 (22:43 +0200)] 
detect: run frames on pseudo flush packets

for SSH packets that mark the end of plaintext

12 months agossh: frames support
Philippe Antoine [Thu, 20 Jun 2024 15:10:24 +0000 (17:10 +0200)] 
ssh: frames support

Ticket: 5734

Adds frames for SSH records, that come after banner, and before
the data is encrypted.
These records may contain cipher lists for instance.

12 months agorust: bump time to most recent 11571/head
Victor Julien [Sat, 27 Jul 2024 19:17:11 +0000 (21:17 +0200)] 
rust: bump time to most recent

Fixes build on rustc 1.80.

Bumps the MSRV to 1.67.1.

Bug: #7130.

12 months agorust: set MSRV to 1.67.1
Victor Julien [Sat, 27 Jul 2024 20:33:12 +0000 (22:33 +0200)] 
rust: set MSRV to 1.67.1

This is needed for updating the ``time`` crate.

12 months agogithub-actions: switch dist builders to ubuntu 22.04
Victor Julien [Sun, 28 Jul 2024 05:26:36 +0000 (07:26 +0200)] 
github-actions: switch dist builders to ubuntu 22.04

Part of bumping MSRV.

22.04 is the first Ubuntu release to ship a new enough Sphinx.

12 months agogithub-actions: update for MSRV 1.67.1
Victor Julien [Sat, 27 Jul 2024 19:32:40 +0000 (21:32 +0200)] 
github-actions: update for MSRV 1.67.1

12 months agorust: address clippy errors
Victor Julien [Sat, 27 Jul 2024 20:06:44 +0000 (22:06 +0200)] 
rust: address clippy errors

12 months agossh/hassh: fix clippy warning
Victor Julien [Sat, 27 Jul 2024 19:47:20 +0000 (21:47 +0200)] 
ssh/hassh: fix clippy warning

12 months agoeve/stats: add description for flow stats
Shivani Bhardwaj [Fri, 19 Jul 2024 11:59:16 +0000 (17:29 +0530)] 
eve/stats: add description for flow stats

Ticket 6434

12 months agoldap: reset tx_index_completed on tx removal
Philippe Antoine [Sat, 20 Jul 2024 12:44:45 +0000 (14:44 +0200)] 
ldap: reset tx_index_completed on tx removal

So, that this index does not overflow

12 months agodoh2: log like dns v3 11536/head
Philippe Antoine [Tue, 9 Jul 2024 21:33:27 +0000 (23:33 +0200)] 
doh2: log like dns v3

12 months agodoh: move fields into dedicated Optional struct
Philippe Antoine [Tue, 25 Jun 2024 11:29:53 +0000 (13:29 +0200)] 
doh: move fields into dedicated Optional struct

So as to consume less memory for HTTP2Transaction

12 months agodoh2: handle dns message in POST requests
Philippe Antoine [Thu, 28 Mar 2024 15:55:10 +0000 (16:55 +0100)] 
doh2: handle dns message in POST requests

Ticket: 5773

Handles both directions the same way for data if content type is
application/dns-message

12 months agoutil/profiling: remove assertion
Philippe Antoine [Fri, 5 Jan 2024 12:59:54 +0000 (13:59 +0100)] 
util/profiling: remove assertion

Now a flow alproto can be changed by a call to AppLayerParserParse
when HTTP2 forces the flow to turn into DOH2.

12 months agodoh: make dns and http keywords for doh2
Philippe Antoine [Tue, 12 Dec 2023 21:47:01 +0000 (22:47 +0100)] 
doh: make dns and http keywords for doh2

Ticket: 5773

12 months agodoh: implement dns over http2 app-proto
Philippe Antoine [Tue, 12 Dec 2023 13:58:02 +0000 (14:58 +0100)] 
doh: implement dns over http2 app-proto

Ticket: 5773

12 months agohttp2: log dns if DoH is recognized
Philippe Antoine [Tue, 12 Dec 2023 13:33:08 +0000 (14:33 +0100)] 
http2: log dns if DoH is recognized

Ticket: 5773

12 months agohttp2: rustfmt
Philippe Antoine [Tue, 12 Dec 2023 13:32:26 +0000 (14:32 +0100)] 
http2: rustfmt

12 months agodns: prepare for dns over http2 support
Philippe Antoine [Tue, 12 Dec 2023 13:25:37 +0000 (14:25 +0100)] 
dns: prepare for dns over http2 support

by making tx parsing and creation more easily available,
without needing a dns state.

Dns event NotResponse is now set on the right tx, and not the one
before.

Also debug log for Z-flag on request says "request" instead of
"response"

Also rustfmt dns.rs

12 months agobuild: Wimplicit-int-float-conversion checked with --enable-warnings 11524/head
Philippe Antoine [Wed, 17 Jul 2024 09:26:46 +0000 (11:26 +0200)] 
build: Wimplicit-int-float-conversion checked with --enable-warnings

When configure is used with --enable-warnings, we try to add most
warning flags that should pass.
This commits adds the warning Wimplicit-int-float-conversion

12 months agorunmodes: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Wed, 17 Jul 2024 09:22:32 +0000 (11:22 +0200)] 
runmodes: fix -Wshorten-64-to-32 warnings

Ticket: #6186

12 months agodefrag: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Wed, 17 Jul 2024 09:11:04 +0000 (11:11 +0200)] 
defrag: fix -Wshorten-64-to-32 warnings

Ticket: #6186

12 months agodatasets: fix -Wshorten-64-to-32 warnings
Philippe Antoine [Wed, 17 Jul 2024 09:02:50 +0000 (11:02 +0200)] 
datasets: fix -Wshorten-64-to-32 warnings

Ticket: #6186

12 months agorust/ldap: add ldap-parser to Cargo.lock.in 11515/head
Victor Julien [Wed, 17 Jul 2024 07:18:56 +0000 (09:18 +0200)] 
rust/ldap: add ldap-parser to Cargo.lock.in

12 months agodoc: add ldap protocol
Giuseppe Longo [Fri, 21 Jun 2024 12:42:43 +0000 (14:42 +0200)] 
doc: add ldap protocol

12 months agorust/ldap: implement logger
Giuseppe Longo [Wed, 10 Apr 2024 12:02:50 +0000 (14:02 +0200)] 
rust/ldap: implement logger

12 months agorust/ldap: implement app-layer
Giuseppe Longo [Wed, 10 Apr 2024 12:01:55 +0000 (14:01 +0200)] 
rust/ldap: implement app-layer