开发者

wireshark generic dissector- using the packet sequence to define the message

开发者 https://www.devze.com 2023-03-08 16:00 出处:网络
I am not sure if stackoverflow is the right place to put this question, but it seems like. I am trying to write a dissector using the generic dissector plugin (http://wsgd.free.fr/). I have a small p

I am not sure if stackoverflow is the right place to put this question, but it seems like.

I am trying to write a dissector using the generic dissector plugin (http://wsgd.free.fr/). I have a small protocol that uses the first packet of a connection to send some 开发者_JAVA技巧config and the rest to send data. So I need to write a dissector that is able to interpret the packet according to the sequence number.

I have read the documentation but the use of functions is still not clear to me. has anyone that has created a dissector using this tool give me a tip?

thanks


Have you resolved your issue? It looks like wsgd is not helpful writting protocol dissectors depending on meta-information (message sequence, stateful protocols), you should probably use Lua instead.


You can use Global Data in wsgd dissector.

Declare it in headaer file with:

GLOBAL_DATA_TYPE      T_global_data

The whole example is here: http://wsgd.free.fr/wsgd_format_GLOBAL_DATA_more_info.txt.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号