Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWcRj-000653-0h for qemu-devel@nongnu.org; Mon, 09 Feb 2009 15:09:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWcRi-00064r-L5 for qemu-devel@nongnu.org; Mon, 09 Feb 2009 15:09:34 -0500 Received: from [199.232.76.173] (port=56230 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWcRi-00064o-GF for qemu-devel@nongnu.org; Mon, 09 Feb 2009 15:09:34 -0500 Received: from savannah.gnu.org ([199.232.41.3]:56070 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWcRh-0004no-Lh for qemu-devel@nongnu.org; Mon, 09 Feb 2009 15:09:34 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LWcRd-0003ot-J0 for qemu-devel@nongnu.org; Mon, 09 Feb 2009 20:09:29 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LWcRd-0003op-Bq for qemu-devel@nongnu.org; Mon, 09 Feb 2009 20:09:29 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Mon, 09 Feb 2009 20:09:29 +0000 Subject: [Qemu-devel] [6584] 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 Revision: 6584 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6584 Author: aurel32 Date: 2009-02-09 20:09:29 +0000 (Mon, 09 Feb 2009) Log Message: ----------- qemu_chr_open_tcp: allow ipv4 and ipv6 options Those new options are parsed in qemu-sockets.c. Allow them instead of printing "Unknown option". Signed-off-by: Sebastian Herbszt Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/qemu-char.c Modified: trunk/qemu-char.c =================================================================== --- trunk/qemu-char.c 2009-02-09 19:59:57 UTC (rev 6583) +++ trunk/qemu-char.c 2009-02-09 20:09:29 UTC (rev 6584) @@ -1992,6 +1992,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;