lkml.org 
[lkml]   [2003]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][ATM] let upper layer know lec supports multicast
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/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.039 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site