From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NetwX-0002bj-Tp for qemu-devel@nongnu.org; Tue, 09 Feb 2010 12:32:09 -0500 Received: from [199.232.76.173] (port=39561 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NetwX-0002bD-Gu for qemu-devel@nongnu.org; Tue, 09 Feb 2010 12:32:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NetwV-0004A9-1X for qemu-devel@nongnu.org; Tue, 09 Feb 2010 12:32:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46860) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NetwU-00049F-5s for qemu-devel@nongnu.org; Tue, 09 Feb 2010 12:32:06 -0500 Date: Tue, 9 Feb 2010 15:31:46 -0200 From: Marcelo Tosatti Message-ID: <20100209173146.GA1881@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix inet_parse typo List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xming qemu_opt_set wants on/off, not yes/no. Signed-off-by: Marcelo Tosatti diff --git a/qemu-sockets.c b/qemu-sockets.c index 8850516..a88b2a7 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -424,7 +424,7 @@ static int inet_parse(QemuOpts *opts, const char *str) __FUNCTION__, str); return -1; } - qemu_opt_set(opts, "ipv6", "yes"); + qemu_opt_set(opts, "ipv6", "on"); } else if (qemu_isdigit(str[0])) { /* IPv4 addr */ if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) { @@ -432,7 +432,7 @@ static int inet_parse(QemuOpts *opts, const char *str) __FUNCTION__, str); return -1; } - qemu_opt_set(opts, "ipv4", "yes"); + qemu_opt_set(opts, "ipv4", "on"); } else { /* hostname */ if (2 != sscanf(str,"%64[^:]:%32[^,]%n",addr,port,&pos)) { @@ -450,9 +450,9 @@ static int inet_parse(QemuOpts *opts, const char *str) if (h) qemu_opt_set(opts, "to", h+4); if (strstr(optstr, ",ipv4")) - qemu_opt_set(opts, "ipv4", "yes"); + qemu_opt_set(opts, "ipv4", "on"); if (strstr(optstr, ",ipv6")) - qemu_opt_set(opts, "ipv6", "yes"); + qemu_opt_set(opts, "ipv6", "on"); return 0; }