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