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

Keep separating public and private API #2157

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

IvanNardi
Copy link
Collaborator

See: b08c787

@IvanNardi IvanNardi marked this pull request as draft November 18, 2023 19:12
@IvanNardi IvanNardi force-pushed the more-private branch 3 times, most recently from 40925b3 to 52ac0b7 Compare November 21, 2023 16:01
@IvanNardi IvanNardi marked this pull request as ready for review November 27, 2023 17:09
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -2164,6 +2152,29 @@ extern "C" {
*/
void *ndpi_get_user_data(struct ndpi_detection_module_struct *ndpi_str);

/* ******************************* */

/* Can't call libc functions from kernel space, define some stub instead */
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just out of curiosity: Running nDPI in kernel space is officially supported?

Copy link
Collaborator Author

@IvanNardi IvanNardi Nov 29, 2023

Choose a reason for hiding this comment

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

That line has been simply copied around...
I don't think that nDPI is "officially" supported in kernel-space, but the original OpenDPI was.
And, more important, there is at least one active fork https://github.com/vel21ripn/nDPI (by @vel21ripn) which, AFAIK, works in kernel-space. Since that fork is maintained and quite in sync with upstream, I think that there are no huge issues in upstream code preventing nDPI from working in kernel-mode. But I never investigate it...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could add a simple kernel module to examples/ and the CI so we know at least if nDPI is able to build in such environments.

Copy link
Collaborator

@utoni utoni left a comment

Choose a reason for hiding this comment

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

Good job!

@IvanNardi IvanNardi merged commit 3b35cb3 into ntop:dev Nov 29, 2023
32 of 33 checks passed
@IvanNardi IvanNardi deleted the more-private branch November 29, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants