From 86101139cf2ff1cd83fa6d5168a273f9df0cc3e4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 4 Aug 1996 11:45:37 +0000 Subject: [PATCH] Make the NS and IPX cases compile again. --- sys/net/if_ethersubr.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index d9c282d29ee..4447f868d2d 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ethersubr.c,v 1.21 1996/06/19 01:50:10 julian Exp $ + * $Id: if_ethersubr.c,v 1.22 1996/08/04 10:54:13 phk Exp $ */ #include @@ -810,14 +810,16 @@ ether_ioctl(struct ifnet *ifp, int command, caddr_t data) case AF_IPX: { register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); + struct arpcom *ac = (struct arpcom *) (ifp->if_softc); if (ipx_nullhost(*ina)) ina->x_host = - *(union ipx_host *) (sc->arpcom.ac_enaddr); + *(union ipx_host *) + ac->ac_enaddr; else { bcopy((caddr_t) ina->x_host.c_host, - (caddr_t) sc->arpcom.ac_enaddr, - sizeof(sc->arpcom.ac_enaddr)); + (caddr_t) ac->ac_enaddr, + sizeof(ac->ac_enaddr)); } /* @@ -834,14 +836,15 @@ ether_ioctl(struct ifnet *ifp, int command, caddr_t data) case AF_NS: { register struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr); + struct arpcom *ac = (struct arpcom *) (ifp->if_softc); if (ns_nullhost(*ina)) ina->x_host = - *(union ns_host *) (sc->arpcom.ac_enaddr); + *(union ns_host *) (ac->ac_enaddr); else { bcopy((caddr_t) ina->x_host.c_host, - (caddr_t) sc->arpcom.ac_enaddr, - sizeof(sc->arpcom.ac_enaddr)); + (caddr_t) ac->ac_enaddr, + sizeof(ac->ac_enaddr)); } /*