Re: [Qemu-devel] [PULL] Fix ipv6 options according to documentation

2016-03-31 Thread Peter Maydell
On 31 March 2016 at 10:17, Samuel Thibault  wrote:
> The following changes since commit 9370a3bbc478f623dd21d783560629ea2064625b:
>
>   Update version for v2.6.0-rc0 release (2016-03-30 19:25:40 +0100)
>
> are available in the git repository at:
>
>   http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
>
> for you to fetch changes up to 891a2bb58c5c4cbedc82e9606b049bf4c298b88b:
>
>   Fix ipv6 options according to documentation (2016-03-31 01:08:29 +0200)
>
> 
> slirp updates
>
> 
> Samuel Thibault (1):
>   Fix ipv6 options according to documentation

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] Fix ipv6 options according to documentation

2016-03-31 Thread Samuel Thibault
The options names were fixed in the qapi layer, but not in the command-line
options.

Signed-off-by: Samuel Thibault 
Reviewed-by: Eric Blake 
---
 net/net.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/net/net.c b/net/net.c
index 3b5a142..594c3b8 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1054,32 +1054,32 @@ int net_client_init(QemuOpts *opts, int is_netdev, 
Error **errp)
 
 {
 /* Parse convenience option format ip6-net=fec0::0[/64] */
-const char *ip6_net = qemu_opt_get(opts, "ip6-net");
+const char *ip6_net = qemu_opt_get(opts, "ipv6-net");
 
 if (ip6_net) {
 char buf[strlen(ip6_net) + 1];
 
 if (get_str_sep(buf, sizeof(buf), &ip6_net, '/') < 0) {
 /* Default 64bit prefix length.  */
-qemu_opt_set(opts, "ip6-prefix", ip6_net, &error_abort);
-qemu_opt_set_number(opts, "ip6-prefixlen", 64, &error_abort);
+qemu_opt_set(opts, "ipv6-prefix", ip6_net, &error_abort);
+qemu_opt_set_number(opts, "ipv6-prefixlen", 64, &error_abort);
 } else {
 /* User-specified prefix length.  */
 unsigned long len;
 int err;
 
-qemu_opt_set(opts, "ip6-prefix", buf, &error_abort);
+qemu_opt_set(opts, "ipv6-prefix", buf, &error_abort);
 err = qemu_strtoul(ip6_net, NULL, 10, &len);
 
 if (err) {
 error_setg(errp, QERR_INVALID_PARAMETER_VALUE,
-  "ip6-prefix", "a number");
+  "ipv6-prefix", "a number");
 } else {
-qemu_opt_set_number(opts, "ip6-prefixlen", len,
+qemu_opt_set_number(opts, "ipv6-prefixlen", len,
 &error_abort);
 }
 }
-qemu_opt_unset(opts, "ip6-net");
+qemu_opt_unset(opts, "ipv6-net");
 }
 }
 
-- 
2.8.0.rc3




[Qemu-devel] [PULL] Fix ipv6 options according to documentation

2016-03-31 Thread Samuel Thibault
The following changes since commit 9370a3bbc478f623dd21d783560629ea2064625b:

  Update version for v2.6.0-rc0 release (2016-03-30 19:25:40 +0100)

are available in the git repository at:

  http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 891a2bb58c5c4cbedc82e9606b049bf4c298b88b:

  Fix ipv6 options according to documentation (2016-03-31 01:08:29 +0200)


slirp updates


Samuel Thibault (1):
  Fix ipv6 options according to documentation

 net/net.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)



[Qemu-devel] [PULL] Fix ipv6 options according to documentation

2016-03-30 Thread Samuel Thibault
The options names were fixed in the qapi layer, but not in the command-line
options.

Signed-off-by: Samuel Thibault 
Reviewed-by: Eric Blake 
---
 net/net.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/net/net.c b/net/net.c
index 3b5a142..594c3b8 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1054,32 +1054,32 @@ int net_client_init(QemuOpts *opts, int is_netdev, 
Error **errp)
 
 {
 /* Parse convenience option format ip6-net=fec0::0[/64] */
-const char *ip6_net = qemu_opt_get(opts, "ip6-net");
+const char *ip6_net = qemu_opt_get(opts, "ipv6-net");
 
 if (ip6_net) {
 char buf[strlen(ip6_net) + 1];
 
 if (get_str_sep(buf, sizeof(buf), &ip6_net, '/') < 0) {
 /* Default 64bit prefix length.  */
-qemu_opt_set(opts, "ip6-prefix", ip6_net, &error_abort);
-qemu_opt_set_number(opts, "ip6-prefixlen", 64, &error_abort);
+qemu_opt_set(opts, "ipv6-prefix", ip6_net, &error_abort);
+qemu_opt_set_number(opts, "ipv6-prefixlen", 64, &error_abort);
 } else {
 /* User-specified prefix length.  */
 unsigned long len;
 int err;
 
-qemu_opt_set(opts, "ip6-prefix", buf, &error_abort);
+qemu_opt_set(opts, "ipv6-prefix", buf, &error_abort);
 err = qemu_strtoul(ip6_net, NULL, 10, &len);
 
 if (err) {
 error_setg(errp, QERR_INVALID_PARAMETER_VALUE,
-  "ip6-prefix", "a number");
+  "ipv6-prefix", "a number");
 } else {
-qemu_opt_set_number(opts, "ip6-prefixlen", len,
+qemu_opt_set_number(opts, "ipv6-prefixlen", len,
 &error_abort);
 }
 }
-qemu_opt_unset(opts, "ip6-net");
+qemu_opt_unset(opts, "ipv6-net");
 }
 }
 
-- 
2.8.0.rc3