aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-10-12 14:14:27 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-10-12 14:14:27 +0000
commit4de66141a87be086a83ac0387d96a182e8e00793 (patch)
tree593450ad808aaa1030843202f91af8e70ec659bb /sys/dev
parentd6038ed62941d72e77da714cb64355f64b0e7db6 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/de/if_de.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 7a8d3daa6f26..be066e718ce0 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.69 1997/09/18 08:28:23 peter Exp $
+ * $Id: if_de.c,v 1.70 1997/09/20 02:29:56 peter Exp $
*
*/
@@ -70,6 +70,11 @@
#include <netinet/in.h>
#endif
+#ifdef IPX
+#include <netipx/ipx.h>
+#include <netipx/ipx_if.h>
+#endif
+
#ifdef NS
#include <netns/ns.h>
#include <netns/ns_if.h>
@@ -4224,6 +4229,22 @@ tulip_ifioctl(
}
#endif /* INET */
+#ifdef IPX
+ case AF_IPX: {
+ struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
+ if (ipx_nullhost(*ina)) {
+ ina->x_host = *(union ipx_host *)(sc->tulip_enaddr);
+ } else {
+ ifp->if_flags &= ~IFF_RUNNING;
+ bcopy((caddr_t)ina->x_host.c_host,
+ (caddr_t)sc->tulip_enaddr,
+ sizeof(sc->tulip_enaddr));
+ }
+ tulip_init(sc);
+ break;
+ }
+#endif /* IPX */
+
#ifdef NS
/*
* This magic copied from if_is.c; I don't use XNS,