(E-Mail Removed) wrote:
> Hi,
>
>
> I'm running Linux 2.4.20 on a PC that has one ethernet device.
> However, I have it configured as multihomed as follows:
>
>
> eth0: 192.168.5.100
> eth0:1 192.170.1.200
>
>
> I'm trying to write a multicast program that joins the 239.0.1.1 group
> using the second interface (eth0:1). However, when I used ethereal to
> snoop on the IGMP join packets, the source IP address of those join
> packets is that of eth0 and not eth0:1. I have searched all over the
> net and everything states that I should set the imr_interface field of
> the mreq structure to the IP address of eth0:1 when I perform the
> IP_ADD_MEMBERSHIP setsockopt operation. This doesn't work; it always
> uses the IP address of eth0 instead of eth0:1 in the IGMP join packets.
>
>
i think is correct so.
Try to look the source code of smcroute or mrouted .
Rembeber the multicast traffic is in Level 2 of ISO/OSI Stack.
bye
peppep