I want to create an EtherCAT subdissector in Lua, to dissect the payload of the EtherCAT datagrams. Consulting the WireShark documentation didn't help me out, I know how to build a custom (chain/post-) dissector in Lua but not how to dissect data of an existing protocol.
Post- or Chain dissectors allow me to dissect the data outside of the existing protocol, so my tree items are listed below the EtherCAT dataframes instead of expanding the ecat protocol.
In other words, I can do this:
But I want to do something like this:
On WireShark EtherCAT protocol they recommend using the
Any ideas or tips on how to access and dissect
Best regards, Gerald
asked 17 Sep '13, 19:31
edited 19 Sep '13, 23:39
registering heuristic dissectors is not implemented for Lua, that's the reason you cannot do it.
Unless somebody (you or a Wireshark developer) implements that feature, your only option is to write the sub-dissector in C.
You may try to use a post dissector. However I'm not sure if that will work with your problem. It depends on your requirements. Maybe you just try it.
answered 20 Sep '13, 05:09
Kurt Knochner ♦