From owner-freebsd-ipfw@FreeBSD.ORG Mon Aug 17 17:25:35 2009 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 357361065696 for ; Mon, 17 Aug 2009 17:25:35 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout011.mac.com (asmtpout011.mac.com [17.148.16.86]) by mx1.freebsd.org (Postfix) with ESMTP id 232928FC55 for ; Mon, 17 Aug 2009 17:25:34 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KOJ0072R728EB10@asmtp011.mac.com> for freebsd-ipfw@freebsd.org; Mon, 17 Aug 2009 10:25:33 -0700 (PDT) Message-id: From: Chuck Swiger To: mike@magicislandtechnologies.com In-reply-to: <4A8969FF.2070601@magicislandtechnologies.com> Date: Mon, 17 Aug 2009 10:25:20 -0700 References: <4A8969FF.2070601@magicislandtechnologies.com> X-Mailer: Apple Mail (2.936) Cc: freebsd-ipfw@freebsd.org Subject: Re: out xmit (demux) pipe bw accounting X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 17:25:35 -0000 Hi-- On Aug 17, 2009, at 7:32 AM, Michael Spratt wrote: > Could not find answer to following question. > > Given : > # pipe 1 config bw 1Mbit/sec > # ipfw 1000 add pipe 1 ip from any to any out xmit em0 > > Will the bandwidth limit include layer 2 Ethernet headers or will > only the IP datagram itself be included in the accounting mechanism? IPFW normally processes traffic at layer-3, but you can toggle net.link.ether.ipfw sysctl to on, in which case the above rule would also be run against layer-2 packets including the 802.3 ethernet header. See the diagram in "PACKET FLOW" of "man ipfw".... Regards, -- -Chuck