SiS900 multicast bug in 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the same vein as:
http://seclists.org/lists/linux-kernel/2003/Oct/5794.html

...there is a bug in the SiS900 driver in 2.6.1 which prevents multicast
MAC filtering from working properly.  This breaks IPv6.

Patch attached (same one as from the 2.4 post from Oct 28) that made
IPv6 work for me again.

/cah

--- linux/drivers/net/sis900.c.old	2004-01-17 03:56:53.893211412 -0600
+++ linux/drivers/net/sis900.c	2004-01-17 03:57:02.785567615 -0600
@@ -2091,9 +2091,8 @@
 		rx_mode = RFAAB;
 		for (i = 0, mclist = net_dev->mc_list; mclist && i < net_dev->mc_count;
 		     i++, mclist = mclist->next) {
-			unsigned int bit_nr =
-				sis900_mcast_bitnr(mclist->dmi_addr, revision);
-			mc_filter[bit_nr >> 4] |= (1 << bit_nr);
+			set_bit(sis900_mcast_bitnr(mclist->dmi_addr, revision),
+				mc_filter);
 		}
 	}
 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux