1 /*	tp_var.h	1.3	82/10/09	*/
2 
3 /*
4  * Kernel data structures for DECnet Transport layer.
5  */
6 
7 /*
8  * DECnet node number of this host.
9  */
10 int	tp_host;
11 
12 /*
13  * Transport Statistics
14  */
15 struct tpstat {
16 	int	tps_badinit;		/* bad initialization message */
17 	int	tps_init;		/* good initialization message */
18 	int	tps_p2hdr;		/* saw Phase II route header */
19 	int	tps_returned;		/* got a returned packet */
20 	int	tps_shortpacket;	/* packet was too short */
21 	int	tps_notforme;		/* dstnode not this system */
22 	int	tps_verif;		/* saw a verification message */
23 	int	tps_badtest;		/* bad hello and test message */
24 	int	tps_unknown;		/* unknown message type */
25 	int	tps_badsrc;		/* source number out of range */
26 	int	tps_route;		/* got routing message */
27 };
28 
29 /*
30  * Transport State
31  * (should be per interface when routing)
32  */
33 int	tpstate;
34 
35 #define	TPS_HALT	0		/* line not initialized */
36 #define	TPS_TIS		1		/* transport initialize sent */
37 #define	TPS_RUN		2		/* line ready for use */
38 
39 /*
40  * Routing Parameters
41  * (Transport spec, page 23)
42  */
43 struct tprp {
44 	short	tprp_nn;	/* number of nodes in network (max addr) */
45 	/* NEED MORE FOR FULL ROUTING */
46 };
47 
48 #ifdef KERNEL
49 struct	tpstat	tpstat;
50 struct	tprp	tprp;
51 struct	ifqueue	tpintrq;
52 struct	ifnet	*tpifp;		/* The DECnet hardware interface */
53 #endif
54