app-layer: track modified/processed txs (backport7 v2)#12592
Closed
catenacyber wants to merge 1 commit intoOISF:main-7.0.xfrom
Closed
app-layer: track modified/processed txs (backport7 v2)#12592catenacyber wants to merge 1 commit intoOISF:main-7.0.xfrom
catenacyber wants to merge 1 commit intoOISF:main-7.0.xfrom
Conversation
To optimize detection, and logging, to avoid going through all the live transactions when only a few were modified. Two boolean fields are added to the tx data: updated_tc and ts The app-layer parsers are now responsible to set these when needed, and the logging and detection uses them to skip transactions that were not updated. There may some more optimization remaining by when we set both updated_tc and updated_ts in functions returning a mutable transaction, by checking if all the callers are called in one direction only (request or response) Ticket: 7087 (cherry picked from commit b02557a)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main-7.0.x #12592 +/- ##
==============================================
+ Coverage 83.25% 83.27% +0.01%
==============================================
Files 922 922
Lines 261201 261304 +103
==============================================
+ Hits 217458 217589 +131
+ Misses 43743 43715 -28
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
ERROR: ERROR: QA failed on SURI_TLPW2_autofp_suri_time. Pipeline 24781 |
|
Information: ERROR: QA failed on SURI_TLPW2_autofp_suri_time.
Pipeline 24783 |
victorjulien
approved these changes
Feb 25, 2025
Member
|
Merged in #12678, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7087
Describe changes:
Not a clean cherry-pick
Conflicts:
rust/src/applayer.rs
rust/src/enip/enip.rs
rust/src/ldap/ldap.rs
src/app-layer-smtp.c
enip.rs and ldap.rs are only in 8
Other conflict fixes while just taking the changes brought by this commit, not the ones which were done nearby in recent work
#12293 without the list of conflicts in the commit message