Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRwIC-0005r6-Fb for qemu-devel@nongnu.org; Tue, 27 Jan 2009 17:20:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRwIA-0005ow-TS for qemu-devel@nongnu.org; Tue, 27 Jan 2009 17:20:24 -0500 Received: from [199.232.76.173] (port=52542 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRwIA-0005oh-Jy for qemu-devel@nongnu.org; Tue, 27 Jan 2009 17:20:22 -0500 Received: from mail.gmx.net ([213.165.64.20]:42789) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LRwIA-000342-3u for qemu-devel@nongnu.org; Tue, 27 Jan 2009 17:20:22 -0500 Message-ID: <513998C66AE7454799A504727BAF4977@FSCPC> From: "Sebastian Herbszt" References: <5A5201B4FE9C4DA2863CFFF07051BFB6@FSCPC> <497E3AA4.70501@us.ibm.com> In-Reply-To: <497E3AA4.70501@us.ibm.com> Date: Tue, 27 Jan 2009 23:18:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RESEND][PATCH] qemu_chr_open_tcp: allow ipv4 andipv6 options Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori wrote: > Sebastian Herbszt wrote: >> Those new options are parsed in qemu-sockets.c. Allow them instead of >> printing "Unknown option". > > Needs a Signed-off-by line. Signed-off-by: Sebastian Herbszt - Sebastian > Regards, > > Anthony Liguori > >> - Sebastian >> >> --- qemu-r6133/qemu-char.c.orig Sat Dec 27 15:55:48 2008 >> +++ qemu-r6133/qemu-char.c Sat Dec 27 16:54:23 2008 >> @@ -2035,6 +2035,10 @@ >> do_nodelay = 1; >> } else if (!strncmp(ptr,"to=",3)) { >> /* nothing, inet_listen() parses this one */; >> + } else if (!strncmp(ptr,"ipv4",4)) { >> + /* nothing, inet_connect() and inet_listen() parse this >> one */; >> + } else if (!strncmp(ptr,"ipv6",4)) { >> + /* nothing, inet_connect() and inet_listen() parse this >> one */; >> } else { >> printf("Unknown option: %s\n", ptr); >> goto fail; >> >> >> >> > > > >