Catch up with recent infrastructure changes.
This commit is contained in:
parent
04b269f5fe
commit
2d6bcb381e
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user