From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36607 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzxqG-0002Yd-Nh for qemu-devel@nongnu.org; Wed, 16 Mar 2011 17:01:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzxqF-00076R-Pl for qemu-devel@nongnu.org; Wed, 16 Mar 2011 17:01:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzxqF-00075w-HH for qemu-devel@nongnu.org; Wed, 16 Mar 2011 17:01:15 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2GL1D8l015189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 16 Mar 2011 17:01:13 -0400 From: Juan Quintela Date: Wed, 16 Mar 2011 22:01:04 +0100 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] Allow ipv6 for migration List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi 1st patch moves migration to use getaddrinfo() instead of parse_host_port(). This allows us to use ipv6 addresses. As an extra bonus, now we can use names from /etc/services. Code for net_socket_listen_init() and net_socket_connect_init() was almost identical to migration one, so also changed that ones. The difference were small based on how error codes were handled. After discussing with Anthony, it appears that the right ones are the migration ones. Tested (the migration code) with: - "tcp:foo:4444" ipv4 name - "tcp:foo6:4444" ipv6 name - "tcp:0:4444" - "tcp:foo6:iqobject" (this was an unused entry on my machine /etc/services) iqobject 48619/tcp # iqobject - "tcp::4444": let the kernel make a choice Please review. Later, Juan. Juan Quintela (2): Use getaddrinfo for migration net/socket: allow ipv6 for net_socket_listen_init and net_socket_connect_init migration-tcp.c | 53 ++++++------------------- net.c | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ net/socket.c | 60 +++++------------------------ qemu_socket.h | 3 + 4 files changed, 140 insertions(+), 89 deletions(-) -- 1.7.4