lkml.org 
[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Multicast Broadcast
Date
	Wouldn't the IP address for the two NIC's have to be different for
that to work? I'm binding the same VIP to the two eth's.

-----Original Message-----
From: Andi Kleen [mailto:ak@suse.de]
Sent: Monday, November 26, 2001 11:16 AM
To: berthiaume_wayne@emc.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Multicast Broadcast


berthiaume_wayne@emc.com writes:

> One potential work-around is a patch to
> net/ipv4/igmp.c:ip_mc_join_group.
> For example:
>
> #ifdef DUAL_MCAST_BIND
> 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)

-Andi
-
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:13    [W:0.049 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site