Quantcast
Channel: Ask Wireshark - RSS feed
Viewing all articles
Browse latest Browse all 6

Get index of DissectorTable from a subdissector

$
0
0
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?

Viewing all articles
Browse latest Browse all 6

Trending Articles