From 69eb3008fd7c3ef1de34f9de181036c0e4610954 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sun, 5 May 1996 13:39:51 +0000 Subject: add general ether_ioctl call in net/if_ethersubr.c, NS,IPX,X.25 special processing is now handled in there. reflect this amazing addition in all the ether ifaces. ppl, pls check the stuff. --- sys/arch/sparc/dev/if_ie.c | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'sys/arch/sparc/dev/if_ie.c') diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c index 9646afb053a..20aa5204d26 100644 --- a/sys/arch/sparc/dev/if_ie.c +++ b/sys/arch/sparc/dev/if_ie.c @@ -129,11 +129,6 @@ Mode of operation: #include #endif -#ifdef NS -#include -#include -#endif - #include /* @@ -1932,6 +1927,11 @@ ieioctl(ifp, cmd, data) s = splnet(); + if ((error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data)) > 0) { + splx(s); + return error; + } + switch(cmd) { case SIOCSIFADDR: @@ -1944,24 +1944,6 @@ ieioctl(ifp, cmd, data) arp_ifinit(&sc->sc_arpcom, ifa); break; #endif -#ifdef NS - /* XXX - This code is probably wrong. */ - case AF_NS: - { - struct ns_addr *ina = &IA_SNS(ifa)->sns_addr; - - if (ns_nullhost(*ina)) - ina->x_host = - *(union ns_host *)(sc->sc_arpcom.ac_enaddr); - else - bcopy(ina->x_host.c_host, - sc->sc_arpcom.ac_enaddr, - sizeof(sc->sc_arpcom.ac_enaddr)); - /* Set new address. */ - ieinit(sc); - break; - } -#endif /* NS */ default: ieinit(sc); break; -- cgit v1.2.3