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

problem with dissector_add function..

0

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%


One Answer:

0

See the discussion on another one of your questions.

answered 27 Nov '12, 14:46

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%