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


I have an issue. I have made a plugin for a protocol names View Change Messages. It is working fine. These messages can be seen on TCP port 7002. Now in response to these view messages, view accept and view reject messages are seen which are also on TCP port 7002. So I made a plugin (separate plugin) for view accept.

However, now since two of my plugins detect packets on TCP port 7002, only one plugins decodes packets.

So how to take care of different messages which work on top of same protocol and on the same port??

Regards, Sidharth

asked 03 Aug '11, 02:19

sidharth's gravatar image

accept rate: 0%

Surely these extra messages are part of the same protocol, and your single dissector should handle all of them? Why do you think that you need a separate dissector for each message?

permanent link

answered 03 Aug '11, 03:28

grahamb's gravatar image

grahamb ♦
accept rate: 22%

i realize that now. But all these messages have different packet structures.!!! So how to deal with that??

(03 Aug '11, 04:04) sidharth

In your dissector add handlers for each message type, hopefully your protocol has some form of message type indicator in a common header that the code can use. Most dissectors obtain that value and then use a switch() to handle the separate cases.

(03 Aug '11, 04:38) grahamb ♦
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: 03 Aug '11, 02:19

question was seen: 2,587 times

last updated: 03 Aug '11, 04:38

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