(Page 15 of 26 in this chapter)


cpi_get_stats

Description

Returns the statistics from the specified TX Series board channel or all channels indicated by handle into the buffer specified.

Prototype

#include <txcpi.h>

short cpi_get_stats (TX_HANDLE handle,

short chan,

struct _txpdCtlSTATS *stats)

Return Values

Details

If the channel number chan is 0xffff, then the statistics returned will be for all channels, otherwise the statistics for the channel indicated will be returned. The statistics are returned in the pointer stats.

typedef struct _txpdCtlSTATS
{
  unsigned short Channel;      /* 0xffff for all or 0..255             */
  unsigned short LowFreeCnt;   /* Smallest free buffer count           */
  unsigned long  PktsSentCS;   /* # packets sent                       */
  unsigned long  BytesSentCS;  /* # bytes sent                         */
  unsigned long  SendRejCS;    /* # sends rejected as illegal          */
  unsigned long  PktsRecvCS;   /* # packets received                   */
  unsigned long  BytesRecvCS;  /* # bytes received                     */
  unsigned long  RecvRejRegCS; /* # rcvd pkts rejected-no registration */
  unsigned long  RecvRejBfrCS; /* # rcvd pkts rejected- no buffer 
                                * available                            */
  unsigned long  RecvTruncCS;  /* # rcvd pkts truncated                */
};


(Page 15 of 26 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.