summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-06-08 17:03:04 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-06-08 17:03:04 +0000
commit450458da5c54b346d37bd11af2c123619d1b5251 (patch)
tree982a4b774f0670ece704a67504425c6287f8c1ce /sys/dev/sbus
parent7a5793168be0f07f61e9204f04930140c0697c78 (diff)
remove netns crud.
some drivers actually had hooks for SIOCSIFADDR, most just useless includes "looks good" deraadt miod brad
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/be.c23
-rw-r--r--sys/dev/sbus/qe.c23
2 files changed, 2 insertions, 44 deletions
diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c
index f37d1d09550..09b700c5e92 100644
--- a/sys/dev/sbus/be.c
+++ b/sys/dev/sbus/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.16 2005/01/15 05:24:12 brad Exp $ */
+/* $OpenBSD: be.c,v 1.17 2005/06/08 17:03:01 henning Exp $ */
/* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */
/*-
@@ -90,11 +90,6 @@
#include <netinet/if_ether.h>
#endif
-#ifdef NS
-#include <netns/ns.h>
-#include <netns/ns_if.h>
-#endif
-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
@@ -961,22 +956,6 @@ beioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
arp_ifinit(&sc->sc_arpcom, ifa);
break;
#endif /* INET */
-#ifdef NS
- case AF_NS:
- {
- struct ns_addr *ina = &IA_SNS(ifa)->sns_addr;
-
- if (ns_nullhost(*ina))
- ina->x_host =
- *(union ns_host *)LLADDR(ifp->if_sadl);
- else
- bcopy(ina->x_host.c_host, LLADDR(ifp->if_sadl),
- sizeof(sc->sc_arpcom.ac_enaddr));
- /* Set new address. */
- beinit(sc);
- break;
- }
-#endif /* NS */
default:
beinit(sc);
break;
diff --git a/sys/dev/sbus/qe.c b/sys/dev/sbus/qe.c
index 8e086f1de79..0af3e693729 100644
--- a/sys/dev/sbus/qe.c
+++ b/sys/dev/sbus/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.16 2005/01/15 05:24:12 brad Exp $ */
+/* $OpenBSD: qe.c,v 1.17 2005/06/08 17:03:01 henning Exp $ */
/* $NetBSD: qe.c,v 1.16 2001/03/30 17:30:18 christos Exp $ */
/*-
@@ -100,11 +100,6 @@
#include <netinet/if_ether.h>
#endif
-#ifdef NS
-#include <netns/ns.h>
-#include <netns/ns_if.h>
-#endif
-
#if NBPFILTER > 0
#include <net/bpf.h>
#endif
@@ -939,22 +934,6 @@ qeioctl(ifp, cmd, data)
arp_ifinit(&sc->sc_arpcom, ifa);
break;
#endif /* INET */
-#ifdef NS
- case AF_NS:
- {
- struct ns_addr *ina = &IA_SNS(ifa)->sns_addr;
-
- if (ns_nullhost(*ina))
- ina->x_host =
- *(union ns_host *)LLADDR(ifp->if_sadl);
- else
- bcopy(ina->x_host.c_host, LLADDR(ifp->if_sadl),
- sizeof(sc->sc_arpcom.ac_enaddr));
- /* Set new address. */
- qeinit(sc);
- break;
- }
-#endif /* NS */
default:
qeinit(sc);
break;