From 8c7e2b93a08be7d065c270f6b49ee48739e456fb Mon Sep 17 00:00:00 2001 From: John Hay Date: Sat, 10 May 1997 09:58:58 +0000 Subject: 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" 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. --- sys/netipx/ipx_proto.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'sys/netipx/ipx_proto.c') 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 @@ -42,14 +42,18 @@ #include #include #include +#include #include #include +#include #include +#include #include -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 -- cgit v1.2.3