//PupStats.decl - statistics declarations

//	Last modified October 1, 1978  7:48 PM

manifest
[
socketStatistics = #22
typeSendStats = #200
typeStatsAck = #201
typeStatsNak = #202
]

//----------------------------------------------------------------------------
structure GSE:  //gateway statistics entry
//----------------------------------------------------------------------------
[
sdNet word = [ sNet byte; dNet byte ]
count word 2
]
manifest lenGSE = size GSE/16


//----------------------------------------------------------------------------
structure SLAStats:	// Line statistics
//----------------------------------------------------------------------------
[
// These count all successful transmissions and receptions, both Pups
// and non-Pups.
transmitPackets word 2	//Packets transmitted
receivePackets word 2	//Packets received
transmitBytes word 2	//Bytes transmitted (excluding framing & doubled DLEs)
receiveBytes word 2	//Bytes received (excluding framing & doubled DLEs)

// These count bad packets, not included in the above counts.
inputOverrun word	//Probably lost sync
badCRC word		//Received bad CRC
lineControlError word	//Bad line control sequence

state word		//state of line (only 2 bits really needed)
]
manifest lenSLAStats = size SLAStats/16

manifest
[
//SLA line states
slaLineDown = 0
slaLineUp = 1
slaLineLoopedBack = 2
slaLineMissing = 3
]

//----------------------------------------------------------------------------
structure SLARTE:	//SLA Routing Table Entry
//----------------------------------------------------------------------------
[
hopCnt byte		//hops from here to host
line byte		//via line number
]
manifest lenSLARTE = size SLARTE/16

//----------------------------------------------------------------------------
structure EtherStats:	//Ethernet Statistics
//----------------------------------------------------------------------------
[
packetsSent word
numBadXmtStatus word
numInUnderOut word	//not used by Novas

packetsRcvd word
numBadRcvStatus word
inputOff word

loadTable↑0,16 word
]
manifest lenEtherStats = size EtherStats/16