patch-1.3.33 linux/net/ethernet/eth.c
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Oct 10 15:45:28 1995
- Orig file:
v1.3.32/linux/net/ethernet/eth.c
- Orig date:
Tue Aug 15 20:39:11 1995
diff -u --recursive --new-file v1.3.32/linux/net/ethernet/eth.c linux/net/ethernet/eth.c
@@ -27,6 +27,8 @@
* Greg Page : 802.2 and SNAP stuff.
* Alan Cox : MAC layer pointers/new format.
* Paul Gortmaker : eth_copy_and_sum shouldn't csum padding.
+ * Alan Cox : Protect against forwarding explosions with
+ * older network drivers and IFF_ALLMULTI
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -184,7 +186,12 @@
skb->pkt_type=PACKET_MULTICAST;
}
- else if(dev->flags&IFF_PROMISC)
+ /*
+ * This ALLMULTI check should be redundant by 1.4
+ * so don't forget to remove it.
+ */
+
+ else if(dev->flags&(IFF_PROMISC|IFF_ALLMULTI))
{
if(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
skb->pkt_type=PACKET_OTHERHOST;
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