[Openais] mreg patch for multicast
Steven Dake
sdake at mvista.com
Wed Jun 23 11:42:13 PDT 2004
Yixiong,
I had a look at the code and there was an extra htonl. Try this patch
instead if you can.
Thanks
-steve
On Wed, 2004-06-23 at 11:04, Zou, Yixiong wrote:
> Hi Steve,
>
> I patched the gim.c but it still fails during the startup:
>
> [yzou at matrix exec]$ sudo ./aisexec
> join multicast group failed: No such device
> L(4): AIS Executive Service: Copyright (C) 2002-2004 MontaVista Software, Inc.
> L(4): AIS Executive Service: started and ready to receive connections.
>
> Somehow the setsockopt() is still giving the same error. And here's
> the output of my `uname -a` command:
>
> Linux matrix 2.4.22-1.2188.nptlsmp #1 SMP Wed Apr 21 20:12:56 EDT 2004 i686 i686 i386 GNU/Linux
>
> It's a Fedora Core 1 box. I can run aisexec fine if I switch to a
> 2.6.6 kernel though.
>
> ------------------------------------------------------------------------
>
> Yixiong Zou (yixiong.zou at intel.com)
>
> (626) 443-0100
>
> All views expressed in this email are those of the individual sender.
>
>
>
> > -----Original Message-----
> > From: Steven Dake [mailto:sdake at mvista.com]
> > Sent: Tuesday, June 22, 2004 5:56 PM
> > To: Zou, Yixiong
> > Cc: openais at lists.osdl.org
> > Subject: RE: [Openais] Your Contributions
> >
> >
> > >
> > > - The aisexec can be compiled on a Fedora Core 1 system,
> > but running it
> > > will fail. I think the multicast isn't enabled in the
> > default Fedora Core 1
> > > kernel. It failed during the setsockopt() call with the
> > "IP_ADD_MEMBERSHIP"
> > > flag. So it will be better if this fact is documented somewhere.
> > >
> >
> > I suspect this may be an incomptibility with the current
> > method used to
> > join a multicast group. It seems to work on some Linux
> > versions and not
> > others. I've rewritten some of the gmi_init code that selects the
> > interface addresses (and uses mreq, instead of mreqn) in a pending
> > patch. I've attached a patch that works on all my targets
> > and Darwin.
> > Can you try it out?
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mreq-2.patch
Type: text/x-patch
Size: 3797 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20040623/5c30a1ea/mreq-2-0001.bin
More information about the Openais
mailing list