Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6707) Announce server on LAN
Home

[Freeciv-Dev] Re: (PR#6707) Announce server on LAN

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: andrearo@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6707) Announce server on LAN
From: "Todd Goodman" <tsg@xxxxxxxxxxxxx>
Date: Fri, 7 Nov 2003 08:37:14 -0800
Reply-to: rt@xxxxxxxxxxx

* andrearo@xxxxxxxxxxxx <andrearo@xxxxxxxxxxxx> [031107 11:12]:
> On Thu, 6 Nov 2003 rt@xxxxxxxxxxx wrote:
> > * Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx> [031105 17:13]:
> > > On Wed, Nov 05, 2003 at 12:28:18PM -0800, Todd Goodman wrote:
> > > > > As you can see, the interface eth0 has joined the 237.0.0.1 group.
> > > > > After the client and server are done sending packets to each other, 
> > > > > the
> > > > > interface eth0 leaves the group 237.0.0.1. This is group management is
> > > > > handled by the operating system kernel, and is invisible to the user.
> > > >
> > > > I think adding the group automatically might just be a Linux thing 
> > > > though.
> > >
> > > Is there some more data/facts on this issue?
> >
> > I tried the attached test program on Solaris 2.8 without the
> > setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, ...) and it would not
> > receive anything sent to the mulicast address.
> 
> So this means that the lan-patch for Freeciv would also work on Solaris
> 2.8? I would think so.

Yes, the IP_ADD_MEMBERSHIP is adding us to the multicast group (just
like the SIOCADDMULTI ioctl() does.)

I think the LAN patch would work on Solaris but haven't tried it
explicitly.

> 
> I just tested the lan-patch on a SunOS 5.9 (Solaris 7 x86), and
> it works (just like Linux) for any multicast group I choose.
> 
> So far, only Netbsd has insisted on using only the all-hosts group.
> Could it be a bug in NetBsd? Can it be solved by using autoconf?

NetBSD may need to use the SIOCADDMULTI ioctl() instead of the
IP_ADD_MEMBERSHIP setsockopt().

I don't have a NetBSD system to test this on though.

Todd

> 
> 
>  Andreas Røsdal
> 




[Prev in Thread] Current Thread [Next in Thread]