From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7D1u-0007Tj-5g for qemu-devel@nongnu.org; Thu, 09 Feb 2006 09:44:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7Cm9-00040w-Ik for qemu-devel@nongnu.org; Thu, 09 Feb 2006 09:28:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7CLa-0000Hi-Ut for qemu-devel@nongnu.org; Thu, 09 Feb 2006 09:00:35 -0500 Received: from [211.5.2.69] (helo=nm01omta01d.dion.ne.jp) by monty-python.gnu.org with smtp (Exim 4.52) id 1F7CP8-0005GY-QA for qemu-devel@nongnu.org; Thu, 09 Feb 2006 09:04:15 -0500 Message-ID: <005301c62d81$31d9db70$0464a8c0@athlon> From: "Kazu" References: <000c01c62638$d55e7800$0464a8c0@athlon><43E13FEC.7050804@bellard.org> <000a01c627df$fc48d660$0464a8c0@athlon> <43E4F24F.6040908@bellard.org> Subject: Re: [Qemu-devel][PATCH] Tap and VLAN socket support for win32 Date: Thu, 9 Feb 2006 23:00:33 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0050_01C62DCC.A172C730" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_0050_01C62DCC.A172C730 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, I send this mail again because it doesn't reach qemu-devel list by unknown security reason. Sent: Sunday, February 05, 2006 3:28 AM Fabrice Bellard wrote: > Kazu wrote: >> Thursday, February 02, 2006 8:10 AM Fabrice Bellard wrote: >> >>> Hi, >>> >>> I merged your patches and I made important changes to simplify them. I >>> did not do any tests so tell me if you see problems. >>> >> >> -net socket,connect doesn't work. On Windows host, connect returns with err >> = WSAEWOULDBLOCK and second time err = WSAEINVAL. I think changing the >> place >> of EWOULDBLOCK would be good. On Linux host, EWOULDBLOCK is the same as >> EAGAIN but a patch works on both Linux and Windows. > > Unfortunately on Linux the correct return value we are expecting is > EINPROGRESS. EAGAIN means that the 'connect' was not initiated so it is > necessary to redo it. > There is not good way to detect a completion of asynchronous connect. So I used an event object to detect it. A patch is attached. >> >> For -net socket,mcast, bind have to be done by sin_addr.s_addr = >> INADDR_ANY. >> It seems that it works on Linux host. > > It works on Linux but it is not correct because it prevents from > listening to several multicast addresses at the same time. If doing the > same on Windows is not possible I agree to make a special case. > I couldn't find a way to set a multicast address. I made it a special case in the patch Regards, Kazu ------=_NextPart_000_0050_01C62DCC.A172C730 Content-Type: application/x-gzip; name="qemu-20060208-vlan-2.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qemu-20060208-vlan-2.patch.gz" H4sICCGM6UMAA3FlbXUtMjAwNjAyMDgtdmxhbi0yLnBhdGNoAK1XbXOaWBT+HH/FqZ06EDEB32J1 04k1pMPU4o7aZHa2OwyRS8IUwXLRttvpf99z7wUEwbS7XT4I3HteHp7zco9G4JAvQ9j5Z6va5a9f tflkAa7nkyGc03AbrQg9/0TWW/HDvCi7WkTiyCM7L3iACG/UCwPQzrR+u+Z4rgutLbQi/i5gtVot /nDSgxtyD21V7YPaHWrdYVeDlorXidBuNptCcJAT7A176rA9EIK1qytoaeqgo7yEJr9rKlxd1aAG zx3iegEBGq4+ktgiURRGkgx3i/EbEk9tGutiBSW3yJkLumEu57VWqqffzd5Pr19PZ5O3TCn3mpNh KiAuJnNgwTB/n8/ezPXFItlNX2vNKi9w6KdZ5SfnqVnlCY77Gl9fz83Zcnw7NqZcKr/AOKOxHXsr 2IWek/K28okdbDcSW0OuvgnGtU5f6SPjWudC6b3kjLPLC1exLxQl11HgxpiZr42ZAo1wE8ujGnxH L83EixfEqRPKArQjQSwt8Lv1JTBlBvBWN5dwunnU2aaMut9qTe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