From owner-freebsd-ipfw Mon Jan 22 10:55:49 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id D784D37B401; Mon, 22 Jan 2001 10:55:29 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0MItLq39152; Mon, 22 Jan 2001 10:55:21 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101221855.f0MItLq39152@iguana.aciri.org> Subject: Re: bandwidth analyser In-Reply-To: <3A6C7FD0.7E2ABD65@IPricot.com> from Roman Le Houelleur at "Jan 22, 2001 7:45:36 pm" To: roman@IPricot.com (Roman Le Houelleur) Date: Mon, 22 Jan 2001 10:55:21 -0800 (PST) Cc: freebsd-ipfw@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > hi, > > I use FreeBSD 4.2 stable + bridge + dummynet + ipfw. > I would like to calculate the bandwidth of each > authorized IP source flowing through the bridge from a > user program. > As this bandwidth calculation should be done very often > (10 to 20 times per second) I first tried to use the if_data ... > Anybody has an advice on the best way to achieve this > calculation ? what about the counter capabilities of ipfw ? i think the ipfw interface to access this info is not very well suited to this kind of task, at least not as often as 20 times per second. > Moreover, concerning the bridge, I was wondering if > there is a way not to put a third interface in promiscous yes, there is asysctl interface (net.link.ether.bridge_cfg) see the manpages. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message