Re: Multicast sending

2007-06-11 Thread Philip Guenther
On 6/11/07, Damien Miller <[EMAIL PROTECTED]> wrote: ... The test program doesn't set sin_len. Try adding "addr.sin_len = sizeof(addr);". I don't believe that's necessary. According to Stevens's "UNIX Network Programming", the only time a user-space program needs to set the sin_len member is w

Re: Multicast sending

2007-06-11 Thread Damien Miller
On Sun, 10 Jun 2007, Praveen wrote: > Hi, > I am using the send program from this example: > http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html#sender > > The only modification is the use of setsockopt() to > set the interface from which I want to send the > packet. > The setsoc

Re: Multicast sending error

2007-06-11 Thread Praveen
> You need to configure your machine as a multicast > host by adding the line > multicast_host=YES Thank you very much, its working now. regards Praveen PS:forgot CC to the list Now that's room service!

Re: Multicast sending error

2007-06-11 Thread Philip Guenther
On 6/10/07, tantric The <[EMAIL PROTECTED]> wrote: I tried this program(below) on Linux & OpenBSD. It works on Linux but not on OpenBSD. The program, which is trivial, tries to send a multicast packet to a mcast group. send() fails with "Host is down" error message. Its working perfectly with L