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

Wireshark: revise registering and unregistering taps #144

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

Boolean263
Copy link
Contributor

Refactor how taps are specified, to reduce copy-paste boilerplate.

Check for success when registering each tap, log failures. (For an example of how this is helpful, this will show that the name of the TLS tap is no longer "tls" as of the upcoming Wireshark 4.4.)

init_globals() gets called every time a file is loaded or a preference is changed, so add code to cleanup_globals() to unregister any taps registered in init_globals(). Avoids leaking unbounded tap registrations.

Avoid registering taps entirely if the JA4 post-dissector has been disabled, to improve performance.

Refactor how taps are specified, to reduce copy-paste boilerplate.

Check for success when registering each tap, log failures.
(For an example of how this is helpful, this will show that the name of
the TLS tap is no longer "tls" as of the upcoming Wireshark 4.4.)

`init_globals()` gets called every time a file is loaded or a preference
is changed, so add code to `cleanup_globals()` to unregister any taps
registered in `init_globals()`. Avoids leaking unbounded tap
registrations.

Avoid registering taps entirely if the JA4 post-dissector has been
disabled, to improve performance.
Copy link
Collaborator

@noeltimothy noeltimothy left a comment

Choose a reason for hiding this comment

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

Yes this is good to go.

@igr001-galactica igr001-galactica merged commit 977da74 into FoxIO-LLC:main Aug 21, 2024
4 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.

3 participants