31
Frame Relay for Sangoma Cards (C) Sangoma Technologies Inc. 1999,2000,2001 Page 31 of 78
READ_DLC_STATISTICS (0x15)
Read the current performance statistics for this station.
Control Block values to be set on entry:
DLCI:
Set to
0x00
to read the 'global' statistics or set to a specific DLCI to read the
performance statistics of a particular connection.
BUFFER_
LENGTH:
Set to
0x00
if the selected DLCI is ZERO, otherwise set to
0x01
.
DATA:
Offset 0x00 - only valid for a non-zero DLCI setting as follows:
Set to 0x00 - the throughput statistics are not passed to the application.
Set to 0x01 - calculate and pass the throughput statistics to the application.
Control Block values set on return:
RETURN_
CODE:
0x00 The action has been performed successfully.
0x04 An invalid DLCI was selected.
0x10, 0x11, 0x12, 0x13, 0x14, 0x1F
See Section "Notes on Return Codes" for further details.
BUFFER_LENGTH (valid if a
RETURN_CODE
of
0x00
is received):
For DLCI 0x00: Set to
0x38
.
For a non-zero DLCI: Set to
0x20
(no throughput statistics included) or
0x30
(statistics included).