patch-1.3.51 linux/drivers/net/apricot.c

Next file: linux/drivers/net/pt.c
Previous file: linux/drivers/net/README.pt
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.50/linux/drivers/net/apricot.c linux/drivers/net/apricot.c
@@ -960,7 +960,7 @@
 	struct i596_cmd *cmd;
 
 	if (i596_debug > 1)
-		printk ("%s: set multicast list %d\n", dev->name, num_addrs);
+		printk ("%s: set multicast list %d\n", dev->name, dev->mc_count);
 
 	if (dev->mc_count > 0) 
 	{
@@ -974,10 +974,10 @@
 		}
 		cmd->command = CmdMulticastList;
 		*((unsigned short *) (cmd + 1)) = dev->mc_count * 6;
-		cp=((char *)(cmd + 1))+2
+		cp=((char *)(cmd + 1))+2;
 		for(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
 		{
-			memcpy(cp, addr,6);
+			memcpy(cp, dmi,6);
 			cp+=6;
 		}
 		print_eth (((char *)(cmd + 1)) + 2);

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