On Thursday 24 March 2005 08:54, Tom Brown wrote:
> Ethereal and WinDump both capture all the packets coming in on the network
> device. I looked through their source code and found ethereal uses
> pcap_dispatch() and WinDump uses pcap_loop(). I tried using both functions
> in my application. In both cases, my callback function would get called but
> the pktheader contains bogus numbers and the pktdata is null. Here is my
> code. What am I doing wrong?

I got my callback function to work. It was declared with the pascal calling 
convention so I was getting the arguments to the function in the wrong order. 
So I declared it as a C function and it worked.

Thanks,
Tom


==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[email protected]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to