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 [EMAIL PROTECTED]
Thank you
www.telecomitalia.it
--------------------------------------------------------------------
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.