On Mon, Nov 24, 2003 at 11:20:16AM +0200, Selcuk Cevher wrote:
> hi all,
> i am trying to perform some tests in order to find out the performance of 
> winpcap architecture so i need to find out the number of packets received 
> by network tap and the number of packets which satisfy my filtering 
> expression..It is no matter what the filtering expression is..i may not 
> have any filtering expression even..i am just trying to find out a ratio 
> like (packets received / dumped on disk)..how can i retrieve these values 
> in order to find out the previous ratio?

Call the pcap_stats function. In the pcap_stat structure, ps_recv is the
number of packets received. You can keep your own counter of the packets
that have been received by your application, and work out the number
that have been filtered from there.

HTH,
Ainsley


==================================================================
 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