summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_input.c
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/ipx_input.c
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/ipx_input.c')
-rw-r--r--sys/netipx/ipx_input.c30
1 files changed, 12 insertions, 18 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;
OpenPOWER on IntegriCloud