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

Add realtime protocol output to ndpiReader. #2197

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

utoni
Copy link
Collaborator

@utoni utoni commented Dec 5, 2023

This is basically a copy'n'pasta from #2059 with some small changes.
Not sure if we want to keep the "realtime protocol output" - behavior.
But at least the flow callback might be coming handy in the future.
I've stumbled on that "I wanna output something from the flow struct, but the memory is already free'd" - issue before and this is a nice workaround.

@utoni utoni force-pushed the add/output-realtime-protocols branch 3 times, most recently from b51209d to 6ae320a Compare December 5, 2023 09:57
@utoni utoni force-pushed the add/output-realtime-protocols branch 3 times, most recently from bcc95cd to 709e460 Compare December 13, 2023 23:19
@IvanNardi
Copy link
Collaborator

The feature is interesting and it might be useful, but I think it should better if it is disabled by default and the user can enable it via a ndpiReader flag/parameter

 * support for using a new flow callback invoked before the flow memory is free'd
 * minor fixes

Signed-off-by: Toni Uhlig <[email protected]>
@utoni utoni force-pushed the add/output-realtime-protocols branch from f894326 to 2e81729 Compare January 4, 2024 14:44
Copy link

sonarcloud bot commented Jan 4, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@utoni utoni requested a review from IvanNardi January 4, 2024 14:54
Copy link
Collaborator

@IvanNardi IvanNardi left a comment

Choose a reason for hiding this comment

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

We can add (now or later) a new test configuration (in tests/cfgs) with one pcap and the this new feature enabled

@utoni
Copy link
Collaborator Author

utoni commented Jan 8, 2024

I'll try to do that in a follow-up. :)

@utoni utoni merged commit 6c3d162 into ntop:dev Jan 8, 2024
33 checks passed
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