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