From owner-freebsd-hackers Wed Jun 28 21:22:04 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA07388 for hackers-outgoing; Wed, 28 Jun 1995 21:22:04 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id VAA07368 for ; Wed, 28 Jun 1995 21:22:01 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA17179; Thu, 29 Jun 1995 06:21:58 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id GAA18365 for freebsd-hackers@freebsd.org; Thu, 29 Jun 1995 06:21:58 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id GAA04444 for freebsd-hackers@freebsd.org; Thu, 29 Jun 1995 06:01:27 +0200 From: J Wunsch Message-Id: <199506290401.GAA04444@uriah.heep.sax.de> Subject: Re: packet forwarding To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Thu, 29 Jun 1995 06:01:25 +0200 (MET DST) Reply-To: freebsd-hackers@freebsd.org (FreeBSD hackers) In-Reply-To: <199506280731.AAA00673@corbin.Root.COM> from "David Greenman" at Jun 28, 95 00:31:56 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1748 Sender: hackers-owner@freebsd.org Precedence: bulk As David Greenman wrote: > > You need to add 'options GATEWAY' to your kernel config file. You should add, but you don't need to. GATEWAY is being rarely used these days (i've removed all occurences of *_GATEWAY from the output, since they are unrelated): j@uriah 393% find . -type f -name '*.[ch]' | xargs fgrep GATEWAY ./compile/URIAH/param.c:#ifdef GATEWAY ./compile/URIAH/param.c:#endif /* GATEWAY */ ./compile/UNCLE/param.c:#ifdef GATEWAY ./compile/UNCLE/param.c:#endif /* GATEWAY */ ./conf/param.c:#ifdef GATEWAY ./conf/param.c:#endif /* GATEWAY */ ./i386/boot/dosboot/param.h:#ifdef GATEWAY ./i386/boot/dosboot/param.h:#endif /* GATEWAY */ ./netinet/ip_input.c:#ifdef GATEWAY ./netinet/ip_input.c:#else /* GATEWAY */ ./netinet/ip_input.c:#endif /* GATEWAY */ This is from ./netinet/ip_input.c: #ifndef IPFORWARDING #ifdef GATEWAY #define IPFORWARDING 1 /* forward IP packets not for us */ #else /* GATEWAY */ #define IPFORWARDING 0 /* don't forward IP packets not for us */ #endif /* GATEWAY */ #endif /* IPFORWARDING */ ... int ipforwarding = IPFORWARDING; So it's only the _default_ that is affected by GATEWAY, you can always change this via sysctl. And here the snippet from ./conf/param.c: /* maximum # of mbuf clusters */ #ifndef NMBCLUSTERS #ifdef GATEWAY int nmbclusters = 512 + MAXUSERS * 16; #else int nmbclusters = 256 + MAXUSERS * 16; #endif /* GATEWAY */ #else int nmbclusters = NMBCLUSTERS; #endif Well, seems that it might be recommended to have GATEWAY here, but it's as well possible to get the same by overriding NMBCLUSTERS. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)