static int guest_get_network_stats(const char *name,

                       GuestNetworkInterfaceStat *stats)

{

    DWORD if_index = 0;

    MIB_IFROW a_mid_ifrow;

    memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));

    if_index = get_interface_index(name);

    a_mid_ifrow.dwIndex = if_index;

    if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) {

        stats->rx_bytes = a_mid_ifrow.dwInOctets;

        stats->rx_packets = a_mid_ifrow.dwInUcastPkts;

        stats->rx_errs = a_mid_ifrow.dwInErrors;

        stats->rx_dropped = a_mid_ifrow.dwInDiscards;

        stats->tx_bytes = a_mid_ifrow.dwOutOctets;

        stats->tx_packets = a_mid_ifrow.dwOutUcastPkts;

        stats->tx_errs = a_mid_ifrow.dwOutErrors;

        stats->tx_dropped = a_mid_ifrow.dwOutDiscards;

        return 0;

    }

    return -1;

}

static int guest_get_network_stats(const char *name,

                       GuestNetworkInterfaceStat *stats)

{

    DWORD if_index = 0;

    MIB_IFROW a_mid_ifrow;

    memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));

    if_index = get_interface_index(name);

    a_mid_ifrow.dwIndex = if_index;

    if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) {

        stats->rx_bytes = a_mid_ifrow.dwInOctets;

        stats->rx_packets = a_mid_ifrow.dwInUcastPkts;

        stats->rx_errs = a_mid_ifrow.dwInErrors;

        stats->rx_dropped = a_mid_ifrow.dwInDiscards;

        stats->tx_bytes = a_mid_ifrow.dwOutOctets;

        stats->tx_packets = a_mid_ifrow.dwOutUcastPkts;

        stats->tx_errs = a_mid_ifrow.dwOutErrors;

        stats->tx_dropped = a_mid_ifrow.dwOutDiscards;

        return 0;

    }

    return -1;

}

                       GuestNetworkInterfaceStat *stats)     DWORD if_index = 0;     MIB_IFROW a_mid_ifrow;     memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));     if_index = get_interface_index(name);     a_mid_ifrow.dwIndex = if_index;     if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) {         stats->rx_bytes = a_mid_ifrow.dwInOctets;         stats->rx_packets = a_mid_ifrow.dwInUcastPkts;         stats->rx_errs = a_mid_ifrow.dwInErrors;         stats->rx_dropped = a_mid_ifrow.dwInDiscards;         stats->tx_bytes = a_mid_ifrow.dwOutOctets;         stats->tx_packets = a_mid_ifrow.dwOutUcastPkts;         stats->tx_errs = a_mid_ifrow.dwOutErrors;         stats->tx_dropped = a_mid_ifrow.dwOutDiscards;         return 0;
static int FUNC_0(const char *VAR_0,

                       GuestNetworkInterfaceStat *VAR_1)

{

    DWORD if_index = 0;

    MIB_IFROW a_mid_ifrow;

    memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow));

    if_index = get_interface_index(VAR_0);

    a_mid_ifrow.dwIndex = if_index;

    if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) {

        VAR_1->rx_bytes = a_mid_ifrow.dwInOctets;

        VAR_1->rx_packets = a_mid_ifrow.dwInUcastPkts;

        VAR_1->rx_errs = a_mid_ifrow.dwInErrors;

        VAR_1->rx_dropped = a_mid_ifrow.dwInDiscards;

        VAR_1->tx_bytes = a_mid_ifrow.dwOutOctets;

        VAR_1->tx_packets = a_mid_ifrow.dwOutUcastPkts;

        VAR_1->tx_errs = a_mid_ifrow.dwOutErrors;

        VAR_1->tx_dropped = a_mid_ifrow.dwOutDiscards;

        return 0;

    }

    return -1;

}

static int FUNC_0(const char *VAR_0,
GuestNetworkInterfaceStat *VAR_1)
{ DWORD if_index = 0; MIB_IFROW a_mid_ifrow; memset(&a_mid_ifrow, 0, sizeof(a_mid_ifrow)); if_index = get_interface_index(VAR_0); a_mid_ifrow.dwIndex = if_index; if (NO_ERROR == GetIfEntry(&a_mid_ifrow)) { VAR_1->rx_bytes = a_mid_ifrow.dwInOctets; VAR_1->rx_packets = a_mid_ifrow.dwInUcastPkts; VAR_1->rx_errs = a_mid_ifrow.dwInErrors; VAR_1->rx_dropped = a_mid_ifrow.dwInDiscards; VAR_1->tx_bytes = a_mid_ifrow.dwOutOctets; VAR_1->tx_packets = a_mid_ifrow.dwOutUcastPkts; VAR_1->tx_errs = a_mid_ifrow.dwOutErrors; VAR_1->tx_dropped = a_mid_ifrow.dwOutDiscards; return 0; } return -1; }