Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 11:27:10 -0500 From: Brian Ford Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: IP_MULTICAST_IF et. all / Winsock[2] value conflict Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes 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. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- 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/