This is our old Q&A Site. Please post any new questions and answers at

hi!I need wireshark dissect captured packages by a config file. When wireshark started,the config file will be loaded to wireshark,and the captured package will be dissected by the fields name defined in xml file. Every displayed field is defined in xml files,so every field is configurable .Could you help me? Give me an example.Thank you very much!!! chinese is :我想通过XML配置文件的方式来解析wireshark所抓到的数据包。也就是说,我把消息字段配置到XML文件中,在抓包的过程中根据XML配置字段动态地解析数据包,不知道是否可行?如果可以,你们那边可以给我一个示例吗?非常感谢各位大侠!

asked 24 Nov '11, 19:38

liyunshi's gravatar image

accept rate: 0%

edited 26 Feb '12, 21:03

cmaynard's gravatar image

cmaynard ♦♦

Hi, Yo can have a look at the Diameter dissector packet-diameter.c which does something similar with the AVP:s.

permanent link

answered 25 Nov '11, 00:31

Anders's gravatar image

Anders ♦
accept rate: 17%

It's not XML, but there's the Wireshark Generic Dissector plugin, which accepts descriptions of protocols in its own (again, not XML-based) language.

permanent link

answered 25 Nov '11, 11:44

Guy%20Harris's gravatar image

Guy Harris ♦♦
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 24 Nov '11, 19:38

question was seen: 5,131 times

last updated: 26 Feb '12, 21:03

p​o​w​e​r​e​d by O​S​Q​A