delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/29/12:51:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 29 Sep 2005 18:50:53 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: IP_MULTICAST_IF et. all / Winsock[2] value conflict
Message-ID: <20050929165053.GU12256@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0509291103421 DOT 2244 AT PC1163-8460-XP DOT flightsafety DOT com>
Mime-Version: 1.0
In-Reply-To: <Pine.CYG.4.58.0509291103421.2244@PC1163-8460-XP.flightsafety.com>
User-Agent: Mutt/1.4.2i

On Sep 29 11:27, Brian Ford wrote:
> I'm having a problem with IP_MULTICAST_IF not working on Cygwin.  While
> investigating, I came across this MS KB article that might describe my
> problem:
> 
> http://support.microsoft.com/default.aspx?scid=kb;en-us;257460
> 
> IP_MULTICAST_IF can have two values (2 or 9) depending on whether you're
> linking to Winsock 1 or 2.  By preprocessing my source and looking in
> /usr/include/cygwin/socket.h, I see we are using the value 2 which means
> it will only work if we link to Winsock 1?
> 
> IIRC, Cygwin dynamically loads which ever library is present or version 2
> if both are available?  I assume we are loading version 2 on my system
> given it is WinXP?
> 
> I don't understand the Cygwin magic to do this well enough to supply a
> patch.  I also don't understand how including Winsock2.h followed by
> Ws2tcpip.h is supposed to allow you to link against either library.
> 
> Here's hoping that Corinna or someone else is less confused and can supply
> a fix to either Cygwin or my limited understanding.  Thanks.

There's no easy fix right now.  We have to drop all traces of Winsock1
in Cygwin and change the headers accordingly.  Since you didn't say
what problem you had, I assume that IP_MULTICAST_IF just didn't do what
you wanted.  Did you try to use just the value 9 instead of IP_MULTICAST_IF?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019