4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1988,2001 by Sun Microsystems, Inc.
24 * All rights reserved.
30 #pragma ident "%Z%%M% %I% %E% SMI"
37 * TLI automaton state definitions.
39 * They are expressed as bit masks to facilitate testing whether the
40 * current automaton state is contained in a given set of states.
42 #define TL_UNINIT 0x0000 /* uninitialized */
43 #define TL_UNBND 0x0002 /* unbound */
44 #define TL_IDLE 0x0004 /* no connection established */
46 * outgoing connection pending for active user
48 #define TL_OUTCON 0x0008
50 * incoming connection pending for passive user
52 #define TL_INCON 0x0010
53 #define TL_DATAXFER 0x0020 /* data transfer */
55 * outgoing orderly release (waiting for orderly release indication)
57 #define TL_OUTREL 0x0040
59 * incoming orderly release (waiting to send orderly release request)
61 #define TL_INREL 0x0080
63 * pseudo-state indicating disallowed transition (may end up unnecessary)
65 #define TL_ERROR 0x0100
68 * Max buffer size for each uio operation in tcptli_Ercv()
70 #define TT_BUFSIZE 2048
73 * Send and Recv size for socket operations
75 #define TT_SENDSIZE 24 * 1024
76 #define TT_RECVSIZE 24 * 1024
79 * Max number of uio vectors for sosend and soreceive
84 * Flag to indicate that only part of the data buffer got sent
86 #define TT_INCOMPLETESEND 201
89 * Protocol options (socket options) supported by T_OPTMGMT_REQ
92 int tts_reuseaddr
; /* reuse a bound address */
93 int tts_keepalive
; /* keep connection alive */
94 int tts_sendsize
; /* socket send size */
95 int tts_recvsize
; /* socket recv size */
98 #define TTS_BUFSIZE 4096 /* default socket send/recv size */
99 #define TTS_DFLT_REUSEADDR 1
100 #define TTS_DFLT_KEEPALIVE 1
106 #endif /* _TCP_TLI_ */