tcpdump mailing list archives
setting the initial ring size
From: "Abeni Paolo" <paolo.abeni () telecomitalia it>
Date: Mon, 7 Jan 2008 17:49:42 +0100
hello,
In the current cvs, at least the bpf, the win32 and the linux (memory mapped) platforms use an internal buffer to
perform the capture. The buffer size is currently user-configurable only for the win32 platform, and it would be nice
to be able to do the same also on other platform, but the bpf don't allow to change the buffer size after the capture
is started.
A possible solution is to add a static variable to handle the buffer size and add a libpcap call to modify/set it's
value which should be used as default by the various open method. The new function does not get a pcap handle as
parameter, since it operates on a global variable; moreover calling it does not influence already opened captures.
Since both bpf and linux shrink the said buffer if the creation fails due to insufficient memory available, it would be
useful to add another pcap function to retrieve the capture buffer size for a given capture.
If this idea sounds reasonable, I can post a patch to implement it.
ciao,
Paolo
--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons above and may contain confidential information. If
you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it
immediately to the sender and delete the message. Should you have any questions, please contact us by replying to
webmaster () telecomitalia it.
Thank you
www.telecomitalia.it
--------------------------------------------------------------------
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- setting the initial ring size Abeni Paolo (Jan 07)
- Re: setting the initial ring size Andy Howell (Jan 07)
- Re: setting the initial ring size Guy Harris (Jan 09)
- Re: setting the initial ring size Abeni Paolo (Jan 10)
- Re: setting the initial ring size Guy Harris (Jan 10)
- Re: supporting extend 'open live capture' parametes [was: setting the initial ring size] Abeni Paolo (Jan 10)
- Re: supporting extend 'open live capture' parametes Guy Harris (Jan 10)
- Re: supporting extend 'open live capture' parametes Andy Howell (Jan 10)
- Re: supporting extend 'open live capture' parametes Guy Harris (Jan 10)
- Re: supporting extend 'open live capture' parametes Andy Howell (Jan 11)
- Re: supporting extend 'open live capture' parametes Michael Richardson (Jan 13)
- Re: setting the initial ring size Guy Harris (Jan 09)
- Re: setting the initial ring size Andy Howell (Jan 07)
