Ask Your Question

Revision history [back]

Your dissector function should return the number of bytes you've dissected. This then allows the dissector calling your dissector to call you again with the remaining bytes in the tvbuff.

This isn't explained very well in the Developers Guide Lua API description or the example there. The example dissector on the Lua Wiki page is better.