Wireshark-dev: Re: [Wireshark-dev] Problems With Integrating our device
From: "Varuna De Silva" <[email protected]>
Date: Sat, 6 Oct 2007 19:32:12 +0530

On 10/6/07, Varuna De Silva <[email protected]> wrote:

We have had several problems when trying to integrate our device
with wireshark. But as its our original effort there are certain problems
we came across.

When we run wireshark with our own wpcap.dll when our device is
attached to the USB port, and when we try to start our capture,
through capture->interfaces, in windows we get an error saying
'dumpcap needs to be closed', and there after we cannot see any
device in the interfaces list.

In integrating our device we have written, pcap-muwis.c file.
with a muwis_open_live() function that returns a pcap_t structure.
Now we have to call this function from pcap_open_live() in pcap-win32.c?

#ifdef HAVE_USB     
        if (strstr(device, "muwis")) {
         return muwis_open_live(device, snaplen, promisc, to_ms, ebuf);

What is this dumpcap ? Or why this is the problem that we face?
Please tell us of any experiences?

Just a  one more question can we know what the exact sequence of
function calls that take place, when wireshark starts and communicate with
our device. for example pcap_open_live -> muwis_open_live()

Then who calls muwis_read() or muwis_stats().. I think if we know
this clearly it would be really helpful for us.