patch-1.3.60 linux/drivers/net/3c509.c
Next file: linux/drivers/net/arcnet.c
Previous file: linux/drivers/char/wdt.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Feb 7 08:55:36 1996
- Orig file:
v1.3.59/linux/drivers/net/3c509.c
- Orig date:
Sat Nov 25 19:04:40 1995
diff -u --recursive --new-file v1.3.59/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -640,15 +640,15 @@
printk("%s: Setting Rx mode to %d addresses.\n", dev->name, dev->mc_count);
}
}
- if (dev->mc_count || (dev->flags&IFF_ALLMULTI))
- {
- outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD);
- }
- else if (dev->flags&IFF_PROMISC)
+ if (dev->flags&IFF_PROMISC)
{
outw(SetRxFilter | RxStation | RxMulticast | RxBroadcast | RxProm,
ioaddr + EL3_CMD);
}
+ else if (dev->mc_count || (dev->flags&IFF_ALLMULTI))
+ {
+ outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD);
+ }
else
outw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this