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

Applayer plugin 5053 v15.1 #12726

Closed

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/4102 with all 6 subtickets

Describe changes:

  • add app-layer plugin example with template protocol
  • document app-layer plugins

#12667 with

  • new commit to check version for all plugins

I think #12724 should come before that PR

And I think we would also want after that, another PR that splits suricata crate in 2 : like suricata-core which has 0 dependencies and can be used by plugins, and the rest of suricata

and use generic logger callback prototype with later cast

and do some other small modifications so that the plugin
has less diff
so that it can be used by plugins

Avoid export by cbindgen as this constant is also defined in C
including the tx parameter to the logger function
@catenacyber catenacyber marked this pull request as draft March 6, 2025 15:02
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 78.72340% with 10 lines in your changes missing coverage. Please review.

Project coverage is 80.79%. Comparing base (6477b31) to head (86bb61b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12726      +/-   ##
==========================================
+ Coverage   80.76%   80.79%   +0.03%     
==========================================
  Files         936      936              
  Lines      259724   260093     +369     
==========================================
+ Hits       209765   210150     +385     
+ Misses      49959    49943      -16     
Flag Coverage Δ
fuzzcorpus 56.97% <78.72%> (+0.09%) ⬆️
livemode 19.37% <4.25%> (-0.05%) ⬇️
pcap 44.26% <40.42%> (+0.11%) ⬆️
suricata-verify 63.68% <77.77%> (+0.05%) ⬆️
unittests 58.09% <27.65%> (-0.07%) ⬇️

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@catenacyber catenacyber force-pushed the applayer-plugin-5053-v15.1 branch from 8c91dcf to 58eaa4e Compare March 6, 2025 15:06
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 25008

--allowlist-type 'SC.*' \
--allowlist-function 'SC.*' \
--allowlist-item 'SC.*' \
Copy link
Member

Choose a reason for hiding this comment

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

This will actually fail on the some versions of bindgen that otherwise will work, I think the bindgen on Ubuntu 22.04 maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding --allowlist-var 'SC.*' then

@catenacyber
Copy link
Contributor Author

Continues in #12733

@catenacyber catenacyber closed this Mar 7, 2025
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