qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreig


From: Stefan Weil
Subject: [Qemu-devel] [Bug 1569988] Re: [2.6] user network broken reaching foreign servers on Win64
Date: Thu, 14 Apr 2016 11:49:00 -0000

Here is a patch which fixes the problem.

diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 2027a75..696867f 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -587,7 +587,7 @@ findso:
 
          if ((tcp_fconnect(so, so->so_ffamily) == -1) &&
 #if defined(_WIN32)
-              socket_error() != WSAEWOULDBLOCK
+              socket_error() != EAGAIN
 #else
               (errno != EINPROGRESS) && (errno != EWOULDBLOCK)
 #endif


Latest QEMU needs a slightly different patch:

diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 5433e7f..3be2d2f 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -659,6 +659,7 @@ findso:
          }
 
          if ((tcp_fconnect(so, so->so_ffamily) == -1) &&
+              socket_error() != EAGAIN &&
               (errno != EINPROGRESS) && (errno != EWOULDBLOCK)
           ) {
            uint8_t code;

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1569988

Title:
  [2.6] user network broken reaching foreign servers on Win64

Status in QEMU:
  New

Bug description:
  Both on master and, starting with 2016-03-22 builds from
  http://qemu.weilnetz.de/w64/, user mode network can't reach foreign
  servers. For example, wget http://mifritscher resolves the DNS, but
  then the message "Network is unreachable" occures. 2016-03-03 works
  fine. I suspect the IPv6 changes. My connection is IPv4 only.

  I tested via knoppix 7.6. The command line is

  qemu-system-x86_64.exe -m 512 -k de --cdrom
  c:\Users\michaelfritscher\Downloads\linux\KNOPPIX_V7.4.2DVD-2014-09-28-DE.iso
  -netdev user,id=mynet0,restrict=n -device e1000,netdev=mynet0

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1569988/+subscriptions



reply via email to

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