This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How can I use a XML file in my dissection plug-in?

0

Hi,

I'm developing a plug-in for Wireshark and I have dissected headers and trailers that belongs to my protocol. Now I want to dissect the data part of the packages. For this part I have a XML file that represent a description of it. It will tell where in the data part I can find different variables, their size in bits, their unit etc. So, I have some parts of the protocol that will never change (headers and trailers) and one part that might change (the data part described by the XML file). How can I be able to access the information in the XML file in my plug-in and use it for dissection of the data part?

asked 13 Aug '15, 05:50

Sof's gravatar image

Sof
16225
accept rate: 0%


One Answer:

0

There is currently no way to have dynamic dissection from any sort of configuration file, the colsest is asn2ws which can create C code from an ASN1 description with the aid of templates and configuration files. So you would have to write code from scratch to do that.

answered 13 Aug '15, 07:40

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

edited 13 Aug '15, 07:40

Thanks for answering so quickly!

(13 Aug '15, 11:57) Sof