Catch up with recent infrastructure changes.

This commit is contained in:
Matthew N. Dodd 2003-03-16 00:24:18 +00:00
parent 04b269f5fe
commit 2d6bcb381e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112309
2 changed files with 2 additions and 7 deletions

View File

@ -666,10 +666,6 @@ oltr_pci_attach(pcici_t config_id, int unit)
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
iso88025_ifattach(ifp);
#if (NBPFILTER > 0) || (__FreeBSD_version > 400000)
bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));
#endif
splx(s);
return;
@ -1464,7 +1460,6 @@ DriverReceiveFrameCompleted(void *DriverHandle, int ByteCount, int FragmentCount
}
ifp->if_ipackets++;
BPF_MTAP(ifp, m0);
iso88025_input(ifp, m0);
} else { /* Receiver error */
if (ReceiveStatus != TRLLD_RCV_NO_DATA) {

View File

@ -212,7 +212,7 @@ pdq_os_receive_pdu(
}
#endif
m->m_pkthdr.len = pktlen;
#if NBPFILTER > 0
#if NBPFILTER > 0 && defined(__NetBSD__)
if (sc->sc_bpf != NULL)
PDQ_BPF_MTAP(sc, m);
#endif
@ -456,8 +456,8 @@ pdq_ifattach(pdq_softc_t *sc)
}
#endif
if_attach(ifp);
#if defined(__NetBSD__)
if_attach(ifp);
fddi_ifattach(ifp, (caddr_t)&sc->sc_pdq->pdq_hwaddr);
#else
fddi_ifattach(ifp, FDDI_BPF_SUPPORTED);