From owner-freebsd-net Fri Dec 13 8: 6: 3 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 5CB3B37B401 for ; Fri, 13 Dec 2002 08:06:02 -0800 (PST) Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id A25E643ED1 for ; Fri, 13 Dec 2002 08:06:01 -0800 (PST) (envelope-from ghelmer@palisadesys.com) Received: from mira (mira.palisadesys.com [192.188.162.116]) (authenticated (0 bits)) by magellan.palisadesys.com (8.11.6/8.11.6) with ESMTP id gBDG5wI05290 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO); Fri, 13 Dec 2002 10:05:58 -0600 From: "Guy Helmer" To: "Petri Helenius" Cc: Subject: RE: libpcap Date: Fri, 13 Dec 2002 10:05:58 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3DF9E78E.50001@he.iki.fi> 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 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