From: Marcelo Tosatti Date: Tue, 9 Feb 2010 17:31:46 +0000 (-0200) Subject: fix inet_parse typo X-Git-Tag: v0.12.3~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e03dd1a6c24d96d6ba4b154f2266c44c314c6688;p=thirdparty%2Fqemu.git fix inet_parse typo qemu_opt_set wants on/off, not yes/no. Signed-off-by: Marcelo Tosatti Signed-off-by: Anthony Liguori (cherry picked from commit 2198a62eb2518b61c3fc7db26515f106e7498932) --- diff --git a/qemu-sockets.c b/qemu-sockets.c index 8850516f2c8..a88b2a77fc5 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; }