Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 1995 12:23:09 -0700
From:      David Greenman <davidg@Root.COM>
To:        Terry Lambert <terry@lambert.org>
Cc:        jc@irbs.com (John Capo), shorty@iii.net, freebsd-questions@freebsd.org
Subject:   Re: Network problems, please assist 
Message-ID:  <199509101923.MAA02855@corbin.Root.COM>
In-Reply-To: Your message of "Sun, 10 Sep 95 11:44:31 PDT." <199509101844.LAA14984@phaeton.artisoft.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> > How do I said the option GATEWAY in the kernel?  Please be specific, I
>> > haven't altered the kernel before.
>> > Thanks,
>> > -Justin Seger-
>> > 
>> 
>> Add this line to your kernel config file and build and install the
>> new kernel:
>> 
>> options		GATEWAY
>> 
>> You can turn on forwarding in a running kernel with:
>> 
>> sysctl -w net.inet.ip.forwarding=1
>
>Note that the first is almost a requirement in any case, because you
>won't have enough buffers without it.
>
>This should probably be fixed so that the buffers are soft reconfigurable
>or configured for gateway by default.

   This is already the case. It has been this way for awhile:

----------------------------
revision 1.11
date: 1995/06/29 08:21:32;  author: davidg;  state: Exp;  lines: +1 -5
Removed "GATEWAY" consideration when calculating number of mbuf clusters.
It now always uses the value that was used for the GATEWAY case.
----------------------------
revision 1.9
date: 1995/05/25 07:36:24;  author: davidg;  state: Exp;  lines: +13 -2
branches:  1.9.4;
Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"
in machdep.c (it should use the global nmbclusters). Moved the calculation
of nmbclusters into conf/param.c (same place where nmbclusters has always
been assigned), and made the calculation include an extra amount based
on "maxusers". NMBCLUSTERS can still be overrided in the kernel config
file as always, but this change will make that generally unnecessary. This
fixes the "bug" reports from people who have misconfigured kernels seeing
the network "hang" when the mbuf cluster pool runs out.

   It isn't practical to make it soft configurable because the size of the
mb_map must be calculated at startup time. We could (should!) make some
extensions to 'userconfig' to allow you to change things like this.
   I highly recommend that you subscribe to the cvs-all mailing list so that
you don't give out so much disinformation.

-DG



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