[lkml]   [2001]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: Multicast Broadcast
	Andi, forgive my ignorance. I've searched around and can't seem to
find any references to IP_ADD_MEMBERSHIP and how to use it. I did perform an
fgrep() and found the switch in net/ipv4/ip_socketglue.c, but where do I
implement it or how do I call it? Is this something I place in
/etc/sysconfig/network-scriptsifcfg-eth<x> file? Any help would be
EMC Corp
ObjectStor Engineering
4400 Computer Drive
M/S F213
Westboro, MA 01580


"One man can make a difference, and every man should try." - JFK

-----Original Message-----
From: Andi Kleen []
Sent: Monday, November 26, 2001 11:16 AM
Subject: Re: Multicast Broadcast writes:

> One potential work-around is a patch to
> net/ipv4/igmp.c:ip_mc_join_group.
> For example:
> if(!imr->imr_ifindex) {
> imr->ifindex=2; /* eth0 */
> err=ip_mc_join_group(sk, imr);
> if (!err) {
> imr->ifindex=3; /* eth1 */
> err=ip_mc_join_group(sk, imr);
> }
> return err;
> }
> #else
> if(!imr->imr_ifindex)
> in_dev = ip_mc_find_dev(imr);
> #endif
> I'm hoping that there is another way.

It depends on what you want to do, but this "fix" is the same
equivalent to executing IP_ADD_MEMBERSHIP twice with 2 and 3 in the
imr_ifindex field (except that the later doesn't break any programs)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:3.028 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site