From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0rUq-0008K2-E3 for qemu-devel@nongnu.org; Fri, 24 Feb 2012 04:31:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0rU2-0001Ft-Kk for qemu-devel@nongnu.org; Fri, 24 Feb 2012 04:31:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0rU2-0001Fd-8M for qemu-devel@nongnu.org; Fri, 24 Feb 2012 04:30:34 -0500 Message-ID: <4F475988.10603@redhat.com> Date: Fri, 24 Feb 2012 10:34:00 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <20120210062608.13397.43361.stgit@dhcp-8-167.nay.redhat.com> <20120210062700.13397.6305.stgit@dhcp-8-167.nay.redhat.com> In-Reply-To: <20120210062700.13397.6305.stgit@dhcp-8-167.nay.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/4] Use getaddrinfo for migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: aliguori@us.ibm.com, kvm@vger.kernel.org, quintela@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org, laine@redhat.com Am 10.02.2012 07:27, schrieb Amos Kong: > This allows us to use ipv4/ipv6 for migration addresses. > Once there, it also uses /etc/services names (it came free). > > Signed-off-by: Juan Quintela > Signed-off-by: Amos Kong > --- > migration-tcp.c | 60 ++++++++----------------------- > net.c | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qemu_socket.h | 3 ++ > 3 files changed, 127 insertions(+), 44 deletions(-) > @@ -157,28 +141,16 @@ out2: > > int tcp_start_incoming_migration(const char *host_port) > { > - struct sockaddr_in addr; > - int val; > + int ret; > int s; > > DPRINTF("Attempting to start an incoming migration\n"); > > - if (parse_host_port(&addr, host_port) < 0) { > - fprintf(stderr, "invalid host/port combination: %s\n", host_port); > - return -EINVAL; > - } Oh, and this case doesn't print an error message any more now. Kevin