Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] From Capture Device to Dissector

From: "Audet, Jean-Michel" <Jean-Michel.Audet@xxxxxxxxxxxxxx>
Date: Mon, 27 Aug 2007 10:20:55 -0400

Hi,

            I am starting to have success with my new i2c capture device.  I have a dissector that was working with an external generated file using test2pcap.  I have my new DLT number (199) for I2c/IPMB packet type.

 

Now, I would like to connect my new captures with the dissector.   I have added, in my i2c_open_live (called by pcap_open_live), a linktype equal to DLT_IPMB (199) to my handle.  It compiles correctly but when I ran Wireshark, I have a message “Child capture process died: Abort”.

 

I would like to know what are the steps to connect the capture device with a dissector.  I have search all the code and a new “WTAP_ENCAP_IPMB” based on what I see with the USB device.  I add new case for WTAP_ENCAP_IPMB where there was case for WTAP_ENCAP_USB.

 

Any helps or information will be greatly appreciated.

 

Jean-Michel Audet

Kontron