diff options
author | julian <julian@FreeBSD.org> | 1995-10-26 20:31:59 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-10-26 20:31:59 +0000 |
commit | 90ae06d6ac1d2da3758389a70a20c91f3e9fd1dc (patch) | |
tree | d823a4d0efac391c6dfad3ac2e27c0e984cea732 /sys/i386/isa/if_ze.c | |
parent | 627b063e661d2c0187cf625f83db54c6aca0a0c1 (diff) | |
download | FreeBSD-src-90ae06d6ac1d2da3758389a70a20c91f3e9fd1dc.zip FreeBSD-src-90ae06d6ac1d2da3758389a70a20c91f3e9fd1dc.tar.gz |
Reviewed by: julian and jhay@mikom.csir.co.za
Submitted by: Mike Mitchell, supervisor@alb.asctmd.com
This is a bulk mport of Mike's IPX/SPX protocol stacks and all the
related gunf that goes with it..
it is not guaranteed to work 100% correctly at this time
but as we had several people trying to work on it
I figured it would be better to get it checked in so
they could all get teh same thing to work on..
Mikes been using it for a year or so
but on 2.0
more changes and stuff will be merged in from other developers now that this is in.
Mike Mitchell, Network Engineer
AMTECH Systems Corporation, Technology and Manufacturing
8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000
supervisor@alb.asctmd.com
Diffstat (limited to 'sys/i386/isa/if_ze.c')
-rw-r--r-- | sys/i386/isa/if_ze.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index ac78d97..cad7fc8 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,7 +47,7 @@ */ /* - * $Id: if_ze.c,v 1.20 1995/09/26 08:57:47 phk Exp $ + * $Id: if_ze.c,v 1.21 1995/10/13 19:47:52 wollman Exp $ */ #include "ze.h" @@ -75,6 +75,11 @@ #include <netinet/if_ether.h> #endif +#ifdef IPX +#include <netipx/ipx.h> +#include <netipx/ipx_if.h> +#endif + #ifdef NS #include <netns/ns.h> #include <netns/ns_if.h> @@ -1349,6 +1354,32 @@ ze_ioctl(ifp, command, data) arp_ifinit((struct arpcom*) ifp, ifa); break; #endif +#ifdef IPX + /* + * XXX - This code is probably wrong + */ + case AF_IPX: + { + register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); + + if (ipx_nullhost(*ina)) + ina->x_host = + *(union ipx_host *)(sc->arpcom.ac_enaddr); + else { + /* + * + */ + bcopy((caddr_t)ina->x_host.c_host, + (caddr_t)sc->arpcom.ac_enaddr, + sizeof(sc->arpcom.ac_enaddr)); + } + /* + * Set new address + */ + ze_init(ifp->if_unit); + break; + } +#endif #ifdef NS /* * XXX - This code is probably wrong |