Date: Mon, 16 Dec 2002 10:39:23 -0800 From: Eli Dart <dart@nersc.gov> To: "Guy Helmer" <ghelmer@palisadesys.com> Cc: "Petri Helenius" <pete@he.iki.fi>, freebsd-net@FreeBSD.ORG Subject: Re: libpcap Message-ID: <20021216183923.44E493B1AF@gemini.nersc.gov> In-Reply-To: Message from "Guy Helmer" <ghelmer@palisadesys.com> of "Fri, 13 Dec 2002 10:05:58 CST." <FPEBKMIFGFHCGLLKBLMMEEIBCBAA.ghelmer@palisadesys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_885437977P Content-Type: text/plain; charset=us-ascii We maintain our own patches here as well to get around this problem. IMHO, it is far better to have some applications "waste" a meg or two of buffer space than to hamstring any high-performance bpf app that runs on a FreeBSD box. This is most likely a trivial code fix -- how hard would it be to get this committed? --eli In reply to "Guy Helmer" <ghelmer@palisadesys.com> : > Petri Helenius wrote: > > Guy Helmer wrote: > > >I use "sysctl debug.dbf_bufsize=131072" on my appliances to increase the > > >BPF buffer size to something more reasonable without having to directly > > >modify libpcap. > > > > > Hope you're not disappointed to find out that modifying that parameter has > > no effect when using applications which use libpcap since libpcap always > > sets the buffer size to 32768. (which is exactly the problem I'm > complaining about) > > You are right - I misremembered how the BIOCSBLEN ioctl worked. My > appliances do have a private copy of libpcap with a larger buffer size > because of this problem. > > IMHO, it would be better for the libpcap code to query the default BPF > buffer size (BIOCGLEN) and use it if it is larger than the libpcap default > size (32768). Then libpcap would obey the buffer size set by the sysctl. > > Guy > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message --==_Exmh_885437977P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: This is a comment. iD8DBQE9/h3bLTFEeF+CsrMRAgZ+AJ9+tQ0d3R5tBHuQ+WP8EBeEZXuH3gCdFb1o hdddK0XHnfTXWljmOE2GSWU= =ny+g -----END PGP SIGNATURE----- --==_Exmh_885437977P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021216183923.44E493B1AF>