pandora-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pandora] offtopic: libpcap performance


From: Simon Patarin
Subject: Re: [Pandora] offtopic: libpcap performance
Date: Fri, 20 Dec 2002 13:34:04 +0100 (CET)


> By the way, using original libpcap (in this case 0.7)... did you noticed
> that:
>
>       that if you do not make a pcap_stats just before the last pcap_read
>       almost all packets are droped (reported as kernel drops)?
>
>       For example, reading a 9000 packets/sec snaplen 68 bytes 10 secons
>       if you inmediatly call pcap_stats() you do not get dropped packets,
>       but if after the last packet_read() you nanosleep(50ms), all packets
>       are droped, so stats are bogus :-\

No, I've never noticed that. On which platform does this occur? Linux?
What's strange is that pcap_stats usually only reads the appropriate
structure inside the kernel (via an ioctl call), so it looks more like a
kernel bug.

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]