[PATCH][ATM] let upper layer know lec supports multicast

From: chas williams (chas@locutus.cmf.nrl.navy.mil)
Date: Tue Feb 25 2003 - 06:56:09 EST


the ip layer uses the presence of the .set_multicast_list to determine
if the underlying network device supports multicast.

Index: linux/net/atm/lec.c
===================================================================
RCS file: /home/chas/CVSROOT/linux/net/atm/lec.c,v
retrieving revision 1.7
diff -u -d -b -w -r1.7 lec.c
--- linux/net/atm/lec.c 24 Feb 2003 13:34:43 -0000 1.7
+++ linux/net/atm/lec.c 25 Feb 2003 11:49:42 -0000
@@ -617,6 +617,14 @@
         return 0;
 }
 
+static void lec_set_multicast_list(struct net_device *dev)
+{
+ /* by default, all multicast frames arrive over the bus.
+ * eventually support selective multicast service
+ */
+ return;
+}
+
 static void
 lec_init(struct net_device *dev)
 {
@@ -626,7 +634,7 @@
         dev->hard_start_xmit = lec_send_packet;
 
         dev->get_stats = lec_get_stats;
- dev->set_multicast_list = NULL;
+ dev->set_multicast_list = lec_set_multicast_list;
         dev->do_ioctl = NULL;
         printk("%s: Initialized!\n",dev->name);
         return;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 28 2003 - 22:00:27 EST