From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy2k3-00029r-Rj for qemu-devel@nongnu.org; Thu, 28 May 2015 14:41:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy2jz-0004Zl-Qn for qemu-devel@nongnu.org; Thu, 28 May 2015 14:41:19 -0400 Received: from inet-orm.provo.novell.com ([137.65.248.124]:50402 helo=mail.novell.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy2jz-0004ZV-JZ for qemu-devel@nongnu.org; Thu, 28 May 2015 14:41:15 -0400 From: Kirk Allan Date: Thu, 28 May 2015 12:40:59 -0600 Message-Id: <1432838461-2637-1-git-send-email-kallan@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v3 0/2] qga: qmp_guest_network_get_interfaces for win32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: okrishtal@parallels.com, mdroth@linux.vnet.ibm.com, sw@weilnetz.de Changes from v2: - Patch 1/2 has no changes. - Patch 2/2 implemented feedback from v2. For GetAdaptersAddresses and GetAdaptersInfo, made an initial call to get size required before allocating. Use error_setg_win32 when Win32 API sets last error. Use Win32 InetNtop rather than inet_ntop. Delcare variable at beginning of function rather than in a block. This patch set is to implement qmp_guest_network_get_interfaces for win32. This version splits the previous single patch into two patches: configuration and implementation. The configuration patch utilizes the –extra-cflags rather than introduce a new option for setting _WIN32_WINNT and WINVER. The implementation patch for commands-win32.c is that same as before. It will take advantage of _WIN32_WINNT if set to 0x600 or greater for Windows Vista/2008 guests or newer to use inet_ntop and OnLinkPrefixLength for getting addresses and prefixes. Kirk Allan (2): qga: add additional win32 cflags and libraries qga: win32 implementation of qmp_guest_network_get_interfaces configure | 9 +- qga/commands-win32.c | 292 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 297 insertions(+), 4 deletions(-) -- 1.8.5.6