|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT 386 Device Driver Kit release 2.0 ! 3: * Copyright (c) 1982, 1992 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: #ifndef __SYS_TNIOCTL_H__ ! 7: #define __SYS_TNIOCTL_H__ ! 8: ! 9: #define TNIOC ('N' << 8) ! 10: #define TNGETA (TNIOC|1) /* Get node attributes */ ! 11: #define TNGETAF (TNIOC|2) /* Get node attributes, clear node stats */ ! 12: ! 13: #define NTNST 8 /* Number of network statistics */ ! 14: ! 15: /* ! 16: * Network node attributes. ! 17: * Maintained on a per node id basis. ! 18: * NOTE: Node id 0 is used for totals. ! 19: */ ! 20: typedef struct tnattr { ! 21: unsigned char host[6]; /* host id - node id in host[5] */ ! 22: unsigned char bad; /* non-zero if node is down */ ! 23: unsigned char fill; /* reserved, also for alignment */ ! 24: unsigned long recons; /* network reconfigurations */ ! 25: unsigned long stats[NTNST]; /* statistics */ ! 26: } tnattr_t ; ! 27: ! 28: /* ! 29: * Statistics maintained per node. ! 30: */ ! 31: #define TnRxBYTES 0 /* # bytes received from node */ ! 32: #define TnTxBYTES 1 /* # bytes transmitted to node */ ! 33: #define TnRxPACKS 2 /* # packets received from node */ ! 34: #define TnTxPACKS 3 /* # packets transmitted to node */ ! 35: #define TnDISCARD 4 /* # packets discarded [to node] */ ! 36: #define TnSTATMOD 5 /* # status transitions on node */ ! 37: #define TnWRTDLYS 6 /* # delayed writes */ ! 38: #define TnELAPSED 7 /* elapsed time for stats in ticks */ ! 39: ! 40: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.