# HG changeset patch # User gthomas # Date 1028118413 0 # Node ID 1eb79d208648381ec99a04942461634ff23efe37 # Parent 21264951b1204aded1c7802714021e2f31f30864 Fix compile error. diff --git a/packages/io/eth/current/ChangeLog b/packages/io/eth/current/ChangeLog --- a/packages/io/eth/current/ChangeLog +++ b/packages/io/eth/current/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 Gary Thomas + + * 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 2002-07-26 Ken Cox diff --git a/packages/io/eth/current/src/net/eth_drv.c b/packages/io/eth/current/src/net/eth_drv.c --- 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;