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: rt@xxxxxxxxxxx
Date: Thu, 6 Nov 2003 07:24:25 -0800

* 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.

And my apologies to Andreas and Raimar, I see that the patch
is using the setsockopt(..., IP_ADD_MEMBERSHIP, ...) instead of the
SIOCADDMULTI.

They both do the same thing, but I agree that the setsockopt() is more
portable to OS' other than BSD based ones.

Todd

> 
>       Raimar
> 
> -- 
>  email: rf13@xxxxxxxxxxxxxxxxx
>  "Microsoft DNS service terminates abnormally when it recieves a response
>   to a DNS query that was never made.
>   Fix Information: Run your DNS service on a different platform."
>     -- MS service information on bugtraq




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