[Winpcap-users] detecting dropped packets

Chad Hansen chad.hansen.ch at gmail.com
Wed May 21 19:36:54 GMT 2008


You know, I looked desperately for such a function and couldn't find it, but
I did stumble upon it just a day ago. Thanks for the help!

 

From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Gianluca Varenni
Sent: Tuesday, May 20, 2008 5:14 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] detecting dropped packets

 

Have you tried using pcap_stats and check the number of dropped packets in
the statistics?

 

Have a nice day

GV

----- Original Message ----- 

From: Chad Hansen <mailto:chad.hansen.ch at gmail.com>  

To: winpcap-users at winpcap.org 

Sent: Wednesday, May 14, 2008 10:00 AM

Subject: [Winpcap-users] detecting dropped packets

 

I've searched the FAQ, docs, and mailing list, but couldn't quite find an
answer.

 

I'm writing a speed-sensitive application that needs to process large
volumes of packets live. I'd like to know if the app is keeping up with
traffic, which means I need to know if wpcap's kernel (or user?) buffer is
ever overflowing and dropping packets (caused, of course, by my app not
emptying the buffer fast enough). Is there a way to tell if I'm reading
wpcap's buffer too slowly?

 

On a related note, if I dump packets to a file and then capture from the
file, is there any timing information associated with that? Ie, can I read
from the file at the same speed/timing distribution that the packets were
captured at? If so, I'll simply save some traffic to a file and then when my
app is done, compare the amount of packets in the file to the amount my app
read to see if any were dropped.

 

Thanks!


  _____  


_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20080521/5c34f868/attachment.htm


More information about the Winpcap-users mailing list