xref: /onnv-gate/usr/src/lib/libbc/inc/include/nettli/tihdr.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*	from S5R3 sys/tihdr.h	10.2" */
23*0Sstevel@tonic-gate 
24*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
25*0Sstevel@tonic-gate 
26*0Sstevel@tonic-gate /*	Copyright (c) 1984 AT&T	*/
27*0Sstevel@tonic-gate /*	  All Rights Reserved  	*/
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate /* #ident	"@(#)kern-port:sys/tihdr.h	10.2" */
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate /*
33*0Sstevel@tonic-gate  * The following is all the information
34*0Sstevel@tonic-gate  * needed by the Transport Service Interface.
35*0Sstevel@tonic-gate  */
36*0Sstevel@tonic-gate 
37*0Sstevel@tonic-gate #ifndef _nettli_tihdr_h
38*0Sstevel@tonic-gate #define _nettli_tihdr_h
39*0Sstevel@tonic-gate 
40*0Sstevel@tonic-gate /*
41*0Sstevel@tonic-gate  * The following are the definitions of the Transport
42*0Sstevel@tonic-gate  * Service Interface primitives.
43*0Sstevel@tonic-gate  */
44*0Sstevel@tonic-gate 
45*0Sstevel@tonic-gate /*
46*0Sstevel@tonic-gate  * Primitives that are initiated by the transport user.
47*0Sstevel@tonic-gate  */
48*0Sstevel@tonic-gate #define	T_CONN_REQ	0	/* connection request     */
49*0Sstevel@tonic-gate #define T_CONN_RES	1	/* connection response    */
50*0Sstevel@tonic-gate #define T_DISCON_REQ	2	/* disconnect request     */
51*0Sstevel@tonic-gate #define T_DATA_REQ	3	/* data request	          */
52*0Sstevel@tonic-gate #define T_EXDATA_REQ	4	/* expedited data request */
53*0Sstevel@tonic-gate #define T_INFO_REQ	5	/* information request    */
54*0Sstevel@tonic-gate #define T_BIND_REQ	6	/* bind request		  */
55*0Sstevel@tonic-gate #define T_UNBIND_REQ	7	/* unbind request	  */
56*0Sstevel@tonic-gate #define T_UNITDATA_REQ	8	/* unitdata request       */
57*0Sstevel@tonic-gate #define T_OPTMGMT_REQ   9	/* manage options req     */
58*0Sstevel@tonic-gate #define T_ORDREL_REQ   10       /* orderly release req    */
59*0Sstevel@tonic-gate 
60*0Sstevel@tonic-gate /*
61*0Sstevel@tonic-gate  * Primitives that are initiated by the transport provider.
62*0Sstevel@tonic-gate  */
63*0Sstevel@tonic-gate 
64*0Sstevel@tonic-gate #define T_CONN_IND	11	/* connection indication      */
65*0Sstevel@tonic-gate #define T_CONN_CON	12	/* connection confirmation    */
66*0Sstevel@tonic-gate #define T_DISCON_IND	13	/* disconnect indication      */
67*0Sstevel@tonic-gate #define T_DATA_IND	14	/* data indication	      */
68*0Sstevel@tonic-gate #define T_EXDATA_IND	15	/* expeditied data indication */
69*0Sstevel@tonic-gate #define T_INFO_ACK	16	/* information acknowledgment */
70*0Sstevel@tonic-gate #define T_BIND_ACK	17	/* bind acknowledment	      */
71*0Sstevel@tonic-gate #define T_ERROR_ACK	18	/* error acknowledgment       */
72*0Sstevel@tonic-gate #define T_OK_ACK	19	/* ok acknowledgment          */
73*0Sstevel@tonic-gate #define T_UNITDATA_IND	20	/* unitdata indication	      */
74*0Sstevel@tonic-gate #define T_UDERROR_IND	21	/* unitdata error indication  */
75*0Sstevel@tonic-gate #define T_OPTMGMT_ACK   22      /* manage options ack         */
76*0Sstevel@tonic-gate #define T_ORDREL_IND    23      /* orderly release ind 	      */
77*0Sstevel@tonic-gate 
78*0Sstevel@tonic-gate /*
79*0Sstevel@tonic-gate  * The following are the events that drive the state machine
80*0Sstevel@tonic-gate  */
81*0Sstevel@tonic-gate /* Initialization events */
82*0Sstevel@tonic-gate #define TE_BIND_REQ	0	/* bind request		  		*/
83*0Sstevel@tonic-gate #define TE_UNBIND_REQ	1	/* unbind request	  		*/
84*0Sstevel@tonic-gate #define TE_OPTMGMT_REQ  2	/* manage options req     		*/
85*0Sstevel@tonic-gate #define TE_BIND_ACK	3	/* bind acknowledment	      		*/
86*0Sstevel@tonic-gate #define TE_OPTMGMT_ACK  4       /* manage options ack         		*/
87*0Sstevel@tonic-gate #define TE_ERROR_ACK	5	/* error acknowledgment       		*/
88*0Sstevel@tonic-gate #define TE_OK_ACK1	6	/* ok ack  seqcnt == 0 		  	*/
89*0Sstevel@tonic-gate #define TE_OK_ACK2	7	/* ok ack  seqcnt == 1, q == resq      	*/
90*0Sstevel@tonic-gate #define TE_OK_ACK3	8	/* ok ack  seqcnt == 1, q != resq       */
91*0Sstevel@tonic-gate #define TE_OK_ACK4	9	/* ok ack  seqcnt > 1        		*/
92*0Sstevel@tonic-gate 
93*0Sstevel@tonic-gate /* Connection oriented events */
94*0Sstevel@tonic-gate #define	TE_CONN_REQ	10	/* connection request     		*/
95*0Sstevel@tonic-gate #define TE_CONN_RES	11	/* connection response    		*/
96*0Sstevel@tonic-gate #define TE_DISCON_REQ	12	/* disconnect request     		*/
97*0Sstevel@tonic-gate #define TE_DATA_REQ	13	/* data request	          		*/
98*0Sstevel@tonic-gate #define TE_EXDATA_REQ	14	/* expedited data request 		*/
99*0Sstevel@tonic-gate #define TE_ORDREL_REQ   15      /* orderly release req    		*/
100*0Sstevel@tonic-gate #define TE_CONN_IND	16	/* connection indication      		*/
101*0Sstevel@tonic-gate #define TE_CONN_CON	17	/* connection confirmation    		*/
102*0Sstevel@tonic-gate #define TE_DATA_IND	18	/* data indication	      		*/
103*0Sstevel@tonic-gate #define TE_EXDATA_IND	19	/* expedited data indication 		*/
104*0Sstevel@tonic-gate #define TE_ORDREL_IND   20      /* orderly release ind 	      		*/
105*0Sstevel@tonic-gate #define TE_DISCON_IND1	21	/* disconnect indication seq == 0      	*/
106*0Sstevel@tonic-gate #define TE_DISCON_IND2	22	/* disconnect indication seq == 1   	*/
107*0Sstevel@tonic-gate #define TE_DISCON_IND3	23	/* disconnect indication seq > 1  	*/
108*0Sstevel@tonic-gate #define TE_PASS_CONN	24	/* pass connection 	      		*/
109*0Sstevel@tonic-gate 
110*0Sstevel@tonic-gate /* Unit data events */
111*0Sstevel@tonic-gate #define TE_UNITDATA_REQ	25	/* unitdata request       		*/
112*0Sstevel@tonic-gate #define TE_UNITDATA_IND	26	/* unitdata indication	      		*/
113*0Sstevel@tonic-gate #define TE_UDERROR_IND	27	/* unitdata error indication  		*/
114*0Sstevel@tonic-gate 
115*0Sstevel@tonic-gate #define TE_NOEVENTS	28
116*0Sstevel@tonic-gate /*
117*0Sstevel@tonic-gate  * The following are the possible states of the Transport
118*0Sstevel@tonic-gate  * Service Interface
119*0Sstevel@tonic-gate  */
120*0Sstevel@tonic-gate 
121*0Sstevel@tonic-gate #define TS_UNBND		0	/* unbound	                */
122*0Sstevel@tonic-gate #define	TS_WACK_BREQ		1	/* waiting ack of BIND_REQ      */
123*0Sstevel@tonic-gate #define TS_WACK_UREQ		2	/* waiting ack of UNBIND_REQ    */
124*0Sstevel@tonic-gate #define TS_IDLE			3	/* idle 		        */
125*0Sstevel@tonic-gate #define TS_WACK_OPTREQ		4	/* wait ack options request     */
126*0Sstevel@tonic-gate #define TS_WACK_CREQ		5	/* waiting ack of CONN_REQ      */
127*0Sstevel@tonic-gate #define TS_WCON_CREQ		6	/* waiting confirm of CONN_REQ  */
128*0Sstevel@tonic-gate #define	TS_WRES_CIND		7	/* waiting response of CONN_IND */
129*0Sstevel@tonic-gate #define TS_WACK_CRES		8	/* waiting ack of CONN_RES      */
130*0Sstevel@tonic-gate #define TS_DATA_XFER		9	/* data transfer		*/
131*0Sstevel@tonic-gate #define TS_WIND_ORDREL	 	10	/* releasing rd but not wr      */
132*0Sstevel@tonic-gate #define TS_WREQ_ORDREL		11      /* wait to release wr but not rd*/
133*0Sstevel@tonic-gate #define TS_WACK_DREQ6		12	/* waiting ack of DISCON_REQ    */
134*0Sstevel@tonic-gate #define TS_WACK_DREQ7		13	/* waiting ack of DISCON_REQ    */
135*0Sstevel@tonic-gate #define TS_WACK_DREQ9		14	/* waiting ack of DISCON_REQ    */
136*0Sstevel@tonic-gate #define TS_WACK_DREQ10		15	/* waiting ack of DISCON_REQ    */
137*0Sstevel@tonic-gate #define TS_WACK_DREQ11		16	/* waiting ack of DISCON_REQ    */
138*0Sstevel@tonic-gate 
139*0Sstevel@tonic-gate #define TS_NOSTATES		17
140*0Sstevel@tonic-gate 
141*0Sstevel@tonic-gate 
142*0Sstevel@tonic-gate /*
143*0Sstevel@tonic-gate  * The following structure definitions define the format of the
144*0Sstevel@tonic-gate  * stream message block of the above primitives.
145*0Sstevel@tonic-gate  * (everything is declared long to ensure proper alignment
146*0Sstevel@tonic-gate  *  across different machines)
147*0Sstevel@tonic-gate  */
148*0Sstevel@tonic-gate 
149*0Sstevel@tonic-gate /* connection request */
150*0Sstevel@tonic-gate 
151*0Sstevel@tonic-gate struct T_conn_req {
152*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_CONN_REQ  */
153*0Sstevel@tonic-gate 	long	DEST_length;	/* dest addr length   */
154*0Sstevel@tonic-gate 	long	DEST_offset;	/* dest addr offset   */
155*0Sstevel@tonic-gate 	long	OPT_length;	/* options length     */
156*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset     */
157*0Sstevel@tonic-gate };
158*0Sstevel@tonic-gate 
159*0Sstevel@tonic-gate /* connect response */
160*0Sstevel@tonic-gate 
161*0Sstevel@tonic-gate struct T_conn_res {
162*0Sstevel@tonic-gate 	long    PRIM_type;	/* always T_CONN_RES       */
163*0Sstevel@tonic-gate 	void	*QUEUE_ptr;	/* responding queue ptr    */
164*0Sstevel@tonic-gate 	long    OPT_length;	/* options length          */
165*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset          */
166*0Sstevel@tonic-gate 	long    SEQ_number;	/* sequence number          */
167*0Sstevel@tonic-gate };
168*0Sstevel@tonic-gate 
169*0Sstevel@tonic-gate /* disconnect request */
170*0Sstevel@tonic-gate 
171*0Sstevel@tonic-gate struct T_discon_req {
172*0Sstevel@tonic-gate 	long    PRIM_type;	/* always T_DISCON_REQ */
173*0Sstevel@tonic-gate 	long    SEQ_number;	/* sequnce number      */
174*0Sstevel@tonic-gate };
175*0Sstevel@tonic-gate 
176*0Sstevel@tonic-gate /* data request */
177*0Sstevel@tonic-gate 
178*0Sstevel@tonic-gate struct T_data_req {
179*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_DATA_REQ */
180*0Sstevel@tonic-gate 	long	MORE_flag;	/* more data	     */
181*0Sstevel@tonic-gate };
182*0Sstevel@tonic-gate 
183*0Sstevel@tonic-gate /* expedited data request */
184*0Sstevel@tonic-gate 
185*0Sstevel@tonic-gate struct T_exdata_req {
186*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_EXDATA_REQ */
187*0Sstevel@tonic-gate 	long	MORE_flag;	/* more data	       */
188*0Sstevel@tonic-gate };
189*0Sstevel@tonic-gate 
190*0Sstevel@tonic-gate /* information request */
191*0Sstevel@tonic-gate 
192*0Sstevel@tonic-gate struct T_info_req {
193*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_INFO_REQ */
194*0Sstevel@tonic-gate };
195*0Sstevel@tonic-gate 
196*0Sstevel@tonic-gate /* bind request */
197*0Sstevel@tonic-gate 
198*0Sstevel@tonic-gate struct T_bind_req {
199*0Sstevel@tonic-gate 	long		PRIM_type;	/* always T_BIND_REQ            */
200*0Sstevel@tonic-gate 	long		ADDR_length;	/* addr length	                */
201*0Sstevel@tonic-gate 	long		ADDR_offset;	/* addr offset	                */
202*0Sstevel@tonic-gate 	unsigned long	CONIND_number;	/*connect indications requested */
203*0Sstevel@tonic-gate };
204*0Sstevel@tonic-gate 
205*0Sstevel@tonic-gate /* unbind request */
206*0Sstevel@tonic-gate 
207*0Sstevel@tonic-gate struct T_unbind_req {
208*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_UNBIND_REQ */
209*0Sstevel@tonic-gate };
210*0Sstevel@tonic-gate 
211*0Sstevel@tonic-gate /* unitdata request */
212*0Sstevel@tonic-gate 
213*0Sstevel@tonic-gate struct T_unitdata_req {
214*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_UNITDATA_REQ  */
215*0Sstevel@tonic-gate 	long	DEST_length;	/* dest addr length       */
216*0Sstevel@tonic-gate 	long	DEST_offset;	/* dest addr offset       */
217*0Sstevel@tonic-gate 	long	OPT_length;	/* options length         */
218*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset         */
219*0Sstevel@tonic-gate };
220*0Sstevel@tonic-gate 
221*0Sstevel@tonic-gate /* manage options request */
222*0Sstevel@tonic-gate 
223*0Sstevel@tonic-gate struct T_optmgmt_req {
224*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_OPTMGMT_REQ   */
225*0Sstevel@tonic-gate 	long	OPT_length;	/* options length         */
226*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset         */
227*0Sstevel@tonic-gate 	long    MGMT_flags;	/* options flags          */
228*0Sstevel@tonic-gate };
229*0Sstevel@tonic-gate 
230*0Sstevel@tonic-gate /* orderly release request */
231*0Sstevel@tonic-gate 
232*0Sstevel@tonic-gate struct T_ordrel_req {
233*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_ORDREL_REQ */
234*0Sstevel@tonic-gate };
235*0Sstevel@tonic-gate 
236*0Sstevel@tonic-gate /* connect indication */
237*0Sstevel@tonic-gate 
238*0Sstevel@tonic-gate struct T_conn_ind {
239*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_CONN_IND */
240*0Sstevel@tonic-gate 	long	SRC_length;	/* src addr length   */
241*0Sstevel@tonic-gate 	long	SRC_offset;	/* src addr offset   */
242*0Sstevel@tonic-gate 	long	OPT_length;	/* option length     */
243*0Sstevel@tonic-gate 	long    OPT_offset;	/* option offset     */
244*0Sstevel@tonic-gate 	long    SEQ_number;	/* sequnce number    */
245*0Sstevel@tonic-gate };
246*0Sstevel@tonic-gate 
247*0Sstevel@tonic-gate /* connect confirmation */
248*0Sstevel@tonic-gate 
249*0Sstevel@tonic-gate struct T_conn_con {
250*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_CONN_CON      */
251*0Sstevel@tonic-gate 	long	RES_length;	/* responding addr length */
252*0Sstevel@tonic-gate 	long	RES_offset;	/* responding addr offset */
253*0Sstevel@tonic-gate 	long	OPT_length;	/* option length          */
254*0Sstevel@tonic-gate 	long    OPT_offset;	/* option offset          */
255*0Sstevel@tonic-gate };
256*0Sstevel@tonic-gate 
257*0Sstevel@tonic-gate /* disconnect indication */
258*0Sstevel@tonic-gate 
259*0Sstevel@tonic-gate struct T_discon_ind {
260*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_DISCON_IND 	*/
261*0Sstevel@tonic-gate 	long	DISCON_reason;	/* disconnect reason	*/
262*0Sstevel@tonic-gate 	long    SEQ_number;	/* sequnce number       */
263*0Sstevel@tonic-gate };
264*0Sstevel@tonic-gate 
265*0Sstevel@tonic-gate /* data indication */
266*0Sstevel@tonic-gate 
267*0Sstevel@tonic-gate struct T_data_ind {
268*0Sstevel@tonic-gate 	long 	PRIM_type;	/* always T_DATA_IND */
269*0Sstevel@tonic-gate 	long	MORE_flag;	/* more data 	     */
270*0Sstevel@tonic-gate };
271*0Sstevel@tonic-gate 
272*0Sstevel@tonic-gate /* expedited data indication */
273*0Sstevel@tonic-gate 
274*0Sstevel@tonic-gate struct T_exdata_ind {
275*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_EXDATA_IND */
276*0Sstevel@tonic-gate 	long	MORE_type;	/* more data           */
277*0Sstevel@tonic-gate };
278*0Sstevel@tonic-gate 
279*0Sstevel@tonic-gate /* information acknowledgment */
280*0Sstevel@tonic-gate 
281*0Sstevel@tonic-gate struct T_info_ack {
282*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_INFO_ACK     */
283*0Sstevel@tonic-gate 	long	TSDU_size;	/* max TSDU size         */
284*0Sstevel@tonic-gate 	long	ETSDU_size;	/* max ETSDU size        */
285*0Sstevel@tonic-gate 	long	CDATA_size;	/* max connect data size */
286*0Sstevel@tonic-gate 	long	DDATA_size;	/* max discon data size  */
287*0Sstevel@tonic-gate 	long	ADDR_size;	/* address size		 */
288*0Sstevel@tonic-gate 	long	OPT_size;	/* options size		 */
289*0Sstevel@tonic-gate 	long    TIDU_size;	/* max TIDU size         */
290*0Sstevel@tonic-gate 	long    SERV_type;	/* provider service type */
291*0Sstevel@tonic-gate 	long    CURRENT_state;  /* current state         */
292*0Sstevel@tonic-gate };
293*0Sstevel@tonic-gate 
294*0Sstevel@tonic-gate /* bind acknowledgment */
295*0Sstevel@tonic-gate 
296*0Sstevel@tonic-gate struct T_bind_ack {
297*0Sstevel@tonic-gate 	long		PRIM_type;	/* always T_BIND_ACK        */
298*0Sstevel@tonic-gate 	long		ADDR_length;	/* addr length              */
299*0Sstevel@tonic-gate 	long		ADDR_offset;	/* addr offset              */
300*0Sstevel@tonic-gate 	unsigned long	CONIND_number;	/* connect ind to be queued */
301*0Sstevel@tonic-gate };
302*0Sstevel@tonic-gate 
303*0Sstevel@tonic-gate /* error acknowledgment */
304*0Sstevel@tonic-gate 
305*0Sstevel@tonic-gate struct T_error_ack {
306*0Sstevel@tonic-gate 	long 	PRIM_type;	/* always T_ERROR_ACK  */
307*0Sstevel@tonic-gate 	long	ERROR_prim;	/* primitive in error  */
308*0Sstevel@tonic-gate 	long	TLI_error;	/* TLI error code      */
309*0Sstevel@tonic-gate 	long	UNIX_error;	/* UNIX error code     */
310*0Sstevel@tonic-gate };
311*0Sstevel@tonic-gate 
312*0Sstevel@tonic-gate /* ok acknowledgment */
313*0Sstevel@tonic-gate 
314*0Sstevel@tonic-gate struct T_ok_ack {
315*0Sstevel@tonic-gate 	long 	PRIM_type;	/* always T_OK_ACK   */
316*0Sstevel@tonic-gate 	long	CORRECT_prim;	/* correct primitive */
317*0Sstevel@tonic-gate };
318*0Sstevel@tonic-gate 
319*0Sstevel@tonic-gate /* unitdata indication */
320*0Sstevel@tonic-gate 
321*0Sstevel@tonic-gate struct T_unitdata_ind {
322*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_UNITDATA_IND  */
323*0Sstevel@tonic-gate 	long	SRC_length;	/* source addr length     */
324*0Sstevel@tonic-gate 	long	SRC_offset;	/* source addr offset     */
325*0Sstevel@tonic-gate 	long	OPT_length;	/* options length         */
326*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset         */
327*0Sstevel@tonic-gate };
328*0Sstevel@tonic-gate 
329*0Sstevel@tonic-gate /* unitdata error indication */
330*0Sstevel@tonic-gate 
331*0Sstevel@tonic-gate struct T_uderror_ind {
332*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_UDERROR_IND   */
333*0Sstevel@tonic-gate 	long	DEST_length;	/* dest addr length       */
334*0Sstevel@tonic-gate 	long	DEST_offset;	/* dest addr offset       */
335*0Sstevel@tonic-gate 	long	OPT_length;	/* options length         */
336*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset         */
337*0Sstevel@tonic-gate 	long	ERROR_type;	/* error type	          */
338*0Sstevel@tonic-gate };
339*0Sstevel@tonic-gate 
340*0Sstevel@tonic-gate /* manage options ack */
341*0Sstevel@tonic-gate 
342*0Sstevel@tonic-gate struct T_optmgmt_ack {
343*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_OPTMGMT_ACK   */
344*0Sstevel@tonic-gate 	long	OPT_length;	/* options length         */
345*0Sstevel@tonic-gate 	long	OPT_offset;	/* options offset         */
346*0Sstevel@tonic-gate 	long    MGMT_flags;	/* managment flags        */
347*0Sstevel@tonic-gate };
348*0Sstevel@tonic-gate 
349*0Sstevel@tonic-gate /* orderly release indication */
350*0Sstevel@tonic-gate 
351*0Sstevel@tonic-gate struct T_ordrel_ind {
352*0Sstevel@tonic-gate 	long	PRIM_type;	/* always T_ORDREL_IND */
353*0Sstevel@tonic-gate };
354*0Sstevel@tonic-gate 
355*0Sstevel@tonic-gate /*
356*0Sstevel@tonic-gate  * The following is a union of the primitives
357*0Sstevel@tonic-gate  */
358*0Sstevel@tonic-gate union T_primitives {
359*0Sstevel@tonic-gate 	long			type;		/* primitive type     */
360*0Sstevel@tonic-gate 	struct T_conn_req	conn_req;	/* connect request    */
361*0Sstevel@tonic-gate 	struct T_conn_res	conn_res;	/* connect response   */
362*0Sstevel@tonic-gate 	struct T_discon_req	discon_req;	/* disconnect request */
363*0Sstevel@tonic-gate 	struct T_data_req	data_req;	/* data request       */
364*0Sstevel@tonic-gate 	struct T_exdata_req	exdata_req;	/* expedited data req */
365*0Sstevel@tonic-gate 	struct T_info_req	info_req;	/* information req    */
366*0Sstevel@tonic-gate 	struct T_bind_req	bind_req;	/* bind request       */
367*0Sstevel@tonic-gate 	struct T_unbind_req	unbind_req;	/* unbind request     */
368*0Sstevel@tonic-gate 	struct T_unitdata_req	unitdata_req;	/* unitdata requset   */
369*0Sstevel@tonic-gate 	struct T_optmgmt_req	optmgmt_req;	/* manage opt req     */
370*0Sstevel@tonic-gate 	struct T_ordrel_req	ordrel_req;	/* orderly rel req    */
371*0Sstevel@tonic-gate 	struct T_conn_ind	conn_ind;	/* connect indication */
372*0Sstevel@tonic-gate 	struct T_conn_con	conn_con;	/* connect corfirm    */
373*0Sstevel@tonic-gate 	struct T_discon_ind	discon_ind;	/* discon indication  */
374*0Sstevel@tonic-gate 	struct T_data_ind	data_ind;	/* data indication    */
375*0Sstevel@tonic-gate 	struct T_exdata_ind	exdata_ind;	/* expedited data ind */
376*0Sstevel@tonic-gate 	struct T_info_ack	info_ack;	/* info ack	      */
377*0Sstevel@tonic-gate 	struct T_bind_ack	bind_ack;	/* bind ack	      */
378*0Sstevel@tonic-gate 	struct T_error_ack	error_ack;	/* error ack	      */
379*0Sstevel@tonic-gate 	struct T_ok_ack		ok_ack;		/* ok ack	      */
380*0Sstevel@tonic-gate 	struct T_unitdata_ind	unitdata_ind;	/* unitdata ind       */
381*0Sstevel@tonic-gate 	struct T_uderror_ind	uderror_ind;	/* unitdata error ind */
382*0Sstevel@tonic-gate 	struct T_optmgmt_ack	optmgmt_ack;	/* manage opt ack     */
383*0Sstevel@tonic-gate 	struct T_ordrel_ind	ordrel_ind;	/* orderly rel ind    */
384*0Sstevel@tonic-gate };
385*0Sstevel@tonic-gate 
386*0Sstevel@tonic-gate #endif /*!_nettli_tihdr_h*/
387