qga: add network stats to guest-network-get-interfaces
commit53f9fcb263e40ff82b9fcbce8b8cba0f3649ac9b
authorZhiPeng Lu <lu.zhipeng@zte.com.cn>
Tue, 12 Sep 2017 08:54:26 +0000 (12 16:54 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 26 Oct 2017 00:54:11 +0000 (25 19:54 -0500)
treebcbb0e8989fc550b7098410a77a9ac251e677c1f
parent105fad6bb226ac3404874fe3fd7013ad6f86fc86
qga: add network stats to guest-network-get-interfaces

we can get the network interface statistics inside a virtual machine by
guest-network-get-interfaces command. it is very useful for us tomonitor
and analyze network traffic.

Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
* don't rely on sizeof(wchar[]) for wchar[] indexing
* avoid camelCase variable names
* fix up getline() usage
* condensed commit subject line
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
qga/commands-win32.c
qga/qapi-schema.json