From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRXzJ-0005GI-JY for qemu-devel@nongnu.org; Mon, 26 Jan 2009 15:23:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRXzH-0005Fb-Ug for qemu-devel@nongnu.org; Mon, 26 Jan 2009 15:23:17 -0500 Received: from [199.232.76.173] (port=41730 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRXzH-0005FX-Rf for qemu-devel@nongnu.org; Mon, 26 Jan 2009 15:23:15 -0500 Received: from mail.gmx.net ([213.165.64.20]:41470) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LRXzH-0006VT-7s for qemu-devel@nongnu.org; Mon, 26 Jan 2009 15:23:15 -0500 Message-ID: <5A5201B4FE9C4DA2863CFFF07051BFB6@FSCPC> From: "Sebastian Herbszt" Date: Mon, 26 Jan 2009 21:21:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RESEND][PATCH] qemu_chr_open_tcp: allow ipv4 and ipv6 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 Those new options are parsed in qemu-sockets.c. Allow them instead of printing "Unknown option". - 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;