-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wireshark: revise registering and unregistering taps (#144)
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.
- Loading branch information
1 parent
655d373
commit 977da74
Showing
1 changed file
with
75 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters