From owner-freebsd-questions Sun Sep 10 12:22:11 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17138 for questions-outgoing; Sun, 10 Sep 1995 12:22:11 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA17128 for ; Sun, 10 Sep 1995 12:22:09 -0700 Received: from corbin.Root.COM (corbin [198.145.90.34]) by Root.COM (8.6.12/8.6.5) with ESMTP id MAA29040; Sun, 10 Sep 1995 12:20:58 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.12/8.6.5) with SMTP id MAA02855; Sun, 10 Sep 1995 12:23:10 -0700 Message-Id: <199509101923.MAA02855@corbin.Root.COM> To: Terry Lambert cc: jc@irbs.com (John Capo), shorty@iii.net, freebsd-questions@freebsd.org Subject: Re: Network problems, please assist In-reply-to: Your message of "Sun, 10 Sep 95 11:44:31 PDT." <199509101844.LAA14984@phaeton.artisoft.com> From: David Greenman Reply-To: davidg@Root.COM Date: Sun, 10 Sep 1995 12:23:09 -0700 Sender: questions-owner@freebsd.org Precedence: bulk >> > 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