diff --git a/sys/arch/sun3/dev/if_ie.c b/sys/arch/sun3/dev/if_ie.c index 20d207defe52..f9dd799fe043 100644 --- a/sys/arch/sun3/dev/if_ie.c +++ b/sys/arch/sun3/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_ie.c,v 1.36 2001/09/05 13:27:53 tsutsui Exp $ */ +/* $NetBSD: if_ie.c,v 1.37 2001/09/05 13:55:27 tsutsui Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. @@ -356,7 +356,7 @@ ie_attach(sc) /* * Initialize and attach S/W interface */ - bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); + strcpy(ifp->if_xname, sc->sc_dev.dv_xname); ifp->if_softc = sc; ifp->if_start = iestart; ifp->if_ioctl = ieioctl; @@ -1581,8 +1581,8 @@ ieioctl(ifp, cmd, data) ina->x_host = *(union ns_host *)LLADDR(ifp->if_sadl); else - bcopy(ina->x_host.c_host, - LLADDR(ifp->if_sadl), ETHER_ADDR_LEN); + memcpy(LLADDR(ifp->if_sadl), + ina->x_host.c_host, ETHER_ADDR_LEN); /* Set new address. */ ieinit(sc); break; @@ -1668,12 +1668,13 @@ mc_reset(sc) ETHER_FIRST_MULTI(step, &sc->sc_ethercom, enm); while (enm) { if (sc->mcast_count >= MAXMCAST || - bcmp(enm->enm_addrlo, enm->enm_addrhi, 6) != 0) { + ether_cmp(enm->enm_addrlo, enm->enm_addrhi) != 0) { ifp->if_flags |= IFF_ALLMULTI; ieioctl(ifp, SIOCSIFFLAGS, (void *)0); goto setflag; } - bcopy(enm->enm_addrlo, &sc->mcast_addrs[sc->mcast_count], 6); + memcpy(&sc->mcast_addrs[sc->mcast_count], enm->enm_addrlo, + ETHER_ADDR_LEN); sc->mcast_count++; ETHER_NEXT_MULTI(step, enm); }