Closed rysto32 closed 2 months ago
We believe Wireshark introduced some error in the latest version 4.4 and reported this to them:
https://gitlab.com/wireshark/wireshark/-/issues/20035
We are waiting to see if its some internal check (the error looks like a path issue) or if we need to update and regenerate.
Hello, thanks for reporting this. We will leave this issue open until its resolved.
In the meantime, version 4.2.7 still works:
Hi. The underlying issue is that Wireshark now uses Lua require
to load dissector modules instead of a hacky way that read in the file. This is better in the sense that files don't get loaded more than once and get placed in the table of already loaded modules, but Lua in general does not like files with extra periods in them. It assumes that a period in the name is used for a directory hierarchy, similar to imports in Python. The default package.searchpath
function replaces periods with directory separators:
https://www.lua.org/manual/5.4/manual.html#pdf-require
The recommended solution for Lua in general is not to have extra dots in the filename; for example, renaming your dissector files like Cme_Futures_Mdp3_Sbe_v1_13_Script_Dissector.lua
would work. It might be possible to write a custom package searcher and add it to the table so that Lua uses that as a fallback (checking the filename without period substitution if the other attempts fail), though I don't know how long that might take for someone to get around to writing.
https://stackoverflow.com/questions/59592169/require-module-from-folder-with-dot-in-name https://stackoverflow.com/questions/75490124/how-to-require-a-file-with-a-dot-in-the-name
Thanks, I agree that we should follow convention. Repository regenerated with your suggestions. Thanks for your efforts (and quick response).
I have both the MDP v9 and v13 dissectors installed in my Wireshark plugins directory, and no other plugins. As of the recent Wireshark 4.4.0 release, I receive the following error when starting Wireshark (even if I start it with no capture fire loaded):
Unsurprisingly, if I load a capture file containing MDP 3.0 v13 traffic, Wireshark is not able to dissect the packets anymore.