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 v13 #12635

Closed
wants to merge 7 commits into from

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

#12536 with needed rebase after bindgen and suricata-sys introduction by @jasonish :-)

I think #12599 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

@catenacyber catenacyber marked this pull request as draft February 19, 2025 21:35
@suricata-qa
Copy link

ERROR:

ERROR: QA failed on build_asan.

Pipeline 24830

@catenacyber catenacyber force-pushed the applayer-plugin-5053-v13 branch from 6df1952 to 1a62b6a Compare February 21, 2025 10:43
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.80%. Comparing base (3bc2a14) to head (c1cd73f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12635      +/-   ##
==========================================
+ Coverage   80.77%   80.80%   +0.02%     
==========================================
  Files         932      932              
  Lines      259517   259884     +367     
==========================================
+ Hits       209629   210002     +373     
+ Misses      49888    49882       -6     
Flag Coverage Δ
fuzzcorpus 57.09% <90.24%> (+0.10%) ⬆️
livemode 19.32% <4.87%> (-0.06%) ⬇️
pcap 44.25% <46.34%> (+0.09%) ⬆️
suricata-verify 63.56% <89.74%> (+0.05%) ⬆️
unittests 58.26% <31.70%> (-0.06%) ⬇️

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

@catenacyber
Copy link
Contributor Author

red CI before merge of #12647

to be rebased after

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24864

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
Ticket: 7151
Ticket: 7152
Ticket: 7154
Ticket: 7149
Ticket: 7150
Ticket: 7153
@catenacyber catenacyber force-pushed the applayer-plugin-5053-v13 branch from 1a62b6a to c1cd73f Compare February 23, 2025 20:19
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24874

@catenacyber
Copy link
Contributor Author

Next in #12667

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