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
46192021
accept rate: 0%


See the discussion on another one of your questions.

link

answered 27 Nov '12, 14:46

Guy%20Harris's gravatar image

Guy Harris ♦♦
7.6k11898
accept rate: 16%

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

Tags:

×468
×213

Asked: 16 Feb '11, 22:22

Seen: 1,593 times

Last updated: 27 Nov '12, 14:46

powered by OSQA