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

I have to design a dissector for core to core messages. In the code, inside the proto_ reg_ handoff_ccm() function,

dissector_ handle_ t ccm_ handle;

ccm_ handle=new_ create_ dissector_ handle(dissect_ ccm, proto_ ccm);

dissector_ add(...............................................);

I have a problem in writing this third line. There are three options;

  1. dissector_ add("wtap_ encap", WTAP_ ENCAP_ CCM, ccm_ handle);
  2. dissector_ add(" ", NULL, ccm_ handle);

What should I use?? Or if I am completely mistaken and I have to rather write something completely different..

please reply,

Thanks and Regards, Sid

asked 16 Feb '11, 22:22

sid's gravatar image

sid
45192021
accept rate: 0%


See the discussion on another one of your questions.

permanent link

answered 27 Nov '12, 14:46

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
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

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

question asked: 16 Feb '11, 22:22

question was seen: 3,783 times

last updated: 27 Nov '12, 14:46

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