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: ndpi as a plugin - v3 #12410

Closed
wants to merge 5 commits into from
Closed

Conversation

jasonish
Copy link
Member

Rebase of #12120.

Changes:

  • hash transform visibility cleanups: we have an "extern C" with no_mangle with a rather generic name clashing with another C library.
  • add ci job
  • add schema entry so s-v tests

I guess that last bit we be an S-V test, since we do plan on shipping this in our tree.

cardigliano and others added 4 commits January 15, 2025 11:49
- Download and build nDPI
- Enable nDPI during Suricata ./configure
- Test that the plugin was built and installed
The format is left free-form, as its controled by a plugin.
By adding no_mangle to non-pub functions they enter the global name
space and can conflict with other functions. In this case another sha
library used by a plugin.
@jasonish jasonish requested review from jufajardini and a team as code owners January 16, 2025 15:37
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.64%. Comparing base (078c646) to head (47eacf3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12410      +/-   ##
==========================================
+ Coverage   80.63%   80.64%   +0.01%     
==========================================
  Files         917      917              
  Lines      258687   258687              
==========================================
+ Hits       208601   208631      +30     
+ Misses      50086    50056      -30     
Flag Coverage Δ
fuzzcorpus 56.81% <ø> (ø)
livemode 19.39% <ø> (+<0.01%) ⬆️
pcap 44.34% <ø> (+0.07%) ⬆️
suricata-verify 63.28% <ø> (+0.06%) ⬆️
unittests 58.51% <ø> (+<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 24234

@jasonish jasonish marked this pull request as draft January 16, 2025 18:42
@jasonish
Copy link
Member Author

Back to draft, I thought I had the test fixed up.

The eve callback in ndpi requires a flow, so bail earlier if there is
no flow.
@jasonish jasonish closed this Jan 16, 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