1*8413Swnj /*	tp_var.h	1.3	82/10/09	*/
26835Ssam 
36835Ssam /*
46835Ssam  * Kernel data structures for DECnet Transport layer.
56835Ssam  */
66835Ssam 
76835Ssam /*
86835Ssam  * DECnet node number of this host.
96835Ssam  */
106835Ssam int	tp_host;
116835Ssam 
126835Ssam /*
136835Ssam  * Transport Statistics
146835Ssam  */
156835Ssam struct tpstat {
166835Ssam 	int	tps_badinit;		/* bad initialization message */
176835Ssam 	int	tps_init;		/* good initialization message */
186835Ssam 	int	tps_p2hdr;		/* saw Phase II route header */
196835Ssam 	int	tps_returned;		/* got a returned packet */
206835Ssam 	int	tps_shortpacket;	/* packet was too short */
216835Ssam 	int	tps_notforme;		/* dstnode not this system */
226835Ssam 	int	tps_verif;		/* saw a verification message */
236835Ssam 	int	tps_badtest;		/* bad hello and test message */
246835Ssam 	int	tps_unknown;		/* unknown message type */
256835Ssam 	int	tps_badsrc;		/* source number out of range */
266835Ssam 	int	tps_route;		/* got routing message */
276835Ssam };
286835Ssam 
296835Ssam /*
306835Ssam  * Transport State
316835Ssam  * (should be per interface when routing)
326835Ssam  */
336835Ssam int	tpstate;
346835Ssam 
356835Ssam #define	TPS_HALT	0		/* line not initialized */
366835Ssam #define	TPS_TIS		1		/* transport initialize sent */
376835Ssam #define	TPS_RUN		2		/* line ready for use */
386835Ssam 
396835Ssam /*
406835Ssam  * Routing Parameters
416835Ssam  * (Transport spec, page 23)
426835Ssam  */
436835Ssam struct tprp {
446835Ssam 	short	tprp_nn;	/* number of nodes in network (max addr) */
456835Ssam 	/* NEED MORE FOR FULL ROUTING */
466835Ssam };
476835Ssam 
486835Ssam #ifdef KERNEL
496835Ssam struct	tpstat	tpstat;
506835Ssam struct	tprp	tprp;
516835Ssam struct	ifqueue	tpintrq;
526835Ssam struct	ifnet	*tpifp;		/* The DECnet hardware interface */
536835Ssam #endif
54