s/sc->sc_ethercom.ec_if./ifp->/ where appropriate and formerly forgotten,

for better readability.
This commit is contained in:
is 2000-06-23 14:07:03 +00:00
parent 139e08bead
commit a4c83bd5bf

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iy.c,v 1.37 2000/06/23 13:54:50 is Exp $ */
/* $NetBSD: if_iy.c,v 1.38 2000/06/23 14:07:03 is Exp $ */
/* #define IYDEBUG */
/* #define IYMEMDEBUG */
@ -968,8 +968,7 @@ iyget(sc, iot, ioh, rxlen)
if ((ifp->if_flags & IFF_PROMISC) &&
(eh->ether_dhost[0] & 1) == 0 &&
bcmp(eh->ether_dhost,
LLADDR(sc->sc_ethercom.ec_if.if_sadl),
sizeof(eh->ether_dhost)) != 0) {
LLADDR(ifp->if_sadl), sizeof(eh->ether_dhost)) != 0) {
m_freem(top);
return;
@ -1111,10 +1110,9 @@ iyioctl(ifp, cmd, data)
if (ns_nullhost(*ina))
ina->x_host = *(union ns_host *)
LLADDR(sc->sc_ethercom.ec_if.if_sadl);
LLADDR(ifp->if_sadl);
else
bcopy(ina->x_host.c_host,
LLADDR(sc->sc_ethercom.ec_if.if_sadl),
bcopy(ina->x_host.c_host, LLADDR(ifp->if_sadl),
ETHER_ADDR_LEN);
/* Set new address. */
iyinit(sc);
@ -1304,7 +1302,7 @@ iy_mc_setup(sc)
break;
}
sc->tx_start = sc->tx_end;
sc->sc_ethercom.ec_if.if_flags &= ~IFF_OACTIVE;
ifp->if_flags &= ~IFF_OACTIVE;
}