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

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.


asked 17 Aug '16, 06:26

shobhit_garg91's gravatar image

accept rate: 0%

edited 17 Aug '16, 13:28

sindy's gravatar image


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



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: 17 Aug '16, 06:26

question was seen: 898 times

last updated: 17 Aug '16, 13:28

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