chore: upgrade wireshark support from 4.0 to 4.4 #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It looks like the developers of Wireshark decided to deprecate the
tvb_get_guintX
andtvb_get_gintX
-methods (and more) in Wireshark 4.4, which is what I run on my setup. This aims to make the crate compatible with Wireshark 4.4, though I'm uncertain how compatible it is with older Wireshark versions.I have tested so that it works on Wireshark 4.4 but I have not tested on earlier versions. I also did a very simple change and didn't regenerate the bindings, just some
sed
-magic to change the functions. There may be other functions deprecated that will be unsupported.The reason is simply that when I ran a compiled dissector that used
u32
s, e.g. as alen_field
for aVec<u8>
, it couldn't find said function due to linking to another version.The functions are still visible in the Wireshark source, but I imagine the inlining makes them disappear when it's compiled so they allow the old interface until they can remove it in a future version.
I would assume the changes to the
*.stderr
-files are due to me running Rust nightly or being generated with at least a somewhat newer version than when they were created.tvb_get_guintX
-supporttvb_get_gintX
-support