From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4wJR-0000SL-1M for qemu-devel@nongnu.org; Tue, 06 Mar 2012 10:28:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4wJM-0001Aa-D3 for qemu-devel@nongnu.org; Tue, 06 Mar 2012 10:28:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4wJM-0001AN-4t for qemu-devel@nongnu.org; Tue, 06 Mar 2012 10:28:24 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q26FSM7w013269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Mar 2012 10:28:22 -0500 Received: from [10.34.27.226] (dhcp-27-226.brq.redhat.com [10.34.27.226]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q26FSKar023272 for ; Tue, 6 Mar 2012 10:28:21 -0500 Message-ID: <4F562D14.809@redhat.com> Date: Tue, 06 Mar 2012 16:28:20 +0100 From: Michal Privoznik MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6] qemu-ga: Add guest-network-get-interfaces command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 29.02.2012 17:02, Michal Privoznik wrote: > This command returns an array of: > > [ifname, hwaddr, [ipaddr, ipaddr_family, prefix] ] > > for each interface in the system. > Currently, only IPv4 and IPv6 are supported. > > Signed-off-by: Michal Privoznik > --- > diff to v5: > -another change of command > diff to v4: > -change return type > > 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 | 59 ++++++++++++++++ > qga/commands-posix.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++++ > qga/commands-win32.c | 6 ++ > 3 files changed, 246 insertions(+), 0 deletions(-) > ping?