fix header files
[unix-history] / usr / src / sys / deprecated / netdecnet / tp_var.h
CommitLineData
24d3bb4c 1/* tp_var.h 1.2 82/05/15 */
55d7232d
SL
2
3/*
4 * Kernel data structures for DECnet Transport layer.
5 */
6
7/*
8 * DECnet node number of this host.
9 */
10int tp_host;
11
12/*
13 * Transport Statistics
14 */
15struct 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 */
33int 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 */
43struct tprp {
44 short tprp_nn; /* number of nodes in network (max addr) */
45 /* NEED MORE FOR FULL ROUTING */
46};
47
48#ifdef KERNEL
49struct tpstat tpstat;
50struct tprp tprp;
51struct ifqueue tpintrq;
52struct ifnet *tpifp; /* The DECnet hardware interface */
53#endif