Received: from eggs.gnu.org ([2001:4830:134:3::10]:59434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlett-0000cB-62 for qemu-devel@nongnu.org; Wed, 27 Nov 2013 08:11:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vletn-0002Js-6y for qemu-devel@nongnu.org; Wed, 27 Nov 2013 08:11:29 -0500 Received: from indium.canonical.com ([91.189.90.7]:38602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vletm-0002JX-Qw for qemu-devel@nongnu.org; Wed, 27 Nov 2013 08:11:23 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Vletm-0005fs-Bi for ; Wed, 27 Nov 2013 13:11:22 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 514362E807D for ; Wed, 27 Nov 2013 13:11:22 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Nov 2013 13:01:07 -0000 From: Paolo Bonzini Sender: bounces@canonical.com References: <20101012172031.6924.95175.malonedeb@potassium.ubuntu.com> Message-Id: <20131127130107.32217.97973.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 659351] Re: QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo Reply-To: Bug 659351 <659351@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fixed by commit d5c5dac (use inet_listen()/inet_connect() to support ipv6 migration, 2012-05-11), released with QEMU 1.2. ** Changed in: qemu Status: In Progress =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/659351 Title: QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo Status in QEMU: Fix Released Bug description: In several places, including the tcp migration code, qemu uses gethostbyname and inet_aton to construct a sockaddr_in. These should be replaced by the more modern getaddrinfo for both connect and accept, along with a loop to try all returned addrinfo structs on the connecting side. This would also allow migration over IPv6. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/659351/+subscriptions