-
Notifications
You must be signed in to change notification settings - Fork 907
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
Conversation
40925b3
to
52ac0b7
Compare
52ac0b7
to
08d83bb
Compare
08d83bb
to
bcae7fb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -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 */ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
See: b08c787