Mtp3GenStats

Obtains and potentially resets general or global statistics for the MTP 3 signaling point.

Prototype

MTP3_STATUS Mtp3GenStats ( U8 board, MTP3GenStats *pStats, BOOL bReset )

Argument

Description

board

TX board number on which the desired MTP 3 task resides. Valid range is 1 through maxboard (currently 8).

pStats

Pointer to a buffer provided by the application where the requested statistics are returned:

typedef struct _Mtp3GenStats
                     /* MTP Level 3 signaling point statistics  */
{
  U32 usrUnavailRx;  /* User part unavailable received          */
  U32 usrUnavailTx;  /* User part unavailable transmitted       */
  U32 traTx;         /* Traffic restart allowed transmitted     */
  U32 traRx;         /* Traffic restart allowed received        */
  U32 trwTx;         /* Traffic restart waiting transmitted     */
  U32 trwRx;         /* Traffic restart waiting received        */
  U32 msuDropRteErr; /* MSU dropped due to a routing data error */
} MTP3GenStats;

bReset

Optionally resets statistics.


Return values

Return value

Description

MTP3_SUCCESS

 

MTP3_BOARD

Invalid board number.

MTP3_HANDLE

Mtp3MgmtInit not called for the specified board.


Details

General statistics include transmit and receive counts for user part unavailable messages, traffic restarts, and packets dropped.

If the bReset value is a non-zero integer, the statistics are reset after returning the current values. A value of zero disables the reset function.

See also

Mtp3GenStatus, Mtp3MgmtInit