Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGcW8-0007TE-Jx for qemu-devel@nongnu.org; Sat, 27 Dec 2008 12:00:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGcW6-0007St-LC for qemu-devel@nongnu.org; Sat, 27 Dec 2008 11:59:59 -0500 Received: from [199.232.76.173] (port=44945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGcW6-0007Sq-EV for qemu-devel@nongnu.org; Sat, 27 Dec 2008 11:59:58 -0500 Received: from mail.gmx.net ([213.165.64.20]:37562) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LGcW5-0001X9-QU for qemu-devel@nongnu.org; Sat, 27 Dec 2008 11:59:58 -0500 Message-ID: <8427918515EC45B3A90D0A3EA1F57146@FSCPC> From: "Sebastian Herbszt" Date: Sat, 27 Dec 2008 17:58:31 +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] [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;