Hi,
I made a patch calling register_dissector for CAN (https://code.wireshark.org/review/#/c/12780/). Actually it was quite easy, 30% of the time was needed to make Wireshark build at all, 2% to make and test the patch and the rest to get this gerrit thingy running :D
If/when it gets applied all that is needed to get a reference to the CAN dissector is
original_can_dissector = Dissector.get("can")
However, for the benefit of people just googling it, if the patch is not accepted or you are using a stable version of Wireshark, this is a workaround for Lua:
local WTAP_ENCAP_SOCKETCAN = 125 --from wtap.h wtap_tbl=DissectorTable.get("wtap_encap") original_can_dissector = wtap_tbl:get_dissector(WTAP_ENCAP_SOCKETCAN)
Sebastian |