From owner-freebsd-net Fri Dec 6 9:31:59 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 7271D37B401 for ; Fri, 6 Dec 2002 09:31:58 -0800 (PST) Received: from bps.jodocus.org (c115139.upc-c.chello.nl [212.187.115.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id F161943EA9 for ; Fri, 6 Dec 2002 09:31:56 -0800 (PST) (envelope-from joost@bps.jodocus.org) Received: (from joost@localhost) by bps.jodocus.org (8.11.6/8.11.6) id gB6HVtp48083 for freebsd-net@FreeBSD.ORG; Fri, 6 Dec 2002 18:31:55 +0100 (CET) (envelope-from joost) Date: Fri, 6 Dec 2002 18:31:55 +0100 From: Joost Bekkers To: freebsd-net@FreeBSD.ORG Subject: Re: FreeBSD 4.7 and shapeing bridge Message-ID: <20021206173155.GB48015@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , freebsd-net@FreeBSD.ORG References: <20021206164524.A13690@artemis.wszib.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021206164524.A13690@artemis.wszib.edu.pl> User-Agent: Mutt/1.4i 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 On Fri, Dec 06, 2002 at 04:45:24PM +0100, Bartlomiej Butyn wrote: > bridge1# ipfw pipe 1 config bw 64Kbit/s > bridge1# ipfw pipe 2 config bw 64Kbit/s > bridge1# ipfw add pipe 1 ip from any to any out recv rl0 xmit vr0 > bridge1# ipfw add pipe 2 ip from any to any out recv vr0 xmit rl0 > > /usr/src/sys/net/bridge.c says: /* * The third parameter to the firewall code is the dst. interface. * Since we apply checks only on input pkts we use NULL. * The firewall knows this is a bridged packet as the cookie ptr * is NULL. */ so if you use ipfw add pipe 1 ip from any to any in recv rl0 bridged ipfw add pipe 2 ip from any to any in recv vr0 bridged things should be fine. -- greetz Joost joost@jodocus.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message