qga: replace GetIfEntry with GetIfEntry2 for interface stats
commitdf83eabd5245828cbca32060aa191d8b03bc5d50
authorZhiPeng Lu <lu.zhipeng@zte.com.cn>
Fri, 3 Nov 2017 14:54:20 +0000 (3 22:54 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 20 Nov 2017 20:45:31 +0000 (20 14:45 -0600)
tree1488690323964cf35f290b8898c308c04e69da2d
parentb2996bb405e2806725a341c72d80be9e77ed8b82
qga: replace GetIfEntry with GetIfEntry2 for interface stats

The data obtained by GetIfEntry is 32 bits, and it may overflow. Thus
using GetIfEntry2 instead of GetIfEntry.

Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
*avoid CamelCase variable names
*update field names for MIB_IFROW -> MIB_IF_ROW2
*dynamically probe for GetIfIndex2 to deal with older OSs
*check return value from get_interface_index
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c