Skip to content

Detect count 5044 v3.2 - #14345

Closed
catenacyber wants to merge 4 commits into
OISF:mainfrom
catenacyber:detect-count-5044-v3.2
Closed

Detect count 5044 v3.2#14345
catenacyber wants to merge 4 commits into
OISF:mainfrom
catenacyber:detect-count-5044-v3.2

Conversation

@catenacyber

Copy link
Copy Markdown
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/5044

Describe changes:

  • adds a count option to multi-buffers, behaving like a keyword but syntax is email.received: count <3; instead of email.received; count: <3;
  • adds other modes to multi-buffers like all, all_or_absent, nb`, and precise indexing

SV_BRANCH=OISF/suricata-verify#2634

Draft :

  • Feedback about general design ?

#14279 needed rebase

TODOs :

  • update doc if design is agreed
  • add support for all multi-buf keywords
  • add more tests
  • rustfmt removes one line in mod.rs

Also rename parse_uint_count as parse_multi_count

This allows to prepare multi-buffers using this code
As for multi-integers, multi-buffers can now have the following
arguments
- count
- nb
- precise index
- all

Ticket: 5044
This was referenced Nov 18, 2025
@catenacyber

Copy link
Copy Markdown
Contributor Author

#14346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant