aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx/ipx_proto.c
diff options
context:
space:
mode:
authorJohn Hay <jhay@FreeBSD.org>1997-05-10 09:58:58 +0000
committerJohn Hay <jhay@FreeBSD.org>1997-05-10 09:58:58 +0000
commit8c7e2b93a08be7d065c270f6b49ee48739e456fb (patch)
tree75683cd7bc869f82c9b34290dc0eaedbb3f2ce20 /sys/netipx/ipx_proto.c
parent5719a93caf7cf77e657a8d91deac654f1f052c4e (diff)
downloadsrc-8c7e2b93a08be7d065c270f6b49ee48739e456fb.tar.gz
src-8c7e2b93a08be7d065c270f6b49ee48739e456fb.zip
Mega IPX commit.
Use the MAC address of an interface for the host part of an IPX address and not the MAC address of the first interface for every IPX address. This is more inline with the way others like Novell do it. Mostly Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su> Take out the error messages (the ip icmp equivalent) with #ifdef IPXERRORMSGS. This is bogus and as far as I could figure out IPX don't have anything like it. This is a leftover from its XNS heritage. If nobody complains, I will take it out completely in a few weeks. Add some more ipxstat statistics counters. Make ipxprintfs a sysctl variable and off by default. Add IPX Netbios "routing" support. This is off by default and can be switched on with a sysctl knob. General code cleanup to at least use the same style throughout the IPX code, but also be more style(9) conformant. Also make a lot of functions static. If I don't get any complaints I'll bring all of this over to the 2.2 tree in a few weeks.
Notes
Notes: svn path=/head/; revision=25652
Diffstat (limited to 'sys/netipx/ipx_proto.c')
-rw-r--r--sys/netipx/ipx_proto.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/netipx/ipx_proto.c b/sys/netipx/ipx_proto.c
index bf1318d4be84..1c2bb59c6b49 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.8 1997/04/05 20:05:08 jhay Exp $
+ * $Id: ipx_proto.c,v 1.9 1997/05/01 12:24:20 jhay Exp $
*/
#include <sys/param.h>
@@ -42,14 +42,18 @@
#include <sys/domain.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
+#include <sys/socketvar.h>
#include <sys/sysctl.h>
#include <net/radix.h>
+#include <net/route.h>
#include <netipx/ipx.h>
+#include <netipx/ipx_var.h>
#include <netipx/spx.h>
-static struct pr_usrreqs nousrreqs;
+extern struct domain ipxdomain;
+static struct pr_usrreqs nousrreqs;
/*
* IPX protocol family: IPX, ERR, PXP, SPX, ROUTE.
@@ -86,12 +90,14 @@ struct protosw ipxsw[] = {
0, 0, 0, 0,
&ripx_usrreqs
},
+#ifdef IPXERRORMSGS
{ SOCK_RAW, &ipxdomain, IPXPROTO_ERROR, PR_ATOMIC|PR_ADDR,
0, 0, 0, ipx_ctloutput,
0,
0, 0, 0, 0,
&ripx_usrreqs
},
+#endif
#ifdef IPTUNNEL
#if 0
{ SOCK_RAW, &ipxdomain, IPPROTO_IPX, PR_ATOMIC|PR_ADDR,
@@ -104,7 +110,7 @@ struct protosw ipxsw[] = {
#endif
};
-struct domain ipxdomain =
+struct domain ipxdomain =
{ AF_IPX, "network systems", 0, 0, 0,
ipxsw, &ipxsw[sizeof(ipxsw)/sizeof(ipxsw[0])], 0,
rn_inithead, 16, sizeof(struct sockaddr_ipx)};
@@ -115,5 +121,7 @@ SYSCTL_NODE(_net, PF_IPX, ipx, CTLFLAG_RW, 0,
SYSCTL_NODE(_net_ipx, IPXPROTO_RAW, ipx, CTLFLAG_RW, 0, "IPX");
SYSCTL_NODE(_net_ipx, IPXPROTO_SPX, spx, CTLFLAG_RW, 0, "SPX");
+#ifdef IPXERRORMSGS
SYSCTL_NODE(_net_ipx, IPXPROTO_ERROR, error, CTLFLAG_RW, 0,
"Error Protocol");
+#endif