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

I have a protocol such that there is a x header and y header. How can i have these headers under a single packet-xyz.c file? It should look something like this .. IP TCP X Y

asked 27 Mar '11, 02:21

niks3089's gravatar image

accept rate: 0%

Write two separate dissectors, and put the source to both of them in the packet-xyz.c file. Have the dissector for protocol X call the dissector for protocol Y, when appropriate. The only difference between this and having two dissectors in different source files is that you put them both in the same source file. (Using a single dissector for both protocol layers is the wrong way to do it.)

permanent link

answered 27 Mar '11, 14:50

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: 27 Mar '11, 02:21

question was seen: 2,019 times

last updated: 27 Mar '11, 14:50

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