summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-01-05 20:47:05 +0000
committerwollman <wollman@FreeBSD.org>1996-01-05 20:47:05 +0000
commit9e6f88883f9f6cc358f531eb8478a92f4d4291fc (patch)
tree33062b05eef4f73550a3f54546b5616caecffdff /sys/netipx
parent6430272759633c6a6de434bc2bab68356801b788 (diff)
downloadFreeBSD-src-9e6f88883f9f6cc358f531eb8478a92f4d4291fc.zip
FreeBSD-src-9e6f88883f9f6cc358f531eb8478a92f4d4291fc.tar.gz
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.)
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_input.c30
-rw-r--r--sys/netipx/ipx_proto.c10
2 files changed, 21 insertions, 19 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index 3b77ac4..c93235d 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -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
-
-#ifndef IXDONOSOCKS
-#define IPXDONOSOCKS 0 /* return no socket errors */
-#endif
+int ipxcksum = 0;
+SYSCTL_INT(_net_ipx_ipx, OID_AUTO, checksum, CTLFLAG_RW,
+ &ipxcksum, 0, "");
-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;
diff --git a/sys/netipx/ipx_proto.c b/sys/netipx/ipx_proto.c
index fc20d32..4764455 100644
--- a/sys/netipx/ipx_proto.c
+++ b/sys/netipx/ipx_proto.c
@@ -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");
OpenPOWER on IntegriCloud