Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get index of DissectorTable from a subdissector

I'm developing a custom Lua dissector that uses a custom DissectorTable against a payload type information contained in the header to dissect the payload data. It appears however that payload types can be grouped and a range of payload types can be dissected the same, with small differences. When adding a subdissector to a tcp.port, I can always check the pinfo.srcport or pinfo.dstport, but how could a subdissector find out or be informed about the custom value that was used to find it in the dissector table? Is there a way to add information to either the pinfo or tree from the parent dissector before the subdissector is called?

Get index of DissectorTable from a subdissector

I'm developing a custom Lua dissector that uses a custom DissectorTable against a payload type information contained in the header to dissect the payload data. It appears however that payload types can be grouped and a range of payload types can be dissected the same, with small differences. differences.

When adding a subdissector to a tcp.port, I can always check the pinfo.srcport or pinfo.dstport, but how could a subdissector find out or be informed about the custom value that was used to find it in the dissector table? table?

Is there a way to add information to either the pinfo or tree from the parent dissector before the subdissector is called?