This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] net/eth_drv.c


Hi all,

It seems that the generic openbsd tcpip stack doesn't have 
if_multiaddrs in struct ifnet.
The patch below makes compile success for the time being.

Thanks,
Motoya Kurotsu
Allied Telesis K.K.

--- eth_drv.c.orig	Sat Jul 27 12:02:43 2002
+++ eth_drv.c	Wed Jul 31 12:48:00 2002
@@ -410,15 +410,19 @@
 eth_drv_start(struct eth_drv_sc *sc)
 {
     struct ifnet *ifp = &sc->sc_arpcom.ac_if;
+#ifdef CYGPKG_NET_FREEBSD_STACK
     int s;
+#endif
     // Perform any hardware initialization
     (sc->funs->start)(sc, (unsigned char *)&sc->sc_arpcom.ac_enaddr, 0);
+#ifdef CYGPKG_NET_FREEBSD_STACK
     // resend multicast addresses if present
     if(ifp->if_multiaddrs.lh_first && ifp->if_ioctl) {
       	s = splimp();
 	ifp->if_ioctl(ifp, SIOCADDMULTI, 0);
 	splx(s);
     }
+#endif
     // Set 'running' flag, and clear output active flag.
     ifp->if_flags |= IFF_RUNNING;
     ifp->if_flags &= ~IFF_OACTIVE;

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]