From owner-freebsd-net Mon Jan 22 11:51:58 2001 Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 9378A37B69C; Mon, 22 Jan 2001 11:51:37 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0MJpZF39525; Mon, 22 Jan 2001 11:51:35 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101221951.f0MJpZF39525@iguana.aciri.org> Subject: Re: bandwidth analyser In-Reply-To: <3A6C85A3.9A115BB4@IPricot.com> from Roman Le Houelleur at "Jan 22, 2001 8:10:27 pm" To: roman@IPricot.com (Roman Le Houelleur) Date: Mon, 22 Jan 2001 11:51:35 -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-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > actually that's what I did, but I'm still not able to have > my third nic out of the bridge. > If I use net.link.ether.bridge_cfg: rl0:0,rl1:1,rl2:1 > rl0 is on a separate cluster, so it's useable, but still > rl0 is in promiscous mode. > If I use something like net.link.ether.bridge_cfg: rl1:1,rl2:1 > then rl0 will by default be part of the same "cluster" as > rl1 and rl2. > > Have I missed something ? well, you are hitting a bug or two in bridge.c :) The quick fix is to use something like sysctl -w net.link.ether.bridge_cfg="rl1:6,rl2:6," (note the different cluster-id and the trailing character). The main bug in bridge.c is that the code mistakes the NUL as a separator after the last config. The second bug in that when one interface is disabled, its name is not removed from the list in bdg_stats, so userland utilities still see its name and believe it is still active. Will have a look at fixing these bugs soon. 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-net" in the body of the message