Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect: set mpm/prefilter during signature parsing #12382

Closed
wants to merge 1 commit into from

Conversation

victorjulien
Copy link
Member

In preparation of flowbit prefilter work that needs this info earlier.

Track potential prefilter sm's to avoid unnecessary looping during setup.

Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 95.58824% with 6 lines in your changes missing coverage. Please review.

Project coverage is 80.49%. Comparing base (05853fb) to head (bd3e65b).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12382      +/-   ##
==========================================
- Coverage   82.46%   80.49%   -1.98%     
==========================================
  Files         914      917       +3     
  Lines      258316   258652     +336     
==========================================
- Hits       213030   208207    -4823     
- Misses      45286    50445    +5159     
Flag Coverage Δ
fuzzcorpus 56.17% <85.36%> (-4.21%) ⬇️
livemode 19.40% <65.85%> (+<0.01%) ⬆️
pcap 44.29% <70.73%> (-0.05%) ⬇️
suricata-verify 63.23% <78.04%> (-0.05%) ⬇️
unittests 58.51% <91.91%> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 651 629 96.62%

Pipeline 24191

@victorjulien
Copy link
Member Author

Just a cleanup, no ticket.

@@ -551,6 +551,9 @@ typedef struct SignatureInitData_ {
bool src_contains_negation;
bool dst_contains_negation;

/** see if any of the sigmatches supports an enabled prefilter */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only used in debug logging ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm seems so ya

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be under #ifdef ? Or used in some other place ? or just removed as a development artifact ?

@catenacyber
Copy link
Contributor

Besides one nit question, lgtm

@victorjulien victorjulien marked this pull request as draft January 15, 2025 05:58
In preparation of flowbit prefilter work that needs this info
earlier.

Track potential prefilter sm's to avoid unnecessary looping during
setup.
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24218

@victorjulien
Copy link
Member Author

The variable is now used.

Rebased in #12418

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.

3 participants