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

Draft: Dcerpc incomplete 5699/v13 stats test #12227

Closed

Conversation

inashivb
Copy link
Member

@inashivb inashivb commented Dec 5, 2024

Just to check if the stats difference in #12219 is because of more and bigger dcerpc txs

to make it available for logging.
Instead of own internal mechanism of buffering in case of fragmented
data, use AppLayerResult::incomplete API to let the AppLayer Parser take
care of it. This makes the memory use more efficient.
Remove any unneeded variables and code with the introduction of this
API.

Ticket 5699
With the introduction of AppLayerResult::incomplete API, fragmented data
is no longer handled fully in the dcerpc code. Given that these code
paths are already covered by the following s-v tests, these tests can now be
safely removed.
- dce-gap-handling
- dcerpc-dce-iface-*

Ticket 5699
- remove unneeded variables
- remove unnecessary tracking of bytes in state
- modify calculations as indicated by failing tests
as it is now covered by the suricata-verify test
dcerpc-request-http-response.
@inashivb inashivb marked this pull request as ready for review December 6, 2024 05:04
@inashivb inashivb changed the title Dcerpc incomplete 5699/v13 stats test Draft: Dcerpc incomplete 5699/v13 stats test Dec 6, 2024
@suricata-qa
Copy link

Information:

ERROR: QA failed on SURI_TLPR1_alerts_cmp.

field baseline test %
SURI_TLPR1_stats_chk
.app_layer.flow.dcerpc_tcp 40 108 270.0%

Pipeline 23715

@inashivb
Copy link
Member Author

inashivb commented Dec 7, 2024

The commit to accept >1MB input data isn't responsible for the difference in stats afterall.

@inashivb inashivb closed this Dec 7, 2024
@inashivb inashivb deleted the dcerpc-incomplete-5699/v13-stats-test branch December 7, 2024 03:44
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.

2 participants