1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef _SBA_
16 #define _SBA_
17
18 #include "mbuf.h"
19 #include "sba_def.h"
20
21 #ifdef SBA
22
23
24 struct timer_cell {
25 struct timer_cell *next_ptr ;
26 struct timer_cell *prev_ptr ;
27 u_long start_time ;
28 struct s_sba_node_vars *node_var ;
29 } ;
30
31
32
33
34 struct s_sba_node_vars {
35 u_char change_resp_flag ;
36 u_char report_resp_flag ;
37 u_char change_req_flag ;
38 u_char report_req_flag ;
39 long change_amount ;
40 long node_overhead ;
41 long node_payload ;
42 u_long node_status ;
43 u_char deallocate_status ;
44 u_char timer_state ;
45 u_short report_cnt ;
46 long lastrep_req_tranid ;
47 struct fddi_addr mac_address ;
48 struct s_sba_sessions *node_sessions ;
49 struct timer_cell timer ;
50 } ;
51
52
53
54
55 struct s_sba_sessions {
56 u_long deallocate_status ;
57 long session_overhead ;
58 u_long min_segment_size ;
59 long session_payload ;
60 u_long session_status ;
61 u_long sba_category ;
62 long lastchg_req_tranid ;
63 u_short session_id ;
64 u_char class ;
65 u_char fddi2 ;
66 u_long max_t_neg ;
67 struct s_sba_sessions *next_session ;
68 } ;
69
70 struct s_sba {
71
72 struct s_sba_node_vars node[MAX_NODES] ;
73 struct s_sba_sessions session[MAX_SESSIONS] ;
74
75 struct s_sba_sessions *free_session ;
76
77
78 struct timer_cell *tail_timer ;
79
80
81
82
83 long total_payload ;
84 long total_overhead ;
85 long sba_allocatable ;
86
87
88
89
90 long msg_path_index ;
91 long msg_sba_pl_req ;
92 long msg_sba_ov_req ;
93 long msg_mib_pl ;
94 long msg_mib_ov ;
95 long msg_category ;
96 u_long msg_max_t_neg ;
97 u_long msg_min_seg_siz ;
98 struct smt_header *sm ;
99 struct fddi_addr *msg_alloc_addr ;
100
101
102
103
104 u_long sba_t_neg ;
105 long sba_max_alloc ;
106
107
108
109
110 short sba_next_state ;
111 char sba_command ;
112 u_char sba_available ;
113 } ;
114
115 #endif
116
117
118
119
120 struct s_ess {
121
122
123
124
125 u_char sync_bw_available ;
126 u_char local_sba_active ;
127 char raf_act_timer_poll ;
128 char timer_count ;
129
130 SMbuf *sba_reply_pend ;
131
132
133
134
135 long sync_bw ;
136 u_long alloc_trans_id ;
137 } ;
138 #endif