tcpdump mailing list archives

How to add support for new capture interface


From: Akos Vandra <axos88 () gmail com>
Date: Wed, 7 Dec 2011 23:20:10 +0100

Hi all!

I have just written a trace port analyzer for ARMv7-M architecture
microcontrollers. The trace datastream is sent over a serial port to
the PC, where it is packed into frames and decoded.
I'd like to present these data packets to the user using wireshark, as
it already has a very nice and easy-to-use implementation of
presenting packet data, and filtering them.

On the wireshark list I was informed that it is using libpcap for
capturing packet data, and in order to support my trace source I
should extend libpcap.

I would like to ask for your help to get started, how can I add a new
interface to libpcap?. The hardware uses an FT2232 chip to capture the
serial data and forward it to the PC over a USB connection. The FT2232
chip implements CDC, so it can be handled as a serial port as well. At
this moment the libftdi and libusb user-space drivers are used to read
data from the chip.

Regards and thanks in advance,
  Ákos Vandra
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: