From 450458da5c54b346d37bd11af2c123619d1b5251 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 8 Jun 2005 17:03:04 +0000 Subject: remove netns crud. some drivers actually had hooks for SIOCSIFADDR, most just useless includes "looks good" deraadt miod brad --- sys/arch/sparc/dev/be.c | 20 +------------------- sys/arch/sparc/dev/hme.c | 20 +------------------- sys/arch/sparc/dev/if_ie.c | 25 +------------------------ sys/arch/sparc/dev/qe.c | 20 +------------------- 4 files changed, 4 insertions(+), 81 deletions(-) (limited to 'sys/arch/sparc') diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c index 5e14e6d2d9c..8e1b4966bcd 100644 --- a/sys/arch/sparc/dev/be.c +++ b/sys/arch/sparc/dev/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.36 2005/01/15 05:24:10 brad Exp $ */ +/* $OpenBSD: be.c,v 1.37 2005/06/08 17:03:02 henning Exp $ */ /* * Copyright (c) 1998 Theo de Raadt and Jason L. Wright. @@ -583,24 +583,6 @@ beioctl(ifp, cmd, data) arp_ifinit(&sc->sc_arpcom, ifa); break; #endif /* INET */ -#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. */ - beinit(sc); - break; - } -#endif /* NS */ default: beinit(sc); break; diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 78db38ed1e1..a0913ab4d9b 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.48 2005/04/25 17:55:50 brad Exp $ */ +/* $OpenBSD: hme.c,v 1.49 2005/06/08 17:03:02 henning Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -406,24 +406,6 @@ hmeioctl(ifp, cmd, data) arp_ifinit(&sc->sc_arpcom, ifa); break; #endif /* INET */ -#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. */ - hmeinit(sc); - break; - } -#endif /* NS */ default: ifp->if_flags |= IFF_UP; hmeinit(sc); diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c index c8117b5844b..57fc0eda24b 100644 --- a/sys/arch/sparc/dev/if_ie.c +++ b/sys/arch/sparc/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.30 2005/03/23 17:14:43 miod Exp $ */ +/* $OpenBSD: if_ie.c,v 1.31 2005/06/08 17:03:02 henning Exp $ */ /* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */ /*- @@ -130,11 +130,6 @@ Mode of operation: #include #endif -#ifdef NS -#include -#include -#endif - #include #include @@ -1973,24 +1968,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; diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c index 40993385e1d..24a4a6fc3f6 100644 --- a/sys/arch/sparc/dev/qe.c +++ b/sys/arch/sparc/dev/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.26 2005/01/15 05:24:10 brad Exp $ */ +/* $OpenBSD: qe.c,v 1.27 2005/06/08 17:03:02 henning Exp $ */ /* * Copyright (c) 1998, 2000 Jason L. Wright. @@ -602,24 +602,6 @@ qeioctl(ifp, cmd, data) arp_ifinit(&sc->sc_arpcom, ifa); break; #endif /* INET */ -#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. */ - qeinit(sc); - break; - } -#endif /* NS */ default: qeinit(sc); break; -- cgit v1.2.3