summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
038208f)
SCCS-vsn: sys/tahoe/if/if_ace.c 1.6
-/* if_ace.c 1.5 86/01/21 */
+/* if_ace.c 1.6 86/01/21 */
/*
* ACC VERSAbus Ethernet controller
/*
* ACC VERSAbus Ethernet controller
if (!arpresolve(&is->is_ac, m, &idst, edst))
return (0); /* if not yet resolved */
if (!bcmp((caddr_t)edst, (caddr_t)etherbroadcastaddr,
if (!arpresolve(&is->is_ac, m, &idst, edst))
return (0); /* if not yet resolved */
if (!bcmp((caddr_t)edst, (caddr_t)etherbroadcastaddr,
mcopy = m_copy(m, 0, (int)M_COPYALL);
off = ntohs((u_short)mtod(m, struct ip *)->ip_len) - m->m_len;
/* need per host negotiation */
mcopy = m_copy(m, 0, (int)M_COPYALL);
off = ntohs((u_short)mtod(m, struct ip *)->ip_len) - m->m_len;
/* need per host negotiation */
#endif
#ifdef NS
case AF_NS: {
#endif
#ifdef NS
case AF_NS: {
- struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr);
+ struct ns_addr *ina = &IA_SNS(ifa)->sns_addr;
+ struct ace_softc *is = &ace_softc[ifp->if_unit];
if (!ns_nullhost(*ina)) {
ifp->if_flags &= ~IFF_RUNNING;
if (!ns_nullhost(*ina)) {
ifp->if_flags &= ~IFF_RUNNING;
- sin = (struct sockaddr_in *)&ifr->ifr_addr;
addr = (struct acedevice *)
addr = (struct acedevice *)
- (aceinfo[ifp->if_unit]->ui_addr);
+ aceinfo[ifp->if_unit]->ui_addr;
movow(&addr->csr, CSR_RESET);
DELAY(10000);
/* set station address & copy addr to arp */
acesetetaddr(ifp->if_unit, addr,
ina->x_host.c_host);
} else
movow(&addr->csr, CSR_RESET);
DELAY(10000);
/* set station address & copy addr to arp */
acesetetaddr(ifp->if_unit, addr,
ina->x_host.c_host);
} else
- ina->x_host = *(union ns_host *)(es->es_addr);
+ ina->x_host = *(union ns_host *)is->is_addr;
aceinit(ifp->if_unit);
break;
}
aceinit(ifp->if_unit);
break;
}