On Tue, Jul 03, 2001 at 04:45:07PM +0000, ashley thomas wrote:
> I am running OpenBSD. Is there any way that you know of where by i can
> determine the size of the buffer used (the buffer in the figure)
I don't remember offhand whether libpcap sets it explicitly or just uses
the OS default; in the former case, it's probably set with some BPF
ioctl - check out the libpcap code - and, in the latter case, it's
whatever the default is in OpenBSD (there's probably some sysctl to find
it out - if not, you may have to look at the kernel BPF source code).
That doesn't, of course, tell you how much of the buffer is full at any
given instant, it just tells you how much room there is in the buffer
when it's empty. I don't know of any way to find out from the kernel
how much room there is left in the buffer at any given instant, although
there might be one.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe