tcpdump mailing list archives

Re: Exposing linux libpcap ring buffer usage information


From: Dustin Spicuzza <dustin () virtualroadside com>
Date: Tue, 14 Jul 2009 15:55:26 -0400

Guy Harris wrote:

On Jul 14, 2009, at 9:05 AM, Dustin Spicuzza wrote:

I'd like to get information on how much of the mmap'ed ring buffer is
being used so that I can deal with dropped packets more effectively. I
was going to add a patch for this, but its not clear to me the best way
to expose the information. I'm tempted to just add an additional
call/struct for the information, but it would be nice if the existing
API's could be extended instead.

What existing API were you thinking of extending?  Note that you can't
grow the pcap_stat structure without breaking binary compatibility.

Yeah, that was the one that I was thinking of, but as you point out it
would break binary compatibility.

Dustin


-- 
Innovation is just a problem away

Attachment: signature.asc
Description: OpenPGP digital signature


Current thread: