How to use two lua dissectors together ?

asked 2018-01-17 13:42:08 +0000

bubus gravatar image

Hi all,

I already use a LUA dissector file which works nicely and which is located on the wireshark plugin folder. It is used to update the wireshark display for a peticular format for the FMTP protocol.

Now, I have a second format to display (also FMTP) and both have to work at the same time. So, I did a second LUA file based on the first one.

But when I have my two LUA files on my wireshark plugins folder, only one of them seem to be recognized. They both work nice individually (one LUA file at a time in plugins folder) but don't work together (the two files in plugins folder).

How could I make them work together please ?

Thanks

edit retag flag offensive close merge delete

Comments

That sounds strange. I use several Lua plugins and all of them tolerate each other nicely, except cases where two of them handle the same payload and I have to choose which one will be active because the payload cannot be identified using heuristic so that only the corresponding Lua dissector would handle it and the other one would ignore it. But as these two mutually exclusive payload types haven't occurred in the same capture so far, it is enough to use a checkbox in protocol properties to activate the necessary one of the two.

The easiest way to make two dissectors, each handling a different variant of the same protocol, work together is to chain them in terms that one of them registers to the proper dissection table and calls the other one if it encounters a tvb contents which it does not like.

Another option is to ...(more)

sindy gravatar imagesindy ( 2018-01-17 16:20:04 +0000 )edit