From owner-freebsd-ipfw Mon Jan 22 10:45:57 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from excalibur.dotcom.fr (ns.dotcom.fr [195.154.74.11]) by hub.freebsd.org (Postfix) with ESMTP id 14D9137B401; Mon, 22 Jan 2001 10:45:38 -0800 (PST) Received: from IPricot.com (pc181.fr.ipricot.com [192.168.31.181]) by excalibur.dotcom.fr (8.9.1/8.9.1) with ESMTP id SAA20147; Mon, 22 Jan 2001 18:45:36 GMT Message-ID: <3A6C7FD0.7E2ABD65@IPricot.com> Date: Mon, 22 Jan 2001 19:45:36 +0100 From: Roman Le Houelleur Organization: dotcom X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-20000912-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ipfw Cc: freebsd-net Subject: bandwidth analyser 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 structure from sysctl. But it seems the packet counter is only incremented for packets destinated to the specified interface, and moreover I wouldn't be able to separate the incoming flows depending on their source addresses. Anybody has an advice on the best way to achieve this calculation ? what about the counter capabilities of ipfw ? Moreover, concerning the bridge, I was wondering if there is a way not to put a third interface in promiscous mode. As this third nic exists only for management purposes I don't want it to participate to the bridge in any way. Thanks, Roman. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message