dissector length
Hello,
For some custom dissector I have following situation: (unfortunetly, it doesn't allows me to upload file. @moderators, please assist with that)
I have a message built from submessages. Those sub messages have different IDs and length. Those submessages not necessarily exists in each message, and not in the same location. For example:
- message(Header, submessage1(id1, length1), submessage2(id2, length2),submessage3(id3, length1),...,submessageN(idN, lengthN), Checksum)
- message(Header, submessage17(id17, length10), submessage3(id3, length1),submessage5(id5, length5),...,submessageN(idN, lengthN),Checksum)
I'd like to write a dissector for that message. The best solution that I see is that I will have a while loop in which it will check the message ID and call the submessage parsing.
I'd be glad if one can give me some hints on the implementation aspect.
Working with LUA dissection
Thank you
You can post a link to your dissector source and any captures.
Most dissectors do something similar, iterate over the packet, reading values and dissecting based on those values. Nothing unusual there.
Unfortunately, this is on my internal network (can't get it out). If there are some example of this, it would be very helpful