The MGSL_DLSTATS structure is used with the MgslDlGetStats API function to retrieve the
current statistics for the specified link instance.
typedef struct _MGSL_DLSTATS
{
ULONG Link; /* link instance identifier */
ULONG State; /* link layer connection state */
ULONG Status; /* bit mapped flags for link status */
ULONG RxREJ; /* received reject frames */
ULONG RxFRMR; /* received frame rejects */
ULONG RxBadCmdResp; /* rx FRMR with bad command/response */
ULONG RxBadLength; /* rx FRMR with bad length */
ULONG RxBadNR; /* rx FRMR with bad rx sequence number */
ULONG RxTooBig; /* rx FRMR with I-frame too big */
ULONG RxRSET; /* rx RSET frames */
ULONG RxTEST; /* rx TEST frames */
ULONG TxREJ; /* transmitted reject frames */
ULONG TxFRMR; /* transmitted frame rejects */
ULONG TxBadCmdResp; /* tx FRMR with bad command/response */
ULONG TxBadLength; /* tx FRMR with bad length */
ULONG TxBadNR; /* tx FRMR with bad rx sequence number */
ULONG TxTooBig; /* tx FRMR with I-frame too big */
ULONG TxRSET; /* tx RSET frames */
ULONG TxTEST; /* tx TEST frames */
ULONG ResponseTimeouts;
ULONG IdleTimeouts;
ULONG TxPending; /* I-frames pending transmission */
ULONG TxPendingAck; /* I-frames pending acknowledgement */
ULONG TxAcked; /* Acknowledged I-frames */
ULONG RxInfo; /* received info frames */
ULONG RxInfoBytes; /* received info field bytes */
ULONG RxUI; /* received UI frames */
ULONG RxUIBytes; /* received UI info field bytes */
ULONG Reserved1; /* must be zero */
ULONG Reserved2; /* must be zero */
} MGSL_DLSTATS, *PMGSL_DLSTATS;
The Link member must be set to the link instance identifier by the application before passing the structure to MgslDlGetStats.
MGSL_DLSTATS StateThis member indicates the link connection state. |
|
|
The link is in disconnected mode |
|
Waiting for initialization mode command to complete. |
|
Initialization mode, SIM received |
|
Link establishment procedures pending |
|
The link is active and no release procedure is pending |
|
Link release procedures are pending |
|
Acknowledged mode established and trying to recover from a timer expiration (transmit or idle timeout) |
MGSL_DLSTATS Status |
|
|
Waiting for opportunity to acknowledge received I-frames. |
|
Beacon test state set by loop controller (loop mode secondary station only). |
|
Enable checkpoint lost frame detection. |
|
Waiting for opportunity to signal receiver busy state to peer. |
|
Waiting for peer to initiate recovery procedures after encountering a severe error. |
|
Inhibit checkpoint detection for next received frame with P/F bit set. |
|
Inhibit processing of next received selective reject frame. |
|
Modified link test mode set by loop controller (loop mode secondary station only). |
|
Monitor mode (receive only mode) set by loop controller (loop mode secondary station only) |
|
Local station is not ready to accept data. |
|
Remote station is not ready to accept data. |
|
A release request is pending completion of a previous mode setting command. |
|
Waiting for link reestablishment as part of an error recovery procedure to complete. |
|
Link is waiting for retransmission of frames by peer after signaling the missing frames with a REJ (reject). |
|
Link is waiting for peer to send disconnect command. (Secondary station only). |
|
Link is waiting for peer to set initialization mode (Secondary station only). |
|
Link received a command with the poll bit set but has not sent a response with the final bit set. |
|
Asynchronous balanced mode, modulo 8 |
|
Asynchronous balanced mode, modulo 128 |
|
Link is waiting for opportunity to set initialization mode. |
|
Normal response mode, modulo 8 |
|
Normal response mode, modulo 128 |
|
Link is waiting for retransmission of frames by peer after signaling the missing frames with a SREJ (selective reject). |
|
Link sent a command with the poll bit set but has not received a response with the final bit set. |
|
Wrap mode set by loop controller. (loop mode secondary station only). |
| Previous | Contents | Next |