]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: win32 qmp_guest_network_get_interfaces implementation
authorKirk Allan <kallan@suse.com>
Tue, 2 Jun 2015 17:41:07 +0000 (11:41 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 8 Jul 2015 01:13:14 +0000 (20:13 -0500)
commitd6c5528b0ce91667714b8c7dabaf4fbf8a898a9c
tree894776309a819610a2a6b37321b9d3c52d30851d
parent601e5a0618ef3238e18fc38ece55ea4260910d5f
qga: win32 qmp_guest_network_get_interfaces implementation

By default, IPv4 prefixes will be derived by matching the address
to those returned by GetAdaptersInfo.  IPv6 prefixes can not be
matched this way due to the unpredictable order of entries.

In Windows Vista/2008 guests and newer, both IPv4 and IPv6 prefixes
can be retrieved from OnLinkPrefixLength.  Setting --extra-cflags
in the build configuration to "-D_WIN32_WINNT=0x600"
or greater makes OnLinkPrefixLength available.  Setting --extra-cflags
is not required and if not set, the default approach to get the prefix
will be taken.

Signed-off-by: Kirk Allan <kallan@suse.com>
* drop ws2ipdef.h, it's missing on old mingw, and ws2tcpip.h already
  includes it automatically on new builds
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c