[WinPcap-users] General Questions, I'm So Lost

2005-03-24 Thread Mario Hollibaugh
I am trying to develop a compact, customized-to-my-purposes packet sniffer using VC++ v6.0. It was recommended to me that instead of writing a program using hardware interfacing and working directly with interrupts, to take a look at and use the WinPCap library. Normally I can hack my way

[WinPcap-users] Undefined Functions and Data Structures in Tutorial Code Example2

2005-03-25 Thread Mario Hollibaugh
I'm new with WinPcap 3.1 beta4, and only this morning (and only by the grace of God I'm sure) did I get programs using the WinPcap library to start compiling, linking, and running. I'm reading through the tutorials (for 3.1 beta 4, of course), disecting the code provided line by line until I

Re: [WinPcap-users] C2664 error 'pcap_loop'

2005-03-30 Thread Mario Hollibaugh
Bryan Esbaugh wrote: I just getting use to using WinPCap and had it working with my old IDE. However I've upgraded and starting messing with it again and now I've run into a problem that's driving me nuts. I seem to be getting this error: error C2664: 'pcap_loop' : cannot convert parameter 3

Re: [WinPcap-users] Retrieving a pointer to a UDP or TCP header

2005-03-30 Thread Mario Hollibaugh
Guy Harris wrote: On Mar 30, 2005, at 5:26 PM, Mario Hollibaugh wrote: I don't understand how this line of code is giving him the location of the udp header. In the first line where he says (ih- ver_ihl 0xf) * 4, why is he first using that bit-wise and operator with the hex value

Re: [WinPcap-users] Retrieving a pointer to a UDP or TCP header

2005-03-30 Thread Mario Hollibaugh
Guy Harris wrote: On Mar 30, 2005, at 5:49 PM, Mario Hollibaugh wrote: Yeah i felt like a jackass because I looked up pretty much the exact thing you did a few minutes ago and realized that the IHL field is the length in 32-bit words. But I'm sitll lost here... I'm not the best

[WinPcap-users] Timeout settings for a capture

2005-04-13 Thread Mario Hollibaugh
Hi. I wrote a little program in C to capture some TCP packets and break em up to look at them later. I just want to make sure that I'm capturing all the packets so I'm wondering... in order to capture MORE packets should I set the timeout higher or lower? Thanks. Cheers, Mario