Received: from [140.186.70.92] (port=43834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5ige-0007Tn-RY for qemu-devel@nongnu.org; Tue, 12 Oct 2010 13:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5igd-0003Dt-On for qemu-devel@nongnu.org; Tue, 12 Oct 2010 13:30:52 -0400 Received: from adelie.canonical.com ([91.189.90.139]:46981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5igd-0003Dn-Kk for qemu-devel@nongnu.org; Tue, 12 Oct 2010 13:30:51 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1P5iga-0003TV-W0 for ; Tue, 12 Oct 2010 18:30:49 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 197342E80D6 for ; Tue, 12 Oct 2010 17:30:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Oct 2010 17:20:31 -0000 From: Benjamin Jencks Sender: bounces@canonical.com References: <20101012172031.6924.95175.malonedeb@potassium.ubuntu.com> Message-Id: <20101012172031.6924.95175.malonedeb@potassium.ubuntu.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 659351] [NEW] QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo Reply-To: Bug 659351 <659351@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: 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. ** Affects: qemu Importance: Undecided Status: New -- = QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo https://bugs.launchpad.net/bugs/659351 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: In several places, including the tcp migration code, qemu uses gethostbynam= e 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 a= llow migration over IPv6.