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

next/648/20241128/v1 #12174

Merged
merged 14 commits into from
Nov 28, 2024
Merged

Conversation

victorjulien
Copy link
Member

victorjulien and others added 14 commits November 28, 2024 14:59
Implement a more compact set of trees specifically for IPv4
and IPv6 addresses. This allows for more compact data structures
and fewer memory allocations.

Based on the existing radix tree implementation.
Splits the unified tree into a ipv4 specific and ipv6 specific tree.
Splits the unified tree into a ipv4 specific and ipv6 specific tree.
Splits the unified tree into a ipv4 specific and ipv6 specific tree.
Splits the unified tree into a ipv4 specific and ipv6 specific tree.
Use a more compact ipv4 specific structure.
Use a more compact ipv6 specific structure.
Rename types enum to reflect it is not using a radix tree anymore.
Move repeated pattern into helper function.
- DetectEngineInspectBufferHttpHeader is only used with ALPROTO_HTTP1
- engine->progress should be HTP_REQUEST_HEADERS or HTP_RESPONSE_HEADERS based on the direction
Ticket: 2224

It takes an argument to match only if the buffer is absent,
or it can still match if the buffer is present, but we test
the absence of some content.

For multi buffers, absent matches if there are 0 buffers.

For file keywords, absent matches if there is no file.
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 34.01326% with 1294 lines in your changes missing coverage. Please review.

Project coverage is 49.75%. Comparing base (bd7d38e) to head (4ec90bd).
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12174      +/-   ##
==========================================
- Coverage   49.81%   49.75%   -0.06%     
==========================================
  Files         909      912       +3     
  Lines      257904   257055     -849     
==========================================
- Hits       128467   127895     -572     
+ Misses     129437   129160     -277     
Flag Coverage Δ
fuzzcorpus 60.98% <49.85%> (+0.03%) ⬆️
livemode 19.41% <14.96%> (-0.02%) ⬇️
pcap ?
suricata-verify 62.71% <57.24%> (-0.04%) ⬇️
unittests 9.01% <0.05%> (+0.02%) ⬆️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23593

Copy link
Member

@jasonish jasonish left a comment

Choose a reason for hiding this comment

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

Looks like a complete clean merge of mentioned PRs.

@victorjulien victorjulien merged commit 4ec90bd into OISF:master Nov 28, 2024
57 of 61 checks passed
@victorjulien victorjulien deleted the next/648/20241128/v1 branch November 28, 2024 20:27
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.

4 participants