Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Sep 2005 19:05:19 -0700
From:      Sam Leffler <sam@errno.com>
To:        Matt Emmerton <matt@gsicomp.on.ca>
Cc:        freebsd-net@freebsd.org, Marcin Jessa <lists@yazzy.org>
Subject:   Re: net.inet.ip.forwarding and net.inet.ip.fastforwarding
Message-ID:  <4320EDDF.6090303@errno.com>
In-Reply-To: <004701c5b4df$9207d260$1200a8c0@gsicomp.on.ca>
References:  <20050908221115.038c3abd.lists@yazzy.org> <004701c5b4df$9207d260$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	Sam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4320EDDF.6090303>