Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Enumerations | Functions
openapi_stats.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <sys/un.h>
#include "openapi_common.h"

Go to the source code of this file.

Enumerations

enum  OPEN_COUNTER_ID_t {
  OPEN_CTR_RESERVED = 0, OPEN_CTR_RX_TOTAL_BYTES = 1, OPEN_CTR_RX_64 = 2, OPEN_CTR_RX_65_127 = 3,
  OPEN_CTR_RX_128_255 = 4, OPEN_CTR_RX_256_511 = 5, OPEN_CTR_RX_512_1023 = 6, OPEN_CTR_RX_1024_1518 = 7,
  OPEN_CTR_RX_1519_1530 = 8, OPEN_CTR_RX_GOOD_OVERSIZE = 9, OPEN_CTR_RX_ERROR_OVERSIZE = 10, OPEN_CTR_RX_GOOD_UNDERSIZE = 11,
  OPEN_CTR_RX_ERROR_UNDERSIZE = 12, OPEN_CTR_RX_UCAST_FRAMES = 13, OPEN_CTR_RX_MCAST_FRAMES = 14, OPEN_CTR_RX_BCAST_FRAMES = 15,
  OPEN_CTR_RX_ALIGN_ERRORS = 16, OPEN_CTR_RX_FCS_ERRORS = 17, OPEN_CTR_RX_OVERRUNS = 18, OPEN_CTR_RX_FRAME_TOO_LONG = 19,
  OPEN_CTR_TX_TOTAL_BYTES = 20, OPEN_CTR_TX_64 = 21, OPEN_CTR_TX_65_127 = 22, OPEN_CTR_TX_128_255 = 23,
  OPEN_CTR_TX_256_511 = 24, OPEN_CTR_TX_512_1023 = 25, OPEN_CTR_TX_1024_1518 = 26, OPEN_CTR_TX_1519_1530 = 27,
  OPEN_CTR_TX_UCAST_FRAMES = 28, OPEN_CTR_TX_MCAST_FRAMES = 29, OPEN_CTR_TX_BCAST_FRAMES = 30, OPEN_CTR_TX_FCS_ERRORS = 31,
  OPEN_CTR_TX_OVERSIZED = 32, OPEN_CTR_TX_UNDERRUN_ERRORS = 33, OPEN_CTR_TX_ONE_COLLISION = 34, OPEN_CTR_TX_MULTIPLE_COLLISION = 35,
  OPEN_CTR_TX_EXCESSIVE_COLLISION = 36, OPEN_CTR_TX_LATE_COLLISION = 37, OPEN_CTR_TX_RX_64 = 38, OPEN_CTR_TX_RX_65_127 = 39,
  OPEN_CTR_TX_RX_128_255 = 40, OPEN_CTR_TX_RX_256_511 = 41, OPEN_CTR_TX_RX_512_1023 = 42, OPEN_CTR_TX_RX_1024_1518 = 43,
  OPEN_CTR_TX_RX_1519_1522 = 44, OPEN_CTR_TX_RX_1523_2047 = 45, OPEN_CTR_TX_RX_2048_4095 = 46, OPEN_CTR_TX_RX_4096_9216 = 47,
  OPEN_CTR_ETHER_STATS_DROP_EVENTS = 48, OPEN_CTR_SNMPIFOUTDISCARD_FRAMES = 49, OPEN_CTR_SNMPIFINDISCARD_FRAMES = 50, OPEN_CTR_RX_TOTAL_FRAMES = 51,
  OPEN_CTR_RX_TOTAL_ERROR_FRAMES = 52, OPEN_CTR_TX_TOTAL_FRAMES = 53, OPEN_CTR_TX_TOTAL_ERROR_FRAMES = 54, OPEN_CTR_TX_TOTAL_COLLISION_FRAMES = 55,
  OPEN_CTR_RX_CRC_ERRORS = 56, OPEN_CTR_RX_TOTAL_MAC_ERROR_FRAMES = 57, OPEN_CTR_RX_RATE_BITS = 58, OPEN_CTR_TX_RATE_BITS = 59,
  OPEN_CTR_RX_RATE_FRAMES = 60, OPEN_CTR_TX_RATE_FRAMES = 61, OPEN_CTR_ETHER_STATS_HOLD = 62, OPEN_CTR_RX_JABBER_FRAMES = 63,
  OPEN_CTR_PORT_LINK_DOWN_COUNTER = 64
}
 Interface Counter IDs. More...
 

Functions

open_error_t openapiInterfaceStatsBufSizeGet (openapiClientHandle_t *client_handle, uint32_t *bufSize)
 Get the size of the interface counter array buffer. More...
 
open_error_t openapiInterfaceStatsGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *counterArray)
 Gets the entire set of 64-bit counters for an interface. More...
 
open_error_t openapiInterfaceStatsReset (openapiClientHandle_t *client_handle, uint32_t ifNum)
 Resets (sets to 0) all interface counters for the specified interface. More...
 
open_error_t openapiInterfaceStatsResetTimeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *lastResetSecs)
 Get number of seconds since all interface counters were last reset. More...
 
open_error_t openapiStatGet (openapiClientHandle_t *client_handle, OPEN_COUNTER_ID_t counterId, uint32_t ifNum, uint64_t *counterValue)
 Gets a 64 bit interface counter. More...
 
open_error_t openapiStatReset (openapiClientHandle_t *client_handle, OPEN_COUNTER_ID_t counterId, uint32_t ifNum)
 Resets (sets to 0) an interface counter. More...
 
open_error_t openapiStatStringGet (openapiClientHandle_t *client_handle, OPEN_COUNTER_ID_t counterId, uint32_t ifNum, open_buffdesc *counterValueStr)
 Gets a 64 bit interface counter as a string. More...