patch-2.1.53 linux/net/core/net_alias.c

Next file: linux/net/core/sock.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.52/linux/net/core/net_alias.c linux/net/core/net_alias.c
@@ -216,6 +216,17 @@
 }
 
 
+/* 
+ * 2 options for multicast:
+ *    1) fake it for aliases.
+ *    2) allow aliases and actual device to set it.
+ * current choice: option 1
+ */
+static void net_alias_setmulticast(struct device *dev)
+{
+}
+
+
 /*
  *	Hard_start_xmit() should not be called.
  *	ignore ... but shout!.
@@ -269,6 +280,8 @@
 	dev->type = main_dev->type;
 	dev->open = net_alias_open;
 	dev->stop = net_alias_close;
+	if (main_dev->set_multicast_list)
+	  dev->set_multicast_list = net_alias_setmulticast;
 	dev->hard_header_len = main_dev->hard_header_len;
 	memcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN);
 	memcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov