![]() | 1 | initial version |
Lua dissectors do not have support for an arbitrary data parameter like in C: https://gitlab.com/wireshark/wireshark/-/issues/15931
https://gitlab.com/wireshark/wireshark/-/issues/16232
However, if you have added your dissector to a uint dissector table and it was called by that table matching a certain value, then the value should be in pinfo.match_uint
https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Pinfo.html
That should work with can.id
which is a 32-bit unsigned integer table.