Hi,
Actually I'm looking for something that a user (not root) can do from an
application program. It's not that I wanted to send always through en1
and not en0. Like, when we send a unicast address, the kernel routes to the
appropriate interface depending on the destination address. Can we say from
an application program using socket interface to send a multicast packet
through a particular interface ? I'm not sure whether it's possible using
setsockopt, but this also needs "root" privileges I guess! Can't the kernel
route the multicast packet on the interface to which the application has
bound using the "bind" socket call?
thanks
Radhakrishna
Forwarded message:
> From smtp Tue Nov 3 19:32 IST 1998
> From: Tuan Hoang
> Sent: Monday, November 02, 1998 8:06 PM
> To: S.RadhaKrishna
> Subject: Re: IP multicasting on multiple interfaces...
>
> Hi,
>
> When you send any multicast packets, the kernel routes the packet using
> the routing table. Seems that you would just need to do the following to
> modify your routing table.
>
> /sbin/route add -net 224.0.0.0 netmask 240.0.0.0 en1
>
> Send me a copy of your routing table and then I can tell you if you need
> to do anything more.
>
> hope this helps.
>
> Tuan
>
> On Mon, 2 Nov 1998, S.RadhaKrishna wrote:
>
> > I have a m/c with the following IP configurations :
> >
> > en0 : 192.9.205.217
> >
> > en1 : 192.9.2.217
> >
> > I want to send a multicast packet using socket (SOCK_DGRAM) calls (sendto)
> > through the "en1" interface. How can I tell the system that it should send
> > the multicast packets thru en1 and not en0 ? Linux by default sends through
> > the en0 interface. Binding to a particular interface using bind call didn't
> > help!!
> >
> > PS: As I'm not a member of this news group, please mark a copy to
> > "[EMAIL PROTECTED]" in response to this query.
> >
> > tia
> > Radhakrishna
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-net" in
> > the body of a message to [EMAIL PROTECTED]
> >
>
>
>
>
RadhaKrishna Phone(off) : 2241730 extn:3409
-------
Education is meant "not to fill an empty vessel, but to turn the eye of the
soul towards light" ---- Plato
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]