EthernetDriverStats.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Russ Atkinson (RRA) February 4, 1985 10:01:15 pm PST
EthernetDriverStats: CEDAR DEFINITIONS = BEGIN
Count: TYPE = LONG CARDINAL;
EtherStats: TYPE = REF EtherStatsRep;
EtherStatsRep: TYPE = RECORD [
packetsSent: Count,
wordsSent: Count,
badSendStatus: Count,
overruns: Count,
packetsRecv: Count,
wordsRecv: Count,
badRecvStatus: Count,
inputOff: Count,
loadTable: ARRAY [0..MaxTries] OF Count];
MaxTries: NAT = 16;
GetEthernetConfig: PROC RETURNS [instances: NAT];
Returns how many instances are present for the Xerox product standard Ethernet.
GetEthernetStats: PROC [instance: NAT] RETURNS [EtherStats];
... returns the EtherStats object for the given instance of the Xerox product standard Ethernet driver. Note that these numbers are not monitor protected, so be prepared for strange results every so often. NIL will be returned for invalid instances.
GetEthernetOneConfig: PROC RETURNS [instances: NAT];
Returns how many instances are present for the Xerox research Ethernet (3Mbit).
GetEthernetOneStats: PROC [instance: NAT] RETURNS [EtherStats];
... returns the EtherStats object for the given instance of the Xerox research Ethernet driver. Note that these numbers are not monitor protected, so be prepared for strange results every so often. NIL will be returned for invalid instances.
END.