From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0FiC-0001Eb-2W for qemu-devel@nongnu.org; Wed, 22 Feb 2012 12:10:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0Fi3-0007Xu-G0 for qemu-devel@nongnu.org; Wed, 22 Feb 2012 12:10:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0Fi3-0007XY-9R for qemu-devel@nongnu.org; Wed, 22 Feb 2012 12:10:31 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1MHATah029509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 Feb 2012 12:10:29 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q1MHATqv022782 for ; Wed, 22 Feb 2012 12:10:29 -0500 Received: from [10.34.13.60] (dhcp-13-60.brq.redhat.com [10.34.13.60] (may be forged)) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q1MHAR0j011096 for ; Wed, 22 Feb 2012 12:10:28 -0500 Message-ID: <4F452183.2010702@redhat.com> Date: Wed, 22 Feb 2012 18:10:27 +0100 From: Michal Privoznik MIME-Version: 1.0 References: <2c332c139b3d6b38e2ef93e2efc951f8565c4a52.1329649806.git.mprivozn@redhat.com> In-Reply-To: <2c332c139b3d6b38e2ef93e2efc951f8565c4a52.1329649806.git.mprivozn@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4] qemu-ga: Add guest-network-info command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 19.02.2012 12:15, Michal Privoznik wrote: > This command returns an array of: > > [ifname, ipaddr, ipaddr_family, prefix, hwaddr] > > for each interface in the system that has an IP address. > Currently, only IPv4 and IPv6 are supported. > > Signed-off-by: Michal Privoznik > --- > diff to v3: > -use ctpop32() instead of separate count_one_bits() > > diff to v2: > -Properly set IP addr family for IPv6 > > diff to v1: > -move from guest-getip to guest-network-info > -replace black boxed algorithm for population count > -several coding styles improvements > qapi-schema-guest.json | 29 ++++++++ > qga/guest-agent-commands.c | 157 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 186 insertions(+), 0 deletions(-) > ping?