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

ndpi plugin support/v5 - fuzz fix test #12109

Closed
wants to merge 7 commits into from

Conversation

jasonish
Copy link
Member

@jasonish jasonish commented Nov 11, 2024

Rebase of #12093 with fix for fuzz code compile error.

Adds user registerable callbacks for flow initialization, flow
update and flow finish.

Some plugins, such as other DPI libraries like nDPI need a way to hook
into these flow lifecycle events.

Ticket: OISF#7319
Ticket: OISF#7320
For library users and plugins that need to hook into the thread life
cycle, perhaps to initialize some thread storage.
Provide a way for library/plugin users to register a callback that
will be called prior to an EVE record being closed. The callback will
be passed ThreadVars, Packet, and Flow pointers if available, as well
as private user data.
Needed for changes to output-eve.h.
Allows initialization to be done early, so the table is ready for
dynamic registration by plugins which are loaded before signature
setup.
rust-bindings.h was not being installed with "make install-headers",
and its now pulled in by a header used for plugin support, so make
sure its installed.

We first attempt to install the "dist" version if exists, otherwise
install the "gen" one. Also install the "gen" even if the "dist" one
exists, as its going to be newer.
@jasonish jasonish changed the title ndpi plugin support/v5 [draft] ndpi plugin support/v5 - fuzz fix test Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 66.53846% with 87 lines in your changes missing coverage. Please review.

Project coverage is 83.26%. Comparing base (278dc24) to head (bc94519).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12109      +/-   ##
==========================================
+ Coverage   83.23%   83.26%   +0.02%     
==========================================
  Files         906      909       +3     
  Lines      257647   257861     +214     
==========================================
+ Hits       214458   214698     +240     
+ Misses      43189    43163      -26     
Flag Coverage Δ
fuzzcorpus 61.28% <28.57%> (+0.08%) ⬆️
livemode 19.43% <18.45%> (+<0.01%) ⬆️
pcap 44.40% <30.35%> (-0.03%) ⬇️
suricata-verify 62.68% <40.47%> (-0.02%) ⬇️
unittests 59.27% <44.23%> (-0.01%) ⬇️

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 23301

@victorjulien
Copy link
Member

Why is this a draft?

@jasonish
Copy link
Member Author

Why is this a draft?

Test PR to see if GitHub CI passes. Don't have local setup for cifuzz.

@victorjulien
Copy link
Member

Why is this a draft?

Test PR to see if GitHub CI passes. Don't have local setup for cifuzz.

It passed.

@jasonish jasonish marked this pull request as ready for review November 11, 2024 16:48
@jasonish jasonish requested review from victorjulien and a team as code owners November 11, 2024 16:48
@jasonish jasonish changed the title [draft] ndpi plugin support/v5 - fuzz fix test ndpi plugin support/v5 - fuzz fix test Nov 11, 2024
@victorjulien victorjulien added this to the 8.0 milestone Nov 12, 2024
This was referenced Nov 12, 2024
@victorjulien
Copy link
Member

Merged in #12117, thanks!

@jasonish jasonish deleted the ndpi-plugin-support/v5 branch November 14, 2024 08:34
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