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

Hi,

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

sidharth
1222
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 ♦
19.8k330206
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
1

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

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:

×37

question asked: 03 Aug '11, 02:19

question was seen: 2,532 times

last updated: 03 Aug '11, 04:38

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