# HG changeset patch # User asl # Date 1049385333 0 # Node ID 370be9d427837c09daac3c005b9930d6dbbf81e1 # Parent 17dd6922881bb36ba7c34865cad87f1a6bc73a42 * src/syntheth.c (synth_eth_init): Set the flag IFF_ALLMULTI when the underlying device supports multicast so eth_drv correctly sets mutlicast filtering. diff --git a/packages/devs/eth/synth/ecosynth/current/ChangeLog b/packages/devs/eth/synth/ecosynth/current/ChangeLog --- a/packages/devs/eth/synth/ecosynth/current/ChangeLog +++ b/packages/devs/eth/synth/ecosynth/current/ChangeLog @@ -1,7 +1,8 @@ 2003-04-01 Andrew Lunn - * src/syntheth.c (synth_eth_init): Set the flag IFF_ALLMULTI so - eth_drv correctly sets mutlicast filtering. + * src/syntheth.c (synth_eth_init): Set the flag IFF_ALLMULTI when + the underlying device supports multicast so eth_drv correctly sets + mutlicast filtering. * cdl/syntheth.cdl: This driver implements multicast. 2003-02-25 Jonathan Larmour diff --git a/packages/devs/eth/synth/ecosynth/current/src/syntheth.c b/packages/devs/eth/synth/ecosynth/current/src/syntheth.c --- a/packages/devs/eth/synth/ecosynth/current/src/syntheth.c +++ b/packages/devs/eth/synth/ecosynth/current/src/syntheth.c @@ -453,7 +453,9 @@ synth_eth_init(struct cyg_netdevtab_entr (*sc->funs->eth_drv->init)(sc, eth->MAC); #ifdef CYGPKG_NET - sc->sc_arpcom.ac_if.if_flags |= IFF_ALLMULTI; + if (eth->multi_supported) { + sc->sc_arpcom.ac_if.if_flags |= IFF_ALLMULTI; + } #endif return result; }