From owner-freebsd-net Mon Dec 16 10:39:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422A937B401 for ; Mon, 16 Dec 2002 10:39:26 -0800 (PST) Received: from mx2.nersc.gov (mx2.nersc.gov [128.55.6.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 980C043EA9 for ; Mon, 16 Dec 2002 10:39:25 -0800 (PST) (envelope-from dart@nersc.gov) Received: from mx2.nersc.gov (localhost [127.0.0.1]) by localhost.nersc.gov (Postfix) with ESMTP id BB301779F; Mon, 16 Dec 2002 10:39:24 -0800 (PST) Received: from gemini.nersc.gov (gemini.nersc.gov [128.55.16.111]) by mx2.nersc.gov (Postfix) with ESMTP id 6C2D9779E; Mon, 16 Dec 2002 10:39:23 -0800 (PST) Received: from gemini.nersc.gov (localhost [127.0.0.1]) by gemini.nersc.gov (Postfix) with ESMTP id 44E493B1AF; Mon, 16 Dec 2002 10:39:23 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Guy Helmer" Cc: "Petri Helenius" , freebsd-net@FreeBSD.ORG Subject: Re: libpcap In-Reply-To: Message from "Guy Helmer" of "Fri, 13 Dec 2002 10:05:58 CST." Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_885437977P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 16 Dec 2002 10:39:23 -0800 From: Eli Dart Message-Id: <20021216183923.44E493B1AF@gemini.nersc.gov> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_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" : > 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