Finally demolished the last, tottering remnants of GATEWAY. If you want

to enable IP forwarding, use sysctl(8).  Also did the same for IPX,
which involved inventing a completely new MIB from whole cloth (which
I may not quite have correct); be aware of this if you use IPX forwarding.
(The two should never have been controlled by the same option anyway.)
This commit is contained in:
wollman 1996-01-05 20:47:05 +00:00
parent 06468bb31d
commit ee33e04cc3
6 changed files with 27 additions and 54 deletions

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.230 1995/12/29 02:04:20 jkh Exp $
# $Id: LINT,v 1.231 1995/12/29 12:51:09 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -187,11 +187,6 @@ options HDLC #X.25 link layer for serial lines
# 4.2BSD. This option should not be used unless you have a 4.2BSD
# machine and TCP connections fail.
#
# GATEWAY allows the machine to forward packets, and also configures
# larger static sizes of a number of system tables. It is largely
# replaced by the more dynamic behavior of
# sysctl -w net.inet.ip.forwarding=1
#
# MROUTING enables the kernel multicast packet forwarder, which works
# with mrouted(8).
#
@ -203,7 +198,6 @@ options HDLC #X.25 link layer for serial lines
# TCPDEBUG is undocumented.
#
options "TCP_COMPAT_42" #emulate 4.2BSD TCP bugs
options GATEWAY #internetwork gateway
options MROUTING # Multicast routing
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.230 1995/12/29 02:04:20 jkh Exp $
# $Id: LINT,v 1.231 1995/12/29 12:51:09 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -187,11 +187,6 @@ options HDLC #X.25 link layer for serial lines
# 4.2BSD. This option should not be used unless you have a 4.2BSD
# machine and TCP connections fail.
#
# GATEWAY allows the machine to forward packets, and also configures
# larger static sizes of a number of system tables. It is largely
# replaced by the more dynamic behavior of
# sysctl -w net.inet.ip.forwarding=1
#
# MROUTING enables the kernel multicast packet forwarder, which works
# with mrouted(8).
#
@ -203,7 +198,6 @@ options HDLC #X.25 link layer for serial lines
# TCPDEBUG is undocumented.
#
options "TCP_COMPAT_42" #emulate 4.2BSD TCP bugs
options GATEWAY #internetwork gateway
options MROUTING # Multicast routing
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about

View File

@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
# $Id: LINT,v 1.230 1995/12/29 02:04:20 jkh Exp $
# $Id: LINT,v 1.231 1995/12/29 12:51:09 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@ -187,11 +187,6 @@ options HDLC #X.25 link layer for serial lines
# 4.2BSD. This option should not be used unless you have a 4.2BSD
# machine and TCP connections fail.
#
# GATEWAY allows the machine to forward packets, and also configures
# larger static sizes of a number of system tables. It is largely
# replaced by the more dynamic behavior of
# sysctl -w net.inet.ip.forwarding=1
#
# MROUTING enables the kernel multicast packet forwarder, which works
# with mrouted(8).
#
@ -203,7 +198,6 @@ options HDLC #X.25 link layer for serial lines
# TCPDEBUG is undocumented.
#
options "TCP_COMPAT_42" #emulate 4.2BSD TCP bugs
options GATEWAY #internetwork gateway
options MROUTING # Multicast routing
options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #print information about

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
* $Id: ip_input.c,v 1.32 1995/12/20 18:04:19 wollman Exp $
* $Id: ip_input.c,v 1.33 1995/12/21 21:12:22 wollman Exp $
*/
#include <sys/param.h>
@ -67,22 +67,11 @@ int rsvp_on = 0;
static int ip_rsvp_on;
struct socket *ip_rsvpd;
#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 */
#ifndef IPSENDREDIRECTS
#define IPSENDREDIRECTS 1
#endif
static int ipforwarding = IPFORWARDING;
static int ipforwarding = 0;
SYSCTL_INT(_net_inet_ip, IPCTL_FORWARDING, forwarding, CTLFLAG_RW,
&ipforwarding, 0, "");
static int ipsendredirects = IPSENDREDIRECTS;
static int ipsendredirects = 1; /* XXX */
SYSCTL_INT(_net_inet_ip, IPCTL_SENDREDIRECTS, redirect, CTLFLAG_RW,
&ipsendredirects, 0, "");

View File

@ -33,7 +33,7 @@
*
* @(#)ipx_input.c
*
* $Id: ipx_input.c,v 1.5 1995/11/24 11:43:52 bde Exp $
* $Id: ipx_input.c,v 1.6 1995/12/16 02:14:33 bde Exp $
*/
#include <sys/param.h>
@ -47,6 +47,7 @@
#include <sys/errno.h>
#include <sys/time.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/route.h>
@ -60,29 +61,22 @@
#include <netipx/ipx_var.h>
#include <netipx/ipx_error.h>
#ifndef IPXFORWARDING
#ifdef GATEWAY
#define IPXFORWARDING 1 /* forward IPX packets not for us */
#else
#define IPXFORWARDING 0 /* don't forward IPX packets not for us */
#endif
#endif
#ifndef IPXPRINTFS
#define IPXPRINTFS 1 /* printing forwarding information */
#endif
#ifndef IPXCKSUM
#define IPXCKSUM 0 /* perform IPX checksum */
#endif
int ipxcksum = 0;
SYSCTL_INT(_net_ipx_ipx, OID_AUTO, checksum, CTLFLAG_RW,
&ipxcksum, 0, "");
#ifndef IXDONOSOCKS
#define IPXDONOSOCKS 0 /* return no socket errors */
#endif
int ipxcksum = IPXCKSUM;
int ipxprintfs = IPXPRINTFS;
int ipxdonosocks = IPXDONOSOCKS;
int ipxforwarding = IPXFORWARDING;
int ipxdonosocks = 0;
SYSCTL_INT(_net_ipx_ipx, OID_AUTO, donosocks, CTLFLAG_RW,
&ipxdonosocks, 0, "");
int ipxforwarding = 0;
SYSCTL_INT(_net_ipx_ipx, OID_AUTO, ipxforwarding, CTLFLAG_RW,
&ipxforwarding, 0, "");
union ipx_host ipx_thishost;
union ipx_net ipx_zeronet;

View File

@ -33,7 +33,7 @@
*
* @(#)ipx_proto.c
*
* $Id: ipx_proto.c,v 1.2 1995/10/31 23:36:36 julian Exp $
* $Id: ipx_proto.c,v 1.3 1995/11/04 09:03:18 julian Exp $
*/
#include <sys/param.h>
@ -42,6 +42,7 @@
#include <sys/domain.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/sysctl.h>
#include <net/radix.h>
@ -100,3 +101,10 @@ struct domain ipxdomain =
rn_inithead, 16, sizeof(struct sockaddr_ipx)};
DOMAIN_SET(ipx);
SYSCTL_NODE(_net, PF_IPX, ipx, CTLFLAG_RW, 0,
"IPX/SPX");
SYSCTL_NODE(_net_ipx, IPXPROTO_RAW, ipx, CTLFLAG_RW, 0, "IPX");
SYSCTL_NODE(_net_ipx, IPXPROTO_SPX, spx, CTLFLAG_RW, 0, "SPX");
SYSCTL_NODE(_net_ipx, IPXPROTO_ERROR, error, CTLFLAG_RW, 0,
"Error Protocol");