Ankur Aggarwal wrote:
Currently I just configure the radio mode (.11 a/b/g) and the channel number and my adapter starts writing the packets into the binary file. Now, in order to be able to monitor in real-time what kind of packets I am capturing, I would like to interface it with ethereal/WinPcap.
If somehow I could call the winPcap functions whenever I receive a packet at the driver level and use the winPcap as an interface to communicate with ethereal my problem should be solved. The application is supposed to run in a dedicated machine so I do not care much about the ndis functionality of windows and establishing a network.
I am at a fix about how to go about doing it.
Step 1: read the WinPcap code.
Step 2: decide where to plug your code in.
Step 3: plug it in.
Currently, there are two ways in which devices plug into WinPcap: most devices plug in through NDIS, but WAN devices plug in (at least on NT 4.0/W2K/WXP/WServer2K3) via Microsoft's API for using the driver for Network Monitor. That's done in packet.dll; you could do it there, or you could do it in pcap-win32.c.
I don't have time to give you much help on this; I can answer some general questions, but I can't give detailed answers (of the sort that would amount to doing much of the work myself). If the WinPcap developers don't have time, you're on your own.
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[email protected]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
