Skip to content
Snippets Groups Projects
Commit df83eabd authored by ZhiPeng Lu's avatar ZhiPeng Lu Committed by Michael Roth
Browse files

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: default avatarZhiPeng 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: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent b2996bb4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment