From owner-freebsd-net@FreeBSD.ORG Fri Sep 9 10:41:12 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 9ADD716A420 for ; Fri, 9 Sep 2005 10:41:12 +0000 (GMT) (envelope-from eculp@bafirst.com) Received: from bafirst.com (72-12-2-214.wan.networktel.net [72.12.2.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA22443D48 for ; Fri, 9 Sep 2005 10:41:11 +0000 (GMT) (envelope-from eculp@bafirst.com) Received: from localhost (localhost [127.0.0.1]) (uid 80) by bafirst.com with local; Fri, 09 Sep 2005 05:41:10 -0500 id 000958A6.432166C6.0000E9B8 Received: from dsl-201-144-82-159.prod-infinitum.com.mx (dsl-201-144-82-159.prod-infinitum.com.mx [201.144.82.159]) by mail.bafirst.com (Horde MIME library) with HTTP; Fri, 09 Sep 2005 05:41:10 -0500 Message-ID: <20050909054110.08pqjx9bi884c0sg@mail.bafirst.com> Date: Fri, 09 Sep 2005 05:41:10 -0500 From: eculp@bafirst.com To: freebsd-net@freebsd.org References: <20050908221115.038c3abd.lists@yazzy.org> <004701c5b4df$9207d260$1200a8c0@gsicomp.on.ca> <4320EDDF.6090303@errno.com> In-Reply-To: <4320EDDF.6090303@errno.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.1-cvs Subject: Re: net.inet.ip.forwarding and net.inet.ip.fastforwarding X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 10:41:12 -0000 Quoting Sam Leffler : > Matt Emmerton wrote: >>> Hi guys. >>> >>> What's the difference between net.inet.ip.forwarding and >> >> net.inet.ip.fastforwarding ? >> >>> What's the role of net.inet.ip.fastforwarding ? >> >> >>> From inet(4): >> >> IPCTL_FORWARDING (ip.forwarding) Boolean: enable/disable >> forwarding >> of IP packets. Defaults to off. >> >> IPCTL_FASTFORWARDING (ip.fastforwarding) Boolean: enable/disable the >> use >> of fast IP forwarding code. Defaults to off. >> When >> fast forwarding is enabled, IP packets are for- >> warded directly to the appropriate network inter- >> face with a minimal validity checking, which >> greatly improves the throughput. On the other >> hand, they bypass the standard procedures, such >> as >> IP option processing and ipfirewall(4) checking. >> It is not guaranteed that every packet will be >> fast-forwarded. >> > > This quote is out of date; on current fastforwarding is purely an > optimization path--if the packet requires features not supported by > the fast path then it's processed normally. Maybe I should have another ristreto before asking this, but based on what I understand from this thread and speaking of current 7.0: a. I would set both in sysctl.conf net.inet.ip.forwarding=1 net.inet.ip.fastforwarding=1 b. There would be no "down side" in current 7.0 Is this more or less correct? If so, will this posibly be the case in the 6.0 release also or only in current? Thanks, ed