Diff for /src/sys/contrib/dev/oltr/Attic/if_oltr.c between versions 1.8 and 1.9

version 1.8, 2004/01/06 01:40:45 version 1.9, 2004/02/12 22:38:59
Line 51 Line 51
 #include <net/if_media.h>  #include <net/if_media.h>
 #include <net/iso88025.h>  #include <net/iso88025.h>
   
 #if (__FreeBSD_version < 400000)  #if (NBPFILTER > 0)
 #include <bpfilter.h>  
 #endif  
   
 #if (NBPFILTER > 0) || (__FreeBSD_version > 400000)  
 #include <net/bpf.h>  #include <net/bpf.h>
 #endif  #endif
   
Line 228  static void oltr_intr  (void *); Line 224  static void oltr_intr  (void *);
 static int oltr_ifmedia_upd     (struct ifnet *);  static int oltr_ifmedia_upd     (struct ifnet *);
 static void oltr_ifmedia_sts    (struct ifnet *, struct ifmediareq *);  static void oltr_ifmedia_sts    (struct ifnet *, struct ifmediareq *);
   
 #if __FreeBSD_version > 400000  #if defined(__DragonFly__) || __FreeBSD_version > 400000
   
 static int oltr_pci_probe               (device_t);  static int oltr_pci_probe               (device_t);
 static int oltr_pci_attach      (device_t);  static int oltr_pci_attach      (device_t);
Line 421  oltr_pci_attach(device_t dev) Line 417  oltr_pci_attach(device_t dev)
         ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;          ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
         iso88025_ifattach(ifp);          iso88025_ifattach(ifp);
   
 #if (NBPFILTER > 0) || (__FreeBSD_version > 400000)  #if (NBPFILTER > 0) || defined(__DragonFly__) || (__FreeBSD_version > 400000)
         bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));          bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));
 #endif  #endif
   
Line 663  oltr_pci_attach(pcici_t config_id, int u Line 659  oltr_pci_attach(pcici_t config_id, int u
         ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;          ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
         iso88025_ifattach(ifp);          iso88025_ifattach(ifp);
   
 #if (NBPFILTER > 0) || (__FreeBSD_version > 400000)  #if (NBPFILTER > 0) || defined(__DragonFly__) || (__FreeBSD_version > 400000)
         bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));          bpfattach(ifp, DLT_IEEE802, sizeof(struct iso88025_header));
 #endif  #endif
   
Line 758  outloop: Line 754  outloop:
         sc->tx_head = RING_BUFFER((sc->tx_head + sc->frame_ring[frame].FragmentCount));          sc->tx_head = RING_BUFFER((sc->tx_head + sc->frame_ring[frame].FragmentCount));
         sc->tx_frame++;          sc->tx_frame++;
   
 #if (NBPFILTER > 0) || (__FreeBSD_version > 400000)  #if (NBPFILTER > 0) || defined(__DragonFly__) || (__FreeBSD_version > 400000)
         if (ifp->if_bpf)          if (ifp->if_bpf)
                 bpf_mtap(ifp, m0);                  bpf_mtap(ifp, m0);
 #endif  #endif
Line 1463  DriverReceiveFrameCompleted(void *Driver Line 1459  DriverReceiveFrameCompleted(void *Driver
                                         m->m_len = 0;                                          m->m_len = 0;
                                 }                                  }
                         }                          }
 #if (NBPFILTER > 0) || (__FreeBSD_version > 400000)  #if (NBPFILTER > 0) || defined(__DragonFly__) || (__FreeBSD_version > 400000)
                         if (ifp->if_bpf)                          if (ifp->if_bpf)
                                 bpf_mtap(ifp, m0);                                  bpf_mtap(ifp, m0);
 #endif  #endif

Removed from v.1.8  
changed lines
  Added in v.1.9