Mercurial > ecos
changeset 256:1eb79d208648
Fix compile error.
| author | gthomas |
|---|---|
| date | Wed, 31 Jul 2002 12:26:53 +0000 |
| parents | 21264951b120 |
| children | c93a1887a50f |
| files | packages/io/eth/current/ChangeLog packages/io/eth/current/src/net/eth_drv.c |
| diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/eth/current/ChangeLog +++ b/packages/io/eth/current/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 Gary Thomas <gary@chez-thomas.org> + + * src/net/eth_drv.c (eth_drv_start): Fix compile error when + built with old stack (no multicast) - introduced below. + 2002-07-26 Gary Thomas <gary@chez-thomas.org> 2002-07-26 Ken Cox <jkc@redhat.com>
--- a/packages/io/eth/current/src/net/eth_drv.c +++ b/packages/io/eth/current/src/net/eth_drv.c @@ -9,6 +9,7 @@ // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. +// Copyright (C) 2002 Gary Thomas // // eCos is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free @@ -410,15 +411,17 @@ static void eth_drv_start(struct eth_drv_sc *sc) { struct ifnet *ifp = &sc->sc_arpcom.ac_if; - int s; + // 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(); + int 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;
