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

Hi, I am creating several dissectors for Wireshark in Lua. Basically I have several different protocols for which the dissectors need to be created. The issue is that some of these protocols use the same port numbers. So I wanted to know if there is a way to specify a hierarchy that should be followed when dissecting the packets. For example if I have dissector_1 and dissector_2, and I have a packet whose source port falls in the range of dissector_1 and destination port falls in the range of dissector_2, then how can I force the packet to be dissected using dissector_1, as over here the dissector_1 is higher in the hierarchy. Edit: I have also noticed that if I create a dissector that analyses the port numbers and then based upon certain if-else conditions calls other dissectors it works fine, but if in this dissector I try and add preferences to specify the port numbers for dissector_1 then the dissector stops working altogether.

Thanks.

asked 17 Aug '16, 06:26

shobhit_garg91's gravatar image

shobhit_garg91
169914
accept rate: 0%

edited 17 Aug '16, 13:28

sindy's gravatar image

sindy
6.0k4851

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×1,620
×637
×431
×7

question asked: 17 Aug '16, 06:26

question was seen: 843 times

last updated: 17 Aug '16, 13:28

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