From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYZHn-00035K-Cn for qemu-devel@nongnu.org; Tue, 22 Oct 2013 06:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYZHi-0002nL-BW for qemu-devel@nongnu.org; Tue, 22 Oct 2013 06:34:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYZHi-0002n6-2S for qemu-devel@nongnu.org; Tue, 22 Oct 2013 06:33:58 -0400 Message-ID: <52665490.3070804@redhat.com> Date: Tue, 22 Oct 2013 11:33:52 +0100 From: Eric Blake MIME-Version: 1.0 References: <20131020145406.GA17618@type> <1382280980-21676-1-git-send-email-samuel.thibault@ens-lyon.org> <1382280980-21676-16-git-send-email-samuel.thibault@ens-lyon.org> <526596D7.6000909@redhat.com> <20131022102203.GQ5518@type.wlan.youpi.perso.aquilenet.fr> <5266530F.8030100@redhat.com> <20131022103136.GR5518@type.wlan.youpi.perso.aquilenet.fr> In-Reply-To: <20131022103136.GR5518@type.wlan.youpi.perso.aquilenet.fr> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UvPJ89DbHwE1TQVn3A7J3Xd44vwP2KEnV" Subject: Re: [Qemu-devel] [PATCH 16/16] qapi-schema, qemu-options & slirp: Adding Qemu options for IPv6 addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault Cc: Yann Bordenave , qemu-devel@nongnu.org, Guillaume Subiron This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UvPJ89DbHwE1TQVn3A7J3Xd44vwP2KEnV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/22/2013 11:31 AM, Samuel Thibault wrote: > Hello, >=20 > Eric Blake, le Tue 22 Oct 2013 11:27:27 +0100, a =C3=A9crit : >> On 10/22/2013 11:22 AM, Samuel Thibault wrote: >>> Eric Blake, le Mon 21 Oct 2013 22:04:23 +0100, a =C3=A9crit : >>>>> + '*ip6_prefix': 'str', >>>> >>>> Why is this a str instead of an integer? >>> >>> prefix would be e.g. fc00::1/64. >> >> That requires me to post-parse it. Would it be smarter to represent th= is >> as two elements, one for the "fc00::1" string, and another for the 64 >> width, so that I don't have to post-parse? >=20 > It makes sense, yes, the syntax would be [ip6-prefix=3Dnet[/netsize]] .= I > just don't know how to express that in qapi :) '*ip6_net':'str', '*ip6_netsize':'int' passed on the wire as: "ip6_net":"fc00::1", "ip6_netsize":64 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --UvPJ89DbHwE1TQVn3A7J3Xd44vwP2KEnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSZlSQAAoJEKeha0olJ0Nqo5MH/AolftBTq0zln9xv+kiGq4YU TMyR3E8JZBoMsylhD2aJMkAcggTpjDmaq+hWqi5HQCm+TXOz88jMwH6jAEp/xfJd bpSuY7U8cInNEfPrQqjJS8BHpZL9MhAZda+c7onGeyxuFZwF7UZySF+tTZ9FGoNp VjzM0sn/HT/MMbaU5jPdUq5elP1Yr+GbO6wR+JVJ3S9PL4lGloTqVdfyJPhOVFwo TsdRjdPHe+I5pPlBOxuXVWXgFXZMrHuQJZ9IAaQ1a+bGyo6serz5f/WLDatUSP6z CKS0BdsGn+MoOtgFNLW6n0nZjnMzEnjhu09Yd+y10JJuolTJxXDqlH9gdLSMZYE= =RAqB -----END PGP SIGNATURE----- --UvPJ89DbHwE1TQVn3A7J3Xd44vwP2KEnV--