|
|
#include <sys/ddi.h> #include <sys/mdi.h>typedef struct mac_stats_isdn { isdn_dchannel_stats_t dchannel; isdn_signaling_stats_t signaling; isdn_bchannel_stats_t bchannel[30]; } mac_stats_isdn_t;
The status information defined by this structure is a subset of the SNMP (Simple Network Management Protocol) Version 2 MIB (Management Information Base) described in RFC 2127. Although this set of managed objects is consistent with the SNMP framework and existing SNMP standards, it is not compliant to the SNMPv2 SMI and should not be used for SNMP management.
dchannel
member of
mac_stats_isdn) are conveyed in the
isdn_dchannel_stats structure:
#include <sys/types.h> #include <sys/ddi.h> #include <sys/mdi.h>Structure members are:typedef struct isdn_dchannel_stats { ulong speed; ulong mtu; ulong LapdOperStatus; ulong InOctets; ulong InUcastPkts; ulong InBroadcastPkts; ulong InDiscards; ulong InErrors; ulong InUnkownProtos; ulong OutOctets; ulong OutUcastPkts; ulong OutBroadcastPkts; ulong OutDiscards; ulong OutErrors; ulong filler1; ulong filler2; ulong filler3; ulong filler4; } isdn_dchannel_stats_t;
speed
mtu
LapdOperStatus
value | ndstat message |
---|---|
LAPD_NONE |
Device Not Reporting LAPD Status
|
LAPD_INACTIVE |
Inactive
|
LAPD_L1ACTIVE |
Layer 1 Active
|
LAPD_L2ACTIVE |
Layer 2 Active
|
InOctets
InUcastPkts
InBroadcastPkts
InDiscards
InErrors
InUnkownProtos
OutOctets
OutUcastPkts
OutBroadcastPkts
OutDiscards
OutErrors
filler
[1-4]signalling
member of
mac_stats_isdn) are conveyed in the
isdn_signaling_stats structure:
#include <sys/types.h> #include <sys/ddi.h> #include <sys/mdi.h>Structure members are:typedef struct isdn_signaling_stats { ulong SignalingProtocol; unchar CallingAddress[2][32]; unchar CallingSubAddress[2][32]; ulong BchannelCount; ulong InCalls; ulong InConnected; ulong OutCalls; ulong OutConnected; ulong ChargedUnits; ulong filler1; ulong filler2; ulong filler3; ulong filler4; } isdn_signaling_stats_t;
SignalingProtocol
value | ndstat message |
---|---|
SIGPROT_NONE |
Protocol Information Not Available
|
SIGPROT_Q931 |
ITU DSS1 Q.931
|
SIGPROT_ETSI |
Europe / ETSI
|
SIGPROT_UKDASS2 |
U.K. / DASS2 (PRI)
|
SIGPROT_USA4ESS |
U.S.A. / AT&T 4ESS
|
SIGPROT_USA5ESS |
U.S.A. / AT&T 5ESS
|
SIGPROT_USADMS1 |
U.S.A / Northern Telecom DMS100
|
SIGPROT_USADMS2 |
U.S.A / Northern Telecom DMS250
|
SIGPROT_USANI1 |
U.S.A National ISDN 1 (BRI)
|
SIGPROT_USANI2 |
U.S.A National ISDN 2 (BRI, PRI)
|
SIGPROT_FRNVN2 |
France / VN2
|
SIGPROT_FRNVN3 |
France / VN3
|
SIGPROT_FRNVN4 |
France / VN4 (ETSI with changes)
|
SIGPROT_FRNVN6 |
France / VN6 (ETSI with changes)
|
SIGPROT_JPNKDD |
Japan / KDD
|
SIGPROT_JPNNI64 |
Japan / NTT INS64
|
SIGPROT_JPNNI15 |
Japan / NTT INS1500
|
SIGPROT_GER1TR6 |
Germany / 1TR6 (BRI, PRI)
|
SIGPROT_GERSIEM |
Germany / Siemens HiCom CORNET
|
SIGPROT_AUTS013 |
Australia / TS013
|
SIGPROT_AUTS014 |
Australia / TS014
|
SIGPROT_QSIG |
Q.SIG
|
SIGPROT_SWNET2 |
SwissNet-2
|
SIGPROT_SWNET3 |
SwissNet-3
|
CallingAddress
CallingSubAddress
BchannelCount
InCalls
InConnected
OutCalls
OutConnected
ChargedUnits
filler
[1-4]bchannel
member of
mac_stats_isdn) are conveyed in the
isdn_bchannel_stats structure:
#include <sys/types.h> #include <sys/ddi.h> #include <sys/mdi.h>typedef struct isdn_bchannel_stats { ulong OperStatus; ulong AppID; ulong ChannelNumber; unchar PeerAddress[32]; unchar PeerSubAddress[32]; ulong CallOrigin; ulong InfoType; time_t CallSetupTime; time_t CallConnectTime; ulong ChargedUnits; ulong filler1; ulong filler2; ulong filler3; ulong filler4; } isdn_bchannel_stats_t;
Structure members are:
OperStatus
value | ndstat message |
---|---|
BSTATUS_NONE |
Device not reporting B channel statistics
|
BSTATUS_IDLE |
Idle
|
BSTATUS_CNNCTNG |
Connecting
|
BSTATUS_CNNCTD |
Connected
|
BSTATUS_ACTIVE |
Active
|
AppID
ChannelNumber
PeerAddress
PeerSubAddress
CallOrigin
value | ndstat message |
---|---|
BCALLORIG_OUT |
Outgoing
|
BCALLORIG_IN |
Incoming
|
BCALLORIG_CBACK |
Callback
|
InfoType
value | ndstat message |
---|---|
BINFOTYPE_NONE |
Unknown
|
BINFOTYPE_SPCH |
Speech
|
BINFOTYPE_UDI |
Unrestricted Digital Information
|
BINFOTYPE_UDI56 |
Unrestricted Digital Information 56Kbit/s Rate Ad option
|
BINFOTYPE_RDI |
Restricted Digital Information
|
BINFOTYPE_3KAUD |
3.1 kHz Audio
|
BINFOTYPE_7KAUD |
7 kHz Audio
|
BINFOTYPE_VIDEO |
Video
|
BINFOTYPE_PCKT |
Packet Mode
|
CallSetupTime
CallConnectTime
ChargedUnits
filler
[1-4]Section D4isdn manual pages in Section D4isdn manual pages, Section D7isdn manual pages in Section D7isdn manual pages,
``SCO ISDN adapter drivers'' in Developing MDI network adapter drivers
``MDI ioctls'' in HDK Technical Reference.