summaryrefslogtreecommitdiff
path: root/sys/arch/arm32/podulebus/if_ea.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm32/podulebus/if_ea.c')
-rw-r--r--sys/arch/arm32/podulebus/if_ea.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/sys/arch/arm32/podulebus/if_ea.c b/sys/arch/arm32/podulebus/if_ea.c
index 1104d512f7f..de1d1d3576e 100644
--- a/sys/arch/arm32/podulebus/if_ea.c
+++ b/sys/arch/arm32/podulebus/if_ea.c
@@ -73,11 +73,6 @@
#include <netinet/if_ether.h>
#endif
-#ifdef NS
-#include <netns/ns.h>
-#include <netns/ns_if.h>
-#endif
-
#include "bpfilter.h"
#if NBPFILTER > 0
#include <net/bpf.h>
@@ -1445,6 +1440,11 @@ ea_ioctl(ifp, cmd, data)
s = splimp();
+ if ((error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data)) > 0) {
+ splx(s);
+ return error;
+ }
+
switch (cmd) {
case SIOCSIFADDR:
@@ -1459,25 +1459,6 @@ ea_ioctl(ifp, cmd, data)
ea_init(sc);
break;
#endif
-#ifdef NS
- /* XXX - This code is probably wrong. */
- case AF_NS:
- {
- register 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. */
- dprintf(("Interface ea is coming up (AF_NS)\n"));
- ea_init(sc);
- break;
- }
-#endif
default:
dprintf(("Interface ea is coming up (default)\n"));
ea_init(sc);