Subject: Re: 'options GATEWAY' vs 'sysctl -w net.inet.ip.forwarding'
To: None <>
From: Andrew Gillham <>
List: netbsd-users
Date: 02/07/2005 14:19:12
On Mon, 7 Feb 2005 17:36:49 +0100, Joel CARNAT <> wrote:
> Hi,
> why would there be the need of both 'options GATEWAY' (in kernel conf)
> and 'net.inet.ip.forwarding' in userland ? I mean, why not removing
> options from GATEWAY and only have sysctl command enabled ?

If you look at the code, the options GATEWAY bumps the default number
of NMBCLUSTERS as well as compiles in  a fast forwarding feature
(called ipflow) that the sysctl can't enable.

I'm not sure of the performance numbers, but 'options GATEWAY' should be faster.